TypeScript
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
phone: '919876543210', // the phone to act with (x-phone)
});
async function main() {
const response = await client.queue.getQueueStatus();
console.log(response);
}
main();curl -X GET 'https://api.periskope.app/v1/queue' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'x-phone: 919876543210'{
"is_running": true,
"active": 0,
"completed": 16,
"failed": 10,
"pending": 0
}Queue APIs
Get Queue Status
Returns the live status of the message send queue of the phone in the x-phone header.
TypeScript
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
phone: '919876543210', // the phone to act with (x-phone)
});
async function main() {
const response = await client.queue.getQueueStatus();
console.log(response);
}
main();curl -X GET 'https://api.periskope.app/v1/queue' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'x-phone: 919876543210'{
"is_running": true,
"active": 0,
"completed": 16,
"failed": 10,
"pending": 0
}Deprecated. Use
GET /message/queues/health insteadAuthorizations
Headers
Response
The current status of the message queue
Live status of the message send queue of a phone. Every outgoing message and broadcast is queued on the phone instance and submitted to WhatsApp one job at a time.
Was this page helpful?