Create Sip Connection
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/sip-connections" \ -H "Content-Type: application/json" \ -d '{ "label": "string", "default_region": "string" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "label": "string", "default_region": "string", "sip_host": "string", "username": "string", "password_last4": "string", "pbx_host": "string", "pbx_port": 0, "pbx_transport": "string", "pbx_username": "string", "pbx_password_set": true, "created_at": "2019-08-24T14:15:22Z", "password": "string"}Create File Upload
Make a one-time link to upload one file with a plain HTTP PUT. For callers whose shell has no Hail key (an agent using the MCP). Send the raw bytes to `upload_url` with `PUT` and no Authorization header, once, before `expires_at` (15 minutes): ``` curl --silent --show-error --globoff --upload-file 'passport.jpg' '<upload_url>' ``` The PUT answers with `size_bytes` and `sha256` of what was stored. An organization may hold at most 50 unused, unexpired links. For `sms_evidence` the PUT also answers with `url`, the public link for an `*_evidence_url` field of a US texting registration. It works like `POST /v1/verifications/sms/evidence`.
Create Sms
Send an outbound SMS. Sends synchronously — the response reports the final status (sent or failed), not a queued placeholder, though delivery confirmation from the carrier can still arrive later as a webhook or GET /v1/sms/{sms_id} update. An explicit from resolves a dedicated number; otherwise Hail picks an alphanumeric sender ID where the destination corridor allows it, or requires a dedicated SMS-capable number otherwise. Requires recipient_consent=true on the request body; Hail does not verify lawful basis to contact the recipient, the caller warrants it. Trial texts (only to the workspace's verified trial phone): with no from, Hail uses one when the workspace's own number cannot text that US phone; set from to the trial number to use one directly.