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.messages.getMessageQueuesHealth();
console.log(response);
}
main();curl -X GET 'https://api.periskope.app/v1/message/queues/health' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'x-phone: 919876543210'{
"is_running": true,
"active": 0,
"pending": 2,
"completed": 40,
"failed": 1
}Message APIs
Get Status of Message Queues
Returns live counters of the send queue of the phone: running state plus active, pending, completed and failed job counts.
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.messages.getMessageQueuesHealth();
console.log(response);
}
main();curl -X GET 'https://api.periskope.app/v1/message/queues/health' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'x-phone: 919876543210'{
"is_running": true,
"active": 0,
"pending": 2,
"completed": 40,
"failed": 1
}Authorizations
Headers
Response
The current queue counters of the phone
Live counters of the message send queue of a phone
Was this page helpful?