Create Sms
Header Parameters
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/v1/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", "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978", "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"}Create Sip Connection
Connect your phone system (PBX). Add the returned SIP server, username and password to it as a generic SIP trunk. Read the password again with GET /sip-connections/{id}/password, or rotate it to get a new one. With ``pbx_host``, agents can also call out and hand calls over through your phone system.
Create Subscription
Create a webhook subscription for one or more event types. The response includes the plaintext signing secret — this is the only time it is ever returned; store it now. Every later GET omits it. Use POST /v1/webhooks/{sub_id}/rotate-secret to get a new plaintext secret if it is lost or compromised.