Jump to

  • Quickstarts
  • API reference
  • Webhook events
  • Error codes
  • SDKs

API reference

Queues

How these fit together: the Call queues guide.

List queues

get/v1/queues

Lists call queues, newest first.

Every queue of the organization’s active teams, newest first, each with its members (seat, tier and skill); teamId narrows the list to one team. A queue whose team is deactivated is not listed.

Access: an organization key with the queues:read scope.

Query parameters

  • limitinteger

    How many items to return.

  • cursorstring

    The nextCursor of the previous page. Omit for the first page.

  • teamIdstring (uuid)

    Only the queues of this team.

Response 200PublicQueuePage

  • dataPublicQueue[]Required

    Its fields are listed under Get queue

  • nextCursorstring | nullRequired

    Pass back as cursor for the next page; null on the last.

Errors

Request
curl 'https://api.trovacast.com/v1/queues' \
  -H "Authorization: Bearer $TROVACAST_API_KEY"
Response 200 (json)
{
  "data": [
    {
      "active": true,
      "alertThresholds": {},
      "announceEverySeconds": 60,
      "announcePosition": false,
      "announceWaitTime": false,
      "callbackEnabled": false,
      "createdAt": "2026-11-05T10:00:00.000Z",
      "holdAudio": null,
      "holdAudioAssetId": "HOLD_AUDIO_ASSET_ID",
      "id": "ID",
      "maxSize": 50,
      "maxWaitSeconds": 300,
      "members": [
        {
          "membershipId": "MEMBERSHIP_ID",
          "priority": 1,
          "skill": 5
        }
      ],
      "name": "Support",
      "object": "queue",
      "overflowAction": null,
      "overflowAfterSeconds": null,
      "overflowFlowId": "OVERFLOW_FLOW_ID",
      "overflowOnNoAgents": false,
      "overflowQueueId": "OVERFLOW_QUEUE_ID",
      "requiredSkill": null,
      "ringTimeoutSeconds": 20,
      "scheduleId": "SCHEDULE_ID",
      "serviceLevelSeconds": 20,
      "skillFallbackSeconds": 30,
      "strategy": "longest_idle",
      "teamId": "TEAM_ID",
      "transferBoost": true,
      "updatedAt": "2026-11-05T10:00:00.000Z",
      "version": 1,
      "wrapUpSeconds": 30
    }
  ],
  "nextCursor": "NEXT_CURSOR"
}

Create queue

post/v1/queues

Creates a call queue for a team.

Unset fields take the console’s defaults. Members are set afterwards with PUT /v1/queues/{queueId}/members. Audited against the key (desk.queue.create).

Access: an organization key with the queues:write scope. Live keys only: a test key is refused with 422 TEST_MODE_UNSUPPORTED.

