Skip to main content
POST
/
queue
Create or update a queue record
curl --request POST \
  --url https://thalamus.nerds.nl/api/v1/queue \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "callback",
  "phone": "+31612345678",
  "campaign_uuid": "770e8400-e29b-41d4-a716-446655440000",
  "skill_uuid": "550e8400-e29b-41d4-a716-446655440000",
  "name": "John Doe",
  "email": "john@example.com",
  "reference": "328099",
  "agent_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "comment": "<string>",
  "datetime_start": "2023-11-07T05:31:56Z"
}
'
{
  "success": true,
  "data": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "id": "<string>",
    "type": "<string>",
    "phone": "<string>",
    "name": "<string>",
    "email": "<string>",
    "status": "<string>",
    "campaign_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "reference": "<string>",
    "datetime_start": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z"
  },
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Partner API key (e.g. nerds_live_a8f3d9k2m5n7p1q4r6t8v0w2x4y6z8)

Body

application/json
type
enum<string>
required
Available options:
callback,
appointment,
ticket,
chat,
abandoned
Example:

"callback"

phone
string
required
Example:

"+31612345678"

campaign_uuid
string<uuid>
required
Example:

"770e8400-e29b-41d4-a716-446655440000"

skill_uuid
string<uuid>
required
Example:

"550e8400-e29b-41d4-a716-446655440000"

name
string | null
Example:

"John Doe"

email
string<email> | null
Example:

"john@example.com"

reference
string | null

Ticket external ID to link to queue record

Example:

"328099"

agent_uuid
string<uuid> | null

Assign to specific agent

comment
string | null
datetime_start
string<date-time> | null

Response

Queue record updated (duplicate)

success
boolean
Example:

true

data
object
message
string