Get Queued Request
Check the status and response of a queued API request
Understanding Queued Requests
In V2 of the Hypersender WhatsApp API, all requests are processed asynchronously through a queue system. This provides improved reliability and performance. When you make any API request (send message, send image, etc.), you’ll receive an immediate response like this:Response Format
When you query a queued request, you’ll receive the full details including the original request and the response:Response Fields
| Field | Type | Description |
|---|---|---|
uuid | string | Unique identifier for the queued request |
request | object | The original request payload you sent |
response_status | integer | HTTP status code of the processed request (e.g., 201 for success) |
response_body | object | The actual API response with message details |
response_header | object | Response headers from the processed request |
Response Body (Message Details)
Theresponse_body contains the WhatsApp message details:
| Field | Description |
|---|---|
key.id | Unique WhatsApp message ID |
key.fromMe | Whether the message was sent by you |
key.remoteJid | The recipient’s WhatsApp JID |
status | Message status (e.g., “PENDING”, “SENT”, “DELIVERED”) |
message | The message content |
messageTimestamp | Unix timestamp when the message was sent |
Response Status Codes
Check theresponse_status field to determine if the request was successful:
| Status | Description |
|---|---|
201 | Message sent successfully |
404 | Instance not found or recipient not on WhatsApp |
422 | Validation error (invalid chatId, missing fields, etc.) |
500 | Server error |
Example: Failed Request
If the request failed (e.g., invalid phone number), the response will look like:Polling Strategy
Example Polling Code (JavaScript)
Example Polling Code (PHP)
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
application/json
"application/json"
Path Parameters
Instance UUID copied from hypersender dashboard
"{{ instance_id }}"
The UUID of the queued request returned from any API call
"a0816120-7e37-4e8b-8cf3-92deb2cdc133"
Response
Queued request details
Response when checking the status of a queued request
UUID of the queued request
"a0816120-7e37-4e8b-8cf3-92deb2cdc133"
The original request details
HTTP status code of the processed request. Null while the request is still being processed.
200
The actual API response body once the request is processed. Contains the message details when completed, or error details when failed. Null while processing.
The response headers from the processed request. Null while processing.