Headers

  • Idempotency-Keystring

    Makes the request safe to retry: a repeat with the same key and the same body returns the stored success (with Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT, 503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.

Request body

  • activeboolean

    Whether the queue takes callers. Off, a number or transfer routed to it is refused (QUEUE_CLOSED).

  • alertThresholdsRecord<string, integer> | null

    Supervisor alert thresholds (the console’s live desk raises them): longestWaitSeconds (5–3600), waitingCallers (1–1000), serviceLevelBelowPercent (1–100, over the last hour), agentsAvailableBelow (1–100, while callers wait). Null (or {}) clears them.

  • announceEverySecondsinteger

    How often the announcements repeat.

    20–600

  • announcePositionboolean

    Tell waiting callers their place in the queue, periodically.

  • announceWaitTimeboolean

    Tell waiting callers the estimated wait, periodically.

  • callbackEnabledboolean

    Offer waiting callers “press 1 to be called back”: a callback task in the console’s missed-call list instead of waiting.

  • holdAudioobject[] | null

    Hold prompts: call-flow say/play verbs (at most 5), looped while callers wait. Null for the default tone (or holdAudioAssetId).

  • holdAudioAssetIdstring (uuid) | null

    An uploaded hold audio file (the team’s or the organization’s, uploaded in the console); the default tone when unset.

  • maxSizeinteger

    Callers who may wait at once; the next one overflows.

    1–1000

  • maxWaitSecondsinteger

    The longest a caller waits; then they overflow (or go to voicemail).

    10–3600

  • namestringRequired

    Unique in the organization.

    1–120 characters

  • overflowActionstring | null

    Where an overflowing caller goes: queue (overflowQueueId, a queue of the same team), flow (overflowFlowId, a published call flow of the team or the organization), or voicemail for this queue. Null turns overflow off. Checked with the targets on the merged result: queue needs overflowQueueId alone, flow overflowFlowId alone, voicemail and null neither.

    One ofqueueflowvoicemail

  • overflowAfterSecondsinteger | null

    Overflow after a caller has waited this long (null: only at maxWaitSeconds).

    5–3600

  • overflowFlowIdstring (uuid) | null

  • overflowOnNoAgentsboolean

    Overflow at once when no seat of the queue is signed in.

  • overflowQueueIdstring (uuid) | null

  • requiredSkillinteger | null

    Offer a caller only to members with at least this skill until they have waited skillFallbackSeconds, then to any member. Null: no skill routing.

    1–10

  • ringTimeoutSecondsinteger

    How long a seat rings before the caller is offered on.

    5–120

  • scheduleIdstring (uuid) | null

    The opening hours (a business schedule of the organization, set up in the console); null for always open.

  • serviceLevelSecondsinteger

    The service-level target: a call answered within this many seconds counts as answered in time.

    5–600

  • skillFallbackSecondsinteger

    How long skill routing holds before any member is offered.

    0–3600

  • strategystring

    Who is offered a waiting caller first: the seat idle longest, seats in turn, or every free seat at once. Default longest_idle.

    One oflongest_idleround_robinring_all

  • teamIdstring (uuid)Required

    The team that owns the queue — an active team of the organization. Members must be seats on it; fixed once created. /v1 lists no teams yet: a queue’s teamId (one made in the console reads back here) names one.

  • transferBoostboolean

    A caller an agent transfers into this queue waits at the highest priority, ahead of new callers. Default true.

  • wrapUpSecondsinteger

    A seat’s wrap-up after each call before it is offered again.

    0–900

Response 201PublicQueue

Its fields are listed under Get queue.

Errors

Request
curl -X POST 'https://api.trovacast.com/v1/queues' \
  -H "Authorization: Bearer $TROVACAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H 'Content-Type: application/json' \
  -d '{
  "alertThresholds": {
    "longestWaitSeconds": 120,
    "waitingCallers": 10
  },
  "holdAudio": [
    {
      "text": "Thanks for waiting.",
      "verb": "say"
    }
  ],
  "name": "Support",
  "teamId": "582d7f1a-8dd2-4dcc-98fc-afec84a5577b"
}'
Response 201 (json)
{
  "active": true,
  "alertThresholds": {},
  "announceEverySeconds": 60,
  "announcePosition": false,
  "announceWaitTime": false,
  "callbackEnabled": false,
  "createdAt": "2026-11-05T10:00:00.000Z",
  "holdAudio": null,
  "holdAudioAssetId": "HOLD_AUDIO_ASSET_ID",
  "id": "ID",
  "maxSize": 50,
  "maxWaitSeconds": 300,
  "members": [
    {
      "membershipId": "MEMBERSHIP_ID",
      "priority": 1,
      "skill": 5
    }
  ],
  "name": "Support",
  "object": "queue",
  "overflowAction": null,
  "overflowAfterSeconds": null,
  "overflowFlowId": "OVERFLOW_FLOW_ID",
  "overflowOnNoAgents": false,
  "overflowQueueId": "OVERFLOW_QUEUE_ID",
  "requiredSkill": null,
  "ringTimeoutSeconds": 20,
  "scheduleId": "SCHEDULE_ID",
  "serviceLevelSeconds": 20,
  "skillFallbackSeconds": 30,
  "strategy": "longest_idle",
  "teamId": "TEAM_ID",
  "transferBoost": true,
  "updatedAt": "2026-11-05T10:00:00.000Z",
  "version": 1,
  "wrapUpSeconds": 30
}

Get queue

get/v1/queues/{queueId}

Retrieves a call queue, with its members.

Its strategy, timeouts, overflow, announcements, skills and alert thresholds, its members, and the version a change (PATCH /v1/queues/{queueId}, PUT /v1/queues/{queueId}/members) sends back. A queue whose team is deactivated reads as not found.

Access: an organization key with the queues:read scope.

Path parameters

  • queueIdstringRequired

Response 200PublicQueue

