curl --request POST \
--url https://demo.enneo.ai/api/mind/ticket/getLatest \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"preferredDirection": "earliest",
"ticketId": 123,
"filters": [
{
"key": "channel",
"comparator": "in",
"values": [
"email"
],
"value": 1609459200,
"from": 1609459200,
"to": 1612051200
}
]
}
'{
"earliest": 2,
"previous": 1,
"next": 3
}JWT-based authentication
Parameters for getting the next ticket
Direction to navigate in the ticket queue
earliest, previous, next "earliest"
Current ticket ID (required when preferredDirection is 'previous' or 'next')
123
An array of objects containing filters
Show child attributes
t.id, t.channel, t.subchannelId, t.channelId, t.direction, t.status, t.priority, t.agentId, t.customerId, t.contractId, t.partnerId, t.isCustomerActive, t.aiSupportLevel, i.aiAgentId, t.createdAt, t.modifiedAt, t.firstResponseDueBy, t.dueBy, t.lastMessageAt, t.lastCustomerMessageAt, tt.tagId, t.sentiment, t.language, t.languageCode, t.modelRunAt, t.externalTicketId, t.from, w.id, q "channel"
Possible values: =, !=, >, >=, <, <=, in, not in, between, not between
"in"
Used for "in" and "not in" comparators
Used for "=", "!=", ">", ">=", "<", "<=" comparators
1609459200
Used for "between" and "not between" comparators
1609459200
Used for "between" and "not between" comparators
1612051200
curl --request POST \
--url https://demo.enneo.ai/api/mind/ticket/getLatest \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"preferredDirection": "earliest",
"ticketId": 123,
"filters": [
{
"key": "channel",
"comparator": "in",
"values": [
"email"
],
"value": 1609459200,
"from": 1609459200,
"to": 1612051200
}
]
}
'{
"earliest": 2,
"previous": 1,
"next": 3
}