List Queues
curl --request GET \
--url https://api.social-api.ai/v1/queues \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/queues', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/queues"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"count": 123,
"data": [
{
"active": true,
"brand_id": "<string>",
"created_at": "<string>",
"id": "que_01J9Z8Y7X6W5V4T3S2R1Q0P9N8",
"is_default": true,
"name": "Evenings",
"slots": [
{
"day": "tuesday",
"time": "19:00"
}
],
"timezone": "Europe/Paris",
"updated_at": "<string>"
}
]
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}Queues
List Queues
Lists your Queues, grouped by Brand, oldest first. Filter to one Brand with brand_id.
GET
/
queues
List Queues
curl --request GET \
--url https://api.social-api.ai/v1/queues \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/queues', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/queues"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"count": 123,
"data": [
{
"active": true,
"brand_id": "<string>",
"created_at": "<string>",
"id": "que_01J9Z8Y7X6W5V4T3S2R1Q0P9N8",
"is_default": true,
"name": "Evenings",
"slots": [
{
"day": "tuesday",
"time": "19:00"
}
],
"timezone": "Europe/Paris",
"updated_at": "<string>"
}
]
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}