SMS messages

List SMS messages

Changed on

Lists texts on the account's business lines, newest first: what contacts sent, what the line's assistant and follow-ups answered, and texts sent through this API. Filter by counterpart to read one conversation.

get/sms-messages

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Query parameters

counterpart, string

The contact's phone number, to read one conversation. Any format; a number without a country code is read in your line's country. A value that isn't a phone number is a 400.

direction, 'inbound' | 'outbound'

inbound or outbound.

author, 'contact' | 'assistant' | 'outreach' | 'agent'

contact, assistant, outreach or agent.

status, string

received, pending, sent, delivered, failed, refused or superseded.

created, union
integer

Unix seconds, exact match

OR
string

Unix seconds or an ISO 8601 time, exact match

OR
object

Only return objects created in this window. Pass a Unix timestamp in seconds for an exact match, or bound it with created[gt], created[gte], created[lt] and created[lte], which combine: created[gte]=1735689600&created[lt]=1738368000 is January 2025. ISO 8601 times work too (created[gte]=2025-01-01T00:00:00Z), so a created_at from a response can be passed back as is, and an ISO 8601 date (created[gte]=2025-01-01) is that whole UTC day. Timestamps are in seconds: a value in milliseconds is rejected with 400 parameter_invalid.

Response

List of texts

ListResponseSmsMessage required
object, 'list' required
data, SmsMessage[] required
has_more, boolean required
url, string required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    4 more changes in this revision