Required Headers
All HTTP headers required for API requests
Reading time: 1 minute
Required Headers
Every API request must include the following headers:
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
Accept | string | Yes | Accepted content type | application/json |
X-Awal-Signature-256 | string | Yes | HMAC signature for the request (sha256=...) | - |
X-Timestamp | integer | Yes | Request timestamp (Unix timestamp in seconds) | - |
X-Domain | string | Yes | Workspace domain | - |
X-Client-ID | string | Yes | Client ID | - |
Important: All these headers are mandatory. Missing any of them will result in the request being rejected with a 401 Unauthorized error.
Complete Request Example
Complete Request Examplebash
curl -X POST "{{base_url}}/w/message/text?phone_number_id=123" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Awal-Signature-256: sha256=abc123..." \
-H "X-Timestamp: 1234567890" \
-H "X-Domain: your-workspace" \
-H "X-Client-ID: client-123" \
-d '{
"phone": "96650000000",
"body": "Hello, welcome to our service"
}'Related
ā Back to Authentication
View Guide