GET v1.1/queues
Lists all of the queues present on this account.
this resource supports additional data through the fields parameter
Parameters
Label | Description | Values | Modifiers | Type | Required |
---|---|---|---|---|---|
fields | Return additional data about this resource e.g **_v1.1/queues?fields=id,name,is_active,url_** |
id, url, rank, name, is_active, role, external_id | None | Query string | False |
GET v1.1/queues/:id
Information about one queue.
this resource supports additional data through the fields parameter
Parameters
Label | Description | Values | Modifiers | Type | Required |
---|---|---|---|---|---|
id | The unique __id__ of a queue e.g **_v1.1/queues/54f07e48245560384e69776e_** |
A work queue ID | None | URL | True |
fields | Return additional data about this resource e.g **_v1.1/queues?fields=id,name,is_active,url_** |
id, url, rank, name, is_active, role, external_id | None | Query string | False |
Examples
Basic example
> curl -u username:password "https://api.conversocial.com/v1.1/queues"
{
"paging": {....},
"queues": [
{
"url": "https://api.conversocial.com/v1.1/queues/5ab0e9999bd56c01aa93547b",
"id": "5ab0e9999bd56c01aa93547b"
},
{
"url": "https://api.conversocial.com/v1.1/queues/5ab0e9999bd56c01aa93547c",
"id": "5ab0e9999bd56c01aa93547c"
}]
}
Example with additional fields
> curl -u username:password "https://api.conversocial.com/v1.1/queues?fields=id,url,name,role"
{
"queues": [
{
"url": "http://localhost:8000/v1.1/queues/5ab0e9999bd56c01aa93547b",
"role": "default",
"name": "* Default",
"id": "5ab0e9999bd56c01aa93547b"
},
{
"url": "http://localhost:8000/v1.1/queues/5ab0e9999bd56c01aa93547c",
"role": "legacy",
"name": "* Legacy",
"id": "5ab0e9999bd56c01aa93547c"
}
],
"paging": {
"next_page": null,
"prev_page": null
}
}
A Queue resource
> curl -u username:password "https://api.conversocial.com/v1.1/queues/5ab0e9999bd56c01aa93547b"
{
"queue": {
"name": "* Default",
"url": "http://localhost:8000/v1.1/queues/5ab0e9999bd56c01aa93547b",
"is_active": true,
"rank": "9",
"role": "default",
"external_id": null,
"id": "5ab0e9999bd56c01aa93547b"
}
}