Show the 31 fields
  • activebooleanRequired

  • alertThresholdsRecord<string, integer>Required

    Supervisor alert thresholds; {} when none is set.

  • announceEverySecondsintegerRequired

  • announcePositionbooleanRequired

  • announceWaitTimebooleanRequired

  • callbackEnabledbooleanRequired

  • createdAtstring (date-time)Required

  • holdAudioobject[] | nullRequired

    Hold prompts (say/play verbs), or null.

  • holdAudioAssetIdstring (uuid) | nullRequired

  • idstring (uuid)Required

  • maxSizeintegerRequired

  • maxWaitSecondsintegerRequired

  • membersPublicQueueMember[]Required

    Members by seat id, tier first — never a person’s name (the console shows those).

    3 fields of members
    • membershipIdstring (uuid)Required

      The member’s organization seat (membership) id.

    • priorityintegerRequired

      1–10

    • skillintegerRequired

      1–10

  • namestringRequired

  • objectstringRequired

    One ofqueue

  • overflowActionstring | nullRequired

    One ofqueueflowvoicemail

  • overflowAfterSecondsinteger | nullRequired

  • overflowFlowIdstring (uuid) | nullRequired

  • overflowOnNoAgentsbooleanRequired

  • overflowQueueIdstring (uuid) | nullRequired

  • requiredSkillinteger | nullRequired

  • ringTimeoutSecondsintegerRequired

  • scheduleIdstring (uuid) | nullRequired

  • serviceLevelSecondsintegerRequired

  • skillFallbackSecondsintegerRequired

  • strategystringRequired

    One oflongest_idleround_robinring_all

  • teamIdstring (uuid)Required

  • transferBoostbooleanRequired

  • updatedAtstring (date-time)Required

  • versionintegerRequired

    Pass back as version on PATCH (and on PUT …/members): every change bumps it.

    at least 1

  • wrapUpSecondsintegerRequired

Errors

Request
curl 'https://api.trovacast.com/v1/queues/QUEUE_ID' \
  -H "Authorization: Bearer $TROVACAST_API_KEY"
Response 200 (json)
{
  "active": true,
  "alertThresholds": {},
  "announceEverySeconds": 60,
  "announcePosition": false,
  "announceWaitTime": false,
  "callbackEnabled": false,
  "createdAt": "2026-11-05T10:00:00.000Z",
  "holdAudio": null,
  "holdAudioAssetId": "HOLD_AUDIO_ASSET_ID",
  "id": "ID",
  "maxSize": 50,
  "maxWaitSeconds": 300,
  "members": [
    {
      "membershipId": "MEMBERSHIP_ID",
      "priority": 1,
      "skill": 5
    }
  ],
  "name": "Support",
  "object": "queue",
  "overflowAction": null,
  "overflowAfterSeconds": null,
  "overflowFlowId": "OVERFLOW_FLOW_ID",
  "overflowOnNoAgents": false,
  "overflowQueueId": "OVERFLOW_QUEUE_ID",
  "requiredSkill": null,
  "ringTimeoutSeconds": 20,
  "scheduleId": "SCHEDULE_ID",
  "serviceLevelSeconds": 20,
  "skillFallbackSeconds": 30,
  "strategy": "longest_idle",
  "teamId": "TEAM_ID",
  "transferBoost": true,
  "updatedAt": "2026-11-05T10:00:00.000Z",
  "version": 1,
  "wrapUpSeconds": 30
}

Update queue

patch/v1/queues/{queueId}

Changes a call queue (a version compare-and-set).

Only the fields sent change. Audited against the key (desk.queue.update).

Access: an organization key with the queues:write scope. Live keys only: a test key is refused with 422 TEST_MODE_UNSUPPORTED.

Path parameters

  • queueIdstringRequired

