POST
/v1/admin/queues
Create Queue
curl -X POST https://api.{cluster}.{platform}.voiger.io/v1/admin/queues \ -H "Cookie: sid=$VOIGER_SESSION" \ -H "x-workspace-code: your-workspace-code" \ -H "x-csrf-token: $CSRF_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "queue": { "name": "Sales", "status": "active", "strategy": "longest_idle_agent", "image": null, "team": { "id": "ff3bfada-11b2-464e-adaf-ce645ccc917c" }, "moh": { "id": "d54f6540-92f7-4116-9164-2b4f67e86b6e" }, "cli": { "id": "e23f6540-92f7-4116-9164-2b4f67e86b6e" }, "timeout": null, "mow": { "id": "d54f6540-92f7-4116-9164-2b4f67e86b6e" }, "timeout_action": { "type": "queue", "value": "ce3bfada-11b2-464e-adaf-ce645ccc917c" }, "timeslots": null, "beyond_timeslots_action": { "type": "hangup", "value": null }, "survey_id": "7c1c0f4e-1234-4abc-9de0-001122334455", "caller_id_name_template": "{CallerID} via {Queue}", "language": "En", "priority": 1 } }'
Parameters
x-workspace-code
string
required
in header
x-csrf-token
string
required
in header
Response
queue▾idnameimage▾idmoh▾idnamecli▾idvaluestatusstrategyteam▾idnameimage▾idtimeout▾valuefallback▾typevaluemow▾idlanguageprioritytimeout_action▾typevaluetimeslotsbeyond_timeslots_action▾typevaluesurvey_idcaller_id_name_templatecreated_atupdated_at