Basic request
Send an SMS withPOST /sms and include an idempotency key so retries do not create duplicate messages.
202 Accepted. This means Dugble accepted the message for asynchronous delivery; it does not mean the handset has received it.
Recipient numbers
Theto value must be a supported E.164 phone number, for example:
Sender
Thefrom value must match an approved sender ID available to the authenticated team. Sender IDs can contain up to 11 characters.
See Sender IDs for registration and approval guidance.
Message body
Thebody field is required and can contain up to 1,600 Unicode characters.
Dugble determines whether the message uses GSM-7 or UCS-2 encoding and calculates the resulting number of SMS segments. The SMS resource exposes this as segments.
Longer messages may use multiple billable segments even though they are submitted through one API request.
Metadata
Use the optionalmetadata field to associate application data with the SMS. It must contain valid JSON.
Schedule delivery
Setscheduled_at when the SMS should be delivered later instead of immediately. See Schedule SMS.