SMS Log: lists outbound SMS delivery records for the caller's scope.
GET
/api/twilio/sms-log
deprecated
Requires: Twilio.SmsLog.View, merchant scope.
Newest first, with cursor-based paging. Each row is one outbound message and carries its current lifecycle status, updated in place as Twilio reports delivery progress. Tenant and merchant scoping is enforced server-side from the caller's operating context: merchant-scoped users see only their own merchant, while a caller holding `SmsLog.ViewAllMerchants` may target a specific merchant or leave the scope open. Recipient and sender numbers are returned masked to their last four digits; the full values never leave the server on this surface. Paging is cursor-based, not skip/take. Pass `NextContinuationToken` from the previous response back as `ContinuationToken`; a `null` token in the response means there are no further pages. Sorting supports the send timestamp only and defaults to newest first.
Signed in, you can send this request to your own sandbox merchant from the console and read the answer. Sign in to try it.
Example request
Every block below sends the same request. Replace {{BASE_URL}} with the address of the API you are calling and {{API_KEY}} with your own key.
The request body is a . See the Request body section below for its fields.
Parameters
| Name | In | Type | Description | ||||
|---|---|---|---|---|---|---|---|
MaxResultCount
required |
query | integer (int32) | Maximum rows per page, capped at 100.
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||
ContinuationToken
required |
query | string | Opaque cursor returned by a prior call. `null` for the first page.
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||
IncludeDeleted
required |
query | boolean | Disables the soft-delete filter. Honoured only for callers with the relevant permission.
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||
IncludeInactive
required |
query | boolean | Disables the IsActive filter. Honoured only for callers with the relevant permission.
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||
IncludeApproxTotalCount
required |
query | boolean | Set to false to skip the approximate total count query and receive a null count;
omit the value or set it to true to receive the count as before.
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||
Sorting.Field
required |
query | string |
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||
Sorting.Descending
required |
query | boolean |
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||
Filter.Logic
required |
query | FilterLogic FilterLogic |
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||
Filter.Rules
required |
query | array of FilterRule array of FilterRule |
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||
Filter.Groups
required |
query | array of FilterGroup array of FilterGroup |
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||
MerchantId
required |
query | string (uuid) | Caller-requested merchant scope. Honoured only when the caller holds
`SmsLog.ViewAllMerchants`; otherwise the caller's own merchant is used.
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||
suppressNulls
required |
query | boolean | If true, omit properties with null values.
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
|
Request body
application/json
, required
| Field | Type | Description |
|---|
This request body has no documented fields.
Responses
Errors
A failed request returns the platform error envelope. The
error reference lists every value
error.code can carry and shows the four response shapes.
Authentication
ApiKeywith scopes