Skip to main content

GET /sms/lines/{line}/scheduled

List scheduled messages

Scopesms:read
Role permissionPhone numbers — line must be one of theirs
CostFree

What is queued to go out from this line, with the price each will cost.

Path parameters​

NameTypeRequiredExampleDescription
linestringyes12125550188One of your account's numbers. Digits.

Responses​

200​

The queued messages.

FieldTypeDescription
[].idintegerThe scheduled message's id — pass it to cancel this one before it sends.
[].linestringThe number it will be sent from (one of your account's numbers).
[].recipientsstring[]The numbers it will be sent to.
[].subjectstringThe MMS subject line, if one was set.
[].textstringThe message body.
[].mediastring[]Attachment URLs to send with it, if any — attachments make it an MMS.
[].sendAtstring (RFC 3339)When it is scheduled to go out, RFC 3339 UTC.
[].pricenumberWhat it will cost, fixed at the moment it was scheduled. A later rate-card change does not re-price a message you already committed to; the charge lands when it goes out.
[].currencyUSDThe currency of price — always USD.

Errors​

StatusMeaning
400invalid_request — a missing or malformed field, an unknown enum value, or an unknown field in the body. Nothing was charged.
401unauthenticated — no credential, or one that is invalid, revoked or expired. The WWW-Authenticate header names the scope the endpoint wanted.
403Two different failures share this status; the type field tells them apart — insufficient_scope (the credential lacks the scope) or permission_denied (the scope is fine, but the user's role lacks the permission).
500internal_error — something failed on our side, not with your request. Safe to retry.

See Errors for the full catalog and what to do about each.

Example​

curl -X GET 'https://api.account.telebroad.com/api/public/v1/sms/lines/12125550188/scheduled' \
-H "Authorization: Bearer $TB_KEY"

Try it in the playground →