HomeUser GuidesAPI Reference
Get Started
HomeAPI Reference
Authentication
Branches
Contact Groups
Contacts
Conversations
Error HandlingInvoices
Messages
Orders
Rate LimitingSDKs & Code ExamplesTemplatesTicketsAPI VersioningWABA NumbersWebhooks
User GuideAPI ReferenceBest PracticesRequired Headers

Required Headers

All HTTP headers required for API requests

Reading time: 1 minute

Required Headers

Every API request must include the following headers:

ParameterTypeRequiredDescriptionDefault
AcceptstringYesAccepted content typeapplication/json
X-Awal-Signature-256stringYesHMAC signature for the request (sha256=...)-
X-TimestampintegerYesRequest timestamp (Unix timestamp in seconds)-
X-DomainstringYesWorkspace domain-
X-Client-IDstringYesClient 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
View