Developer's Guide

Learn how to configure and use our open APIs, to
freely integrate Deskero with any other software solution!

Tickets

Create

Create a new ticket

POST https://api.deskero.com/ticket/insert

Headers

Header Value
Authorization Bearer {{bearer}}
Content-Type application/json
clientId {{clientId}}

Example request

$ curl https://api.deskero.com/ticket/insert \ 
  -v \
  -H "Content-type: application/json" \
  -H "Authorization: Bearer 58cfg61g-1585-5c72-g35f-7fe76893ed2f" \
  -H "clientId: 51f01687e4b094c81d7b8bcdellef" \
  -X POST \
  -d '{
    "subject": "Ticket from API",
    "description": "Ticket description",
    "openedBy": {
      "id": "5215e339e4b0d4899b61c7e6"
    },
    "type": {
      "id": "50913dd4c2e67797f82e5bb2"
    },
    "attachedDocuments": [
      {
        "documentName": "doc.txt",
        "documentType": "text/plain",
        "documentBlob":"70726F7661"
      }
    ],
    "replies": [
      {
        "text": "Problem solved!",
        "replyDate" : "1382455565000",
        "replyFromOperator": {
          "id": "52132fffe4b006e6048bd013"
        },
        "attachedDocuments": [
          {
            "documentName": "doc.txt",
            "documentType": "text/plain",
            "documentBlob":"70726F7661"
          }
        ]
      }
    ]
  }'

Example response

Created ticket id

{
  "id": "5277c21ce4b0d3bd74d43841"
}