Get Current Ticket
GET/accounts/:account_id/conversations/:conversation_id/tickets/current
Returns the conversation's open ticket.
If none exists yet, one is created. This works only while the conversation
status is open (Bot). See List Tickets
for what a ticket is.
| Setting | Value |
|---|---|
| Method | GET |
| Path | /api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/current |
Permissions:
- User token: any agent who can see the conversation — see Who can see a conversation.
- Agent-bot token: not allowed.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
account_id | integer | Yes | Account ID. |
conversation_id | integer | Yes | Conversation display ID. |
Example request
curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/tickets/current' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'
Example response (200 OK). Here conversation_id is the internal
conversation ID (2301), not the display ID (1501).
{
"id": 903,
"account_id": 12,
"inbox_id": 31,
"channel_name": "Channel::Api",
"conversation_id": 2301,
"contact_id": 801,
"initiated_by": "user",
"resolved_by_id": null,
"total_time": null,
"resolved_at": null,
"resolved_agent_id": null,
"ticket_status": "open",
"created_at": "2026-11-12T08:40:00.000Z",
"updated_at": "2026-11-12T08:40:00.000Z",
"custom_attributes": {}
}
When the conversation is not open (for example pending / Manual, or
resolved) the response is still HTTP 200, with an error body:
{
"error": "No open conversation",
"status": "unprocessable_entity"
}
Check for the error key instead of relying on the HTTP status. To find the
open ticket of a Manual conversation, use
List Tickets and pick the one with
ticket_status: "open".
Request
Responses
- 200
- 401
- 403
- 404
The open ticket — or, when the conversation is not open, an error body.
The access token is missing or wrong, or its user does not belong to this account.
The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.
The resource does not exist in this account.