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
Response Body (Message Details)
Theresponse_body contains the WhatsApp message details:
Response Status Codes
Check theresponse_status field to determine if the request was successful:
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.