Tickets
Support tickets, addressed by their number.
#List tickets
GET/api/v1/tickets
Newest ticket number first.
| Parameter | In | Type | Notes |
|---|---|---|---|
limit | query | integer | Page size, at most 100. |
cursor | query | string | pagination.nextCursor from the previous page. |
status | query | new | open | waiting_customer | waiting_internal | resolved | closed | |
priority | query | low | medium | high | urgent | |
assignee | query | string | Member user id. |
q | query | string | Search the subject and summary. |
updated_since | query | datetime | Only tickets changed at or after this time. |
curl https://synconone.com/api/v1/tickets \
-H "Authorization: Bearer sk_live_YOUR_KEY"{
"data": [
{
"id": "pr_1a2b3c4d5e6f7a8b",
"object": "string",
"number": 1,
"subject": "Annual plan renewal",
"summary": "Asked about annual terms on the website.",
"status": "new",
"priority": "low",
"source": "string",
"assignee": "string",
"person": "string"
}
],
"pagination": {
"nextCursor": null,
"hasMore": false
}
}Errors: 401: Missing, invalid, revoked or expired API key. · 403: The key lacks the scope, or its role cannot do this. · 422: Validation failed. · 429: Rate limited. Honour Retry-After.. See errors.
#Open a ticket about a record
POST/api/v1/tickets
Needs at least one of person, company, lead or opportunity, each a record the key can see.
| Body field | Type | Notes |
|---|---|---|
subject required | string | |
summary | string | |
priority | low | medium | high | urgent | Defaults to medium. SLA targets follow it. |
assignee | string | Member user id. |
person | string | |
company | string | |
lead | string | |
opportunity | string |
curl -X POST https://synconone.com/api/v1/tickets \
-H "Authorization: Bearer sk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"subject":"Annual plan renewal","summary":"Asked about annual terms on the website.","priority":"low","assignee":"string","person":"string"}'{
"data": {
"id": "pr_1a2b3c4d5e6f7a8b",
"object": "string",
"number": 1,
"subject": "Annual plan renewal",
"summary": "Asked about annual terms on the website.",
"status": "new",
"priority": "low",
"source": "string",
"assignee": "string",
"person": "string"
}
}Errors: 401: Missing, invalid, revoked or expired API key. · 403: The key lacks the scope, or its role cannot do this. · 409: Conflict, approval required, or idempotent request in progress. · 422: Validation failed. · 429: Rate limited. Honour Retry-After.. See errors.
#Get a ticket
GET/api/v1/tickets/{id}
| Parameter | In | Type | Notes |
|---|---|---|---|
id required | path | string | The ticket number. |
curl https://synconone.com/api/v1/tickets/pr_1a2b3c4d5e6f7a8b \
-H "Authorization: Bearer sk_live_YOUR_KEY"{
"data": {
"id": "pr_1a2b3c4d5e6f7a8b",
"object": "string",
"number": 1,
"subject": "Annual plan renewal",
"summary": "Asked about annual terms on the website.",
"status": "new",
"priority": "low",
"source": "string",
"assignee": "string",
"person": "string"
}
}Errors: 401: Missing, invalid, revoked or expired API key. · 403: The key lacks the scope, or its role cannot do this. · 404: Not found, or not visible to this key. · 422: Validation failed. · 429: Rate limited. Honour Retry-After.. See errors.
#Change a ticket
PATCH/api/v1/tickets/{id}
Move it along its lifecycle, change its priority or reassign it. A status the ticket cannot move to from where it is answers 409.
| Parameter | In | Type | Notes |
|---|---|---|---|
id required | path | string | The ticket number. |
| Body field | Type | Notes |
|---|---|---|
status | new | open | waiting_customer | waiting_internal | resolved | closed | |
priority | low | medium | high | urgent | |
assignee | string | Member user id; null unassigns. |
curl -X PATCH https://synconone.com/api/v1/tickets/pr_1a2b3c4d5e6f7a8b \
-H "Authorization: Bearer sk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"status":"new","priority":"low","assignee":"string"}'{
"data": {
"id": "pr_1a2b3c4d5e6f7a8b",
"object": "string",
"number": 1,
"subject": "Annual plan renewal",
"summary": "Asked about annual terms on the website.",
"status": "new",
"priority": "low",
"source": "string",
"assignee": "string",
"person": "string"
}
}Errors: 401: Missing, invalid, revoked or expired API key. · 403: The key lacks the scope, or its role cannot do this. · 404: Not found, or not visible to this key. · 409: Conflict, approval required, or idempotent request in progress. · 422: Validation failed. · 429: Rate limited. Honour Retry-After.. See errors.