Skip to content
Odinex Cloud
API reference

Support

GET
/support/tickets

Authorization

cookieAuth
cookieodx_session<token>

Response Body

Tickets, open first

application/json
  1. response
tickets*array<>
curl -X GET "https://example.com/support/tickets"
{  "tickets": [    {      "id": 0,      "organization_id": 0,      "project_id": 0,      "subject": "string",      "category": "technical",      "status": "waiting_staff",      "priority": "low",      "resource_type": "string",      "resource_id": 0,      "deadline": "2019-08-24T14:15:22Z",      "created": "2019-08-24T14:15:22Z",      "updated": "2019-08-24T14:15:22Z"    }  ]}

Open ticket

POST
/support/tickets

Authorization

cookieAuth
cookieodx_session<token>

Request Body

application/json
  1. body
subject*string
Length3 <= length <= 200
category*string
Value in"technical""billing""limit_increase""other"
message*string
Length1 <= length <= 20000
organization_id?integer

Defaults to your personal organization

Formatint64
project_id?integer
Formatint64
resource_type?string
resource_id?integer
Formatint64

Response Body

Opened

application/json
  1. response
ticket*
curl -X POST "https://example.com/support/tickets" \  -H "Content-Type: application/json" \  -d '{    "subject": "string",    "category": "technical",    "message": "string"  }'
{  "ticket": {    "id": 0,    "organization_id": 0,    "project_id": 0,    "subject": "string",    "category": "technical",    "status": "waiting_staff",    "priority": "low",    "resource_type": "string",    "resource_id": 0,    "deadline": "2019-08-24T14:15:22Z",    "created": "2019-08-24T14:15:22Z",    "updated": "2019-08-24T14:15:22Z"  }}

Get ticket

GET
/support/tickets/{id}

Authorization

cookieAuth
cookieodx_session<token>

Path Parameters

id*integer
Formatint64

Response Body

Ticket with its conversation

application/json
  1. response
ticket*
messages*array<>
curl -X GET "https://example.com/support/tickets/0"
{  "ticket": {    "id": 0,    "organization_id": 0,    "project_id": 0,    "subject": "string",    "category": "technical",    "status": "waiting_staff",    "priority": "low",    "resource_type": "string",    "resource_id": 0,    "deadline": "2019-08-24T14:15:22Z",    "created": "2019-08-24T14:15:22Z",    "updated": "2019-08-24T14:15:22Z"  },  "messages": [    {      "id": 0,      "author_type": "customer",      "author": "string",      "body": "string",      "created": "2019-08-24T14:15:22Z"    }  ]}

Reply ticket

POST
/support/tickets/{id}/messages

Authorization

cookieAuth
cookieodx_session<token>

Path Parameters

id*integer
Formatint64

Request Body

application/json
  1. body
message*string
Length1 <= length <= 20000

Response Body

Sent

curl -X POST "https://example.com/support/tickets/0/messages" \  -H "Content-Type: application/json" \  -d '{    "message": "string"  }'
Empty

Close ticket

POST
/support/tickets/{id}/close

Authorization

cookieAuth
cookieodx_session<token>

Path Parameters

id*integer
Formatint64

Response Body

Closed

curl -X POST "https://example.com/support/tickets/0/close"
Empty