Ticket note
Leave a note in tickets so that agents can have a fuller context of the issue and engage with customers on a more personal level. This API can also help the next assignee catch up with the conversation when transferred. Ticket notes are visible to admins and agents only, not customers.
Resource representation
The following table shows the list of properties in a ticket note resource.
Property name | Type | Description |
---|---|---|
count | int | The total number of ticket notes made during the specified time period. |
id | int | The unique ID of the ticket note. |
ticket_id | int | The unique ID of the ticket where the note was left to. |
note | string | The content of the ticket note. |
requestedFrom | string | The method through which a ticket note was created. Valid values are |
createdBy | nested object | A JSON object that contains information about the agent who left the note, such as their user ID, role, and the time when the note was created. If the ticket notes were created through a Platform API request, the value of this property is |
createdAt | string | The date and time when the ticket note was created, in ISO 8601 format. |
updatedAt | string | The date and time when the ticket note was last updated, in ISO 8601 format. |
Actions
- API endpoints are relative to the base URL allocated to your application. In this page, the endpoint refers to
https://desk-api-{application_id}.sendbird.com/platform/v1
.
Note: If you want to know your application ID, sign in to your dashboard, go to the Settings > Application > General, and then check the Application ID.
- It's recommended that the parameter values in API URLs be urlencoded, such as
{ticket_id}
.
List of actions
Action | HTTP request |
---|---|
| |
| |
| |
|
List ticket notes
Retrieves a list of ticket notes created during a specific time period.
HTTP request
Parameter
The following table lists the properties of an HTTP request that this action supports.
Optional
Parameter name | Type | Description |
---|---|---|
limit | int | Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 50) |
int | Specifies the number of results to skip when receiving a response. The value of | |
start_date | string | Specifies the start date of the ticket notes to retrieve, in YYYY-MM-DD format. The time range between |
end_date | string | Specifies the end date of the ticket notes to retrieve, in YYYY-MM-DD format. The time range between |
Response
If successful, this action returns a list of ticket notes resources in the response body.
Error
In the case of an error, an error object like below is returned. See the error code table for more details.
Error code | Error message | Description |
---|---|---|
deskp400111 | The limit parameter should be integer. | The specified |
deskp400111 | The offset parameter should be integer. | The specified |
deskp400111 | The value of start_date should be YYYY-MM-DD. | The specified |
deskp400111 | The value of end_date should be YYYY-MM-DD. | The specified |
deskp400113 | The value of limit should be between 1 and 100. | The value specified in |
deskp400113 | The date range should be within 1 year. | The time range between |
Leave a note in a ticket
Create a new note in a ticket. You can leave multiple ticket notes in a ticket but should create one at a time.
HTTP request
Request body
The following table lists the properties of an HTTP request that this action supports.
Required
Property name | Type | Description |
---|---|---|
ticketId | int | Specifies the unique ID of the ticket to leave a note to. |
note | string | Specifies the content of the ticket note. |
Response
If successful, this action returns a list of ticket notes resources in the response body.
Error
In the case of an error, an error object like below is returned. See the error code table for more details.
Error code | Error message | Description |
---|---|---|
deskp400105 | ticketId is required. | The |
deskp400105 | note is required. | The |
deskp400111 | The note parameter should be string. | The specified |
deskp400201 | The specified ticketId doesn’t exist. | The ticket note with the specified |
Update a ticket note
Update an existing ticket note.
HTTP request
Request body
The following table lists the properties of an HTTP request that this action supports.
Required
Property name | Type | Description |
---|---|---|
note | string | Specifies the content of the updated ticket note. |
Response
If successful, this action returns a list of ticket notes resources in the response body.
Error
In the case of an error, an error object like below is returned. See the error code table for more details.
Error code | Error message | Description |
---|---|---|
deskp400111 | The note parameter should be string. | The specified |
deskp400201 | The specified ticket_note_id doesn’t exist. | The ticket note with the specified |
Delete a ticket note
Delete a ticket note from the specified ticket.
HTTP request
Parameter
The following table lists the parameters that this action supports.
Required
Parameter name | Type | Description |
---|---|---|
ticket_note_id | int | Specifies the unique ID of the ticket note to delete. |
Response
If successful, this action returns an empty response body.
Error
In the case of an error, an error object like below is returned. See the error code table for more details.
Error code | Error message | Description |
---|---|---|
deskp400201 | The specified ticket_note_id doesn’t exist. | The ticket note with the specified |