Skip to main content
TypeScript
Deprecated. Use POST /message/queues instead. Pass queue_id or broadcast_id in the request body to filter

Authorizations

Authorization
string
header
required

Your Periskope API token, sent as Authorization: Bearer <token>. Generate one from the Periskope dashboard under Settings → API & Webhooks. API access requires an active Pro or Enterprise plan.

Headers

x-phone
string
required

Phone to act with: country code + number without symbols or spaces (e.g. 911111111111), or a phone_id (phone-xxxxxxxxxxxx). The phone must be connected to the org and accessible by the API token.

Minimum string length: 1
Example:

"919876543210"

Query Parameters

broadcast_id
string

Only return the jobs belonging to this broadcast. Omit to return the jobs of the whole queue.

Minimum string length: 1
Example:

"00000000-0000-0000-0000-000000000000"

queue_id
string

Only return the job with this queue job id (the id field of a queue job). An id that matches nothing returns an empty array.

Minimum string length: 1
Example:

"00000000-0000-0000-0000-000000000000"

Response

The matching queue jobs

data
object

The original send payload the job was queued with. Its exact keys depend on the message type — media, poll and broadcast jobs carry additional fields.

id
string

Unique id of the queue job (a UUID). Use it as the queue_id filter on GET /queue/jobs or to purge the job via DELETE /queue/purge.

Example:

"00000000-0000-0000-0000-000000000000"

message_id
string

WhatsApp message id produced when the job completed. Absent or null while the job has not been submitted yet.

Example:

"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"

status
string

Queue state of the job: one of waiting, active, completed, failed, delayed. Absent when the queue does not report a state for the job.

Example:

"completed"

stacktrace
string[]

Present only when the job has a failure stack trace — a single-element array containing the first line of the most recent stack trace.

Example:
attemptsStarted
integer

Number of processing attempts started for the job

Example:

1

attemptsMade
integer

Number of processing attempts completed for the job

Example:

1

addedTimestamp
integer

When the job was added to the queue, as an epoch timestamp in milliseconds

Example:

1737373507280

finishedTimestamp
integer

When the job finished (completed or failed), as an epoch timestamp in milliseconds. Absent while the job is still queued or processing.

Example:

1737373510691

processedTimestamp
integer

When processing of the job started, as an epoch timestamp in milliseconds. Absent while the job is still waiting.

Example:

1737373507380