[GET] List Tickets

Description: Get a list of tickets in a folder.

REST Method: GET

URL: /tickets.json

Request

Name Type Required Default Options Notes
developer_api_key String Yes Developer api key
folder_id Int Yes ID of folder in which the tickets you want to retrive
per_page Int No 25 0-100 Number of tickets per page
page Int No 1 Page number
order String No asc asc/desc Order of tickets

Using curl

curl -X GET 'https://api.bornevia.com/tickets.json?developer_api_key=[YOUR_DEVELOPER_API_KEY]&folder_id=9984&per_page=1&page=1&order=desc&tag=hello'

Response

Response Name Type Notes
Header Status Int 200 - Success
404 - Folder not found
400 - Folder ID is null, zero, or not a number
400 - Per page is not a number or in between 0 and 100
400 - Page is not a number or page is less than 0
400 - Order is not 'asc' or 'desc'
Body tickets Collection Collection of ticket objects
[
  {
    "id": 279341,
    "subject": "Hello world",
    "status": "Open",
    "priority": "Medium",
    "assigned_user_id": 1,
    "deleted": false,
    "created_at": "2015-11-12T15:38:29.000Z",
    "updated_at": "2015-11-12T15:38:30.000Z",
    "assigned_at": "2015-11-12T15:38:29.000Z",
  }
]
Last updated on 21st Jun 2016