[GET] Get Ticket by ID

Description: Return ticket based on ID.

REST Method: GET

URL: /tickets.json/{id}

Request

Name Type Required Default Options Notes
developer_api_key String Yes Developer api key

Using curl

curl -X GET 'https://api.bornevia.com/tickets.json/12345?developer_api_key=[YOUR_DEVELOPER_API_KEY]'

Response

Response Name Type Notes
Header Status Int 200 - Success
404 - Ticket not found
Body ticket Ticket Ticket object
{
  "id": 987654,
  "subject": "helloworld",
  "status": "Open",
  "priority": "Medium",
  "assigned_user_id": 1,
  "deleted": false,
  "created_at": "2015-10-26T07:14:37.000Z",
  "updated_at": "2015-10-26T07:14:43.000Z",
  "assigned_at": "2015-10-26T07:14:37.000Z",
  "posts": [
      {
        "id": 583345,
        "ticket_id": 987654,
        "channel": "email",
        "subject": "helloworld",
        "name": "Tjiu Suryanto",
        "sender": 
          {
            "email": "tjiu.suryanto@bornevia.com",
            "name":"Tjiu Suryanto"
          },
        "receivers": [
          {
            "name":"Bornevia",
            "email": "contact@bornevia.com"
          }
        ],
        "message": "Hello world",
      "message_html": "<html><head><meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" /></head><body bgcolor=\"#FFFFFF\" text=\"#000000\">Hello world<small><br></small> </body> </html>",
      "files": [
        {
          "size": "465518",
          "type": "image/jpeg",
          "file_name": "monopoly.jpg",
          "file_id": "4233-b39khp.jpgmonopoly.jpg"
        }
      ],
        "contact": {
          "id": 2443,
          "name": "Tjiu Suryanto",
          "created_at": "2015-03-02T09:28:00.000Z",
          "updated_at": "2015-03-02T09:28:00.000Z",
        },
        "replied": false,
        "created_at": "2015-10-26T07:14:37.000Z",
        "updated_at": "2015-10-26T07:14:37.000Z"
      }
  ],
  "assigned_user": {
    "id": 1444,
    "email": "tjiu.suryanto@bornevia.com",
    "name": "Tjiu Suryanto",
    "power_user": true,
    "created_at": "2015-03-02T09:21:43.000Z",
    "updated_at": "2015-11-02T09:41:01.000Z",
    "username": "tjiu.suryanto"
  },
  "notifications": [
    {
      "id": 245459,
      "contact_id": 2443,
      "ticket_id": 987654,
      "post_id": 583345,
      "message": "[New ticket] Tjiu Suryanto: Hello world",
      "created_at": "2015-03-02T09:28:00.000Z",
      "updated_at": "2015-03-07T16:35:02.000Z"
    }
  ],
  "notes": [
    {
      "id": 1672323,
      "ticket_id": 987654,
      "user_id": 1442,
      "message": "231",
      "created_at": "2015-05-20T06:32:02.000Z",
      "updated_at": "2015-05-20T06:32:02.000Z"
    }
  ],
  "tags": [
      {
          "tag_text": "helloworld",
          "created_at": "2015-04-21T03:44:54.000Z",
          "updated_at": "2015-11-16T07:43:34.000Z",
        }
  ]
}
Last updated on 21st Jun 2016