Hail API
POST
/sms

Header Parameters

authorization?string|null
Idempotency-Key?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/sms" \  -H "Content-Type: application/json" \  -d '{    "recipient_consent": true,    "to": "string",    "body": "string"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",  "from_e164": "string",  "to_e164": "string",  "direction": "outbound",  "status": "queued",  "body": "string",  "provider_message_sid": "string",  "segment_count": 0,  "error_code": "string",  "requested_at": "2019-08-24T14:15:22Z",  "sent_at": "2019-08-24T14:15:22Z"}