Headers

  • Idempotency-Keystring

    Makes the request safe to retry: a repeat with the same key and the same body returns the stored success (with Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT, 503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.

Request body

  • activeboolean

    Whether the queue takes callers. Off, a number or transfer routed to it is refused (QUEUE_CLOSED).

  • alertThresholdsRecord<string, integer> | null

    Supervisor alert thresholds (the console’s live desk raises them): longestWaitSeconds (5–3600), waitingCallers (1–1000), serviceLevelBelowPercent (1–100, over the last hour), agentsAvailableBelow (1–100, while callers wait). Null (or {}) clears them.

  • announceEverySecondsinteger

    How often the announcements repeat.

    20–600

  • announcePositionboolean

    Tell waiting callers their place in the queue, periodically.

  • announceWaitTimeboolean

    Tell waiting callers the estimated wait, periodically.

  • callbackEnabledboolean

    Offer waiting callers “press 1 to be called back”: a callback task in the console’s missed-call list instead of waiting.

  • holdAudioobject[] | null

    Hold prompts: call-flow say/play verbs (at most 5), looped while callers wait. Null for the default tone (or holdAudioAssetId).

  • holdAudioAssetIdstring (uuid) | null

    An uploaded hold audio file (the team’s or the organization’s, uploaded in the console); the default tone when unset.

  • maxSizeinteger

    Callers who may wait at once; the next one overflows.

    1–1000

  • maxWaitSecondsinteger

    The longest a caller waits; then they overflow (or go to voicemail).

    10–3600

  • namestring

    1–120 characters

  • overflowActionstring | null

    Where an overflowing caller goes: queue (overflowQueueId, a queue of the same team), flow (overflowFlowId, a published call flow of the team or the organization), or voicemail for this queue. Null turns overflow off. Checked with the targets on the merged result: queue needs overflowQueueId alone, flow overflowFlowId alone, voicemail and null neither.

    One ofqueueflowvoicemail

  • overflowAfterSecondsinteger | null

    Overflow after a caller has waited this long (null: only at maxWaitSeconds).

    5–3600

  • overflowFlowIdstring (uuid) | null

  • overflowOnNoAgentsboolean

    Overflow at once when no seat of the queue is signed in.

  • overflowQueueIdstring (uuid) | null

  • requiredSkillinteger | null

    Offer a caller only to members with at least this skill until they have waited skillFallbackSeconds, then to any member. Null: no skill routing.

    1–10

  • ringTimeoutSecondsinteger

    How long a seat rings before the caller is offered on.

    5–120

  • scheduleIdstring (uuid) | null

    The opening hours (a business schedule of the organization, set up in the console); null for always open.

  • serviceLevelSecondsinteger

    The service-level target: a call answered within this many seconds counts as answered in time.

    5–600

  • skillFallbackSecondsinteger

    How long skill routing holds before any member is offered.

    0–3600

  • strategystring

    Who is offered a waiting caller first: the seat idle longest, seats in turn, or every free seat at once. Default longest_idle.

    One oflongest_idleround_robinring_all

  • transferBoostboolean

    A caller an agent transfers into this queue waits at the highest priority, ahead of new callers. Default true.

  • versionintegerRequired

    The version you read: a compare-and-set (409 QUEUE_VERSION_CONFLICT when the queue changed since — read it again and retry). Every change bumps it.

    at least 1

  • wrapUpSecondsinteger

    A seat’s wrap-up after each call before it is offered again.

    0–900

Response 200PublicQueue

Its fields are listed under Get queue.

Errors

Request
curl -X PATCH 'https://api.trovacast.com/v1/queues/QUEUE_ID' \
  -H "Authorization: Bearer $TROVACAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H 'Content-Type: application/json' \
  -d '{
  "alertThresholds": {
    "longestWaitSeconds": 120,
    "waitingCallers": 10
  },
  "holdAudio": [
    {
      "text": "Thanks for waiting.",
      "verb": "say"
    }
  ],
  "version": 1
}'
Response 200 (json)
{
  "active": true,
  "alertThresholds": {},
  "announceEverySeconds": 60,
  "announcePosition": false,
  "announceWaitTime": false,
  "callbackEnabled": false,
  "createdAt": "2026-11-05T10:00:00.000Z",
  "holdAudio": null,
  "holdAudioAssetId": "HOLD_AUDIO_ASSET_ID",
  "id": "ID",
  "maxSize": 50,
  "maxWaitSeconds": 300,
  "members": [
    {
      "membershipId": "MEMBERSHIP_ID",
      "priority": 1,
      "skill": 5
    }
  ],
  "name": "Support",
  "object": "queue",
  "overflowAction": null,
  "overflowAfterSeconds": null,
  "overflowFlowId": "OVERFLOW_FLOW_ID",
  "overflowOnNoAgents": false,
  "overflowQueueId": "OVERFLOW_QUEUE_ID",
  "requiredSkill": null,
  "ringTimeoutSeconds": 20,
  "scheduleId": "SCHEDULE_ID",
  "serviceLevelSeconds": 20,
  "skillFallbackSeconds": 30,
  "strategy": "longest_idle",
  "teamId": "TEAM_ID",
  "transferBoost": true,
  "updatedAt": "2026-11-05T10:00:00.000Z",
  "version": 1,
  "wrapUpSeconds": 30
}

