Authentication
Authorization: Bearer <YOUR_API_KEY>curl -X POST https://postman.gov.sg/api/v2/campaigns/campaign_abc123/messages \
-H "Content-Type: application/json" \
-H "Authorization: Bearer key_prod_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6" \
-d '{
"recipient": "6591112222",
"language": "english"
}'{
"id": "msg_abc123xyz789",
"recipient": "6591112222",
"language": "english",
"latestStatus": "created",
"campaignId": "campaign_abc123",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}{
"message": "Unauthorized",
"statusCode": 401
}Last updated
Was this helpful?