Delete queue

delete/v1/queues/{queueId}

Deletes a call queue nothing uses.

Refused while a number routes to it, a campaign feeds it, a caller waits in it or another queue overflows into it. Audited against the key (desk.queue.delete).

Access: an organization key with the queues:write scope. Live keys only: a test key is refused with 422 TEST_MODE_UNSUPPORTED.

Path parameters

  • queueIdstringRequired

Headers

  • Idempotency-Keystring

    Makes the request safe to retry: a repeat with the same key and the same body returns the stored success (with Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT, 503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.

Response 204

Deleted.

Errors

Request
curl -X DELETE 'https://api.trovacast.com/v1/queues/QUEUE_ID' \
  -H "Authorization: Bearer $TROVACAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Answers 204 with no body.

Set queue members

put/v1/queues/{queueId}/members

Replaces a call queue’s members, with their tier and skill.

The whole list: members not in it leave the queue. Every member must be an ACTIVE seat on the queue’s team. Saved under the queue’s version (it bumps it) and audited against the key with who joined, who left and whose tier or skill moved (desk.queue.members.set).

Access: an organization key with the queues:write scope. Live keys only: a test key is refused with 422 TEST_MODE_UNSUPPORTED.

Path parameters

  • queueIdstringRequired

Headers

  • Idempotency-Keystring

    Makes the request safe to retry: a repeat with the same key and the same body returns the stored success (with Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT, 503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.

Request body

  • membersPublicQueueMemberInput[]Required

    Every member, each once. An empty list removes them all. A seat that is not an active seat on the queue’s team is refused (400) and nothing changes.

    at most 500 items

    3 fields of members
    • membershipIdstring (uuid)Required

      The member’s organization seat (membership) id — an ACTIVE seat on the queue’s team.

    • priorityinteger

      Tier: lower tiers are offered a caller first.

      1–10default 1

    • skillinteger

      Skill level for skill routing: a queue with requiredSkill offers its callers first to members at or above it.

      1–10default 5

  • versioninteger

    The queue version the list was read at; a stale one is refused with 409 QUEUE_VERSION_CONFLICT. Recommended: without it the last write wins. Every save bumps the version.

    at least 1

Response 200PublicQueue

Its fields are listed under Get queue.

Errors

Request
curl -X PUT 'https://api.trovacast.com/v1/queues/QUEUE_ID/members' \
  -H "Authorization: Bearer $TROVACAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H 'Content-Type: application/json' \
  -d '{
  "members": [
    {
      "membershipId": "ed5b2df5-e9e8-4ff0-98b1-70427a892c61"
    }
  ]
}'
Response 200 (json)
{
  "active": true,
  "alertThresholds": {},
  "announceEverySeconds": 60,
  "announcePosition": false,
  "announceWaitTime": false,
  "callbackEnabled": false,
  "createdAt": "2026-11-05T10:00:00.000Z",
  "holdAudio": null,
  "holdAudioAssetId": "HOLD_AUDIO_ASSET_ID",
  "id": "ID",
  "maxSize": 50,
  "maxWaitSeconds": 300,
  "members": [
    {
      "membershipId": "MEMBERSHIP_ID",
      "priority": 1,
      "skill": 5
    }
  ],
  "name": "Support",
  "object": "queue",
  "overflowAction": null,
  "overflowAfterSeconds": null,
  "overflowFlowId": "OVERFLOW_FLOW_ID",
  "overflowOnNoAgents": false,
  "overflowQueueId": "OVERFLOW_QUEUE_ID",
  "requiredSkill": null,
  "ringTimeoutSeconds": 20,
  "scheduleId": "SCHEDULE_ID",
  "serviceLevelSeconds": 20,
  "skillFallbackSeconds": 30,
  "strategy": "longest_idle",
  "teamId": "TEAM_ID",
  "transferBoost": true,
  "updatedAt": "2026-11-05T10:00:00.000Z",
  "version": 1,
  "wrapUpSeconds": 30
}