List text messages

Changed on

Returns the message thread for one of your recipients: your outbound sends and the consumer's inbound replies, newest first. Use this to poll for replies if you do not want to run a webhook endpoint, or to backfill replies after a webhook outage. Results are always scoped to your organization. Provide at least one of messageId, debtorId, destination, or since.

get/text/messages

Request

  • Base URL
    https://collectwiseapi.com
  • URL
    https://collectwiseapi.com/text/messages
  • Auth
    API key in header collectwise_key

Query parameters

messageIdstring

A messageId returned by the send endpoint. Returns that message's whole thread, in both directions. 404 if the id does not belong to your organization.

debtorIdstring

Your reference for the recipient, as sent on debtorId.

destinationstring

Recipient phone number, in any of the formats the send endpoint accepts.

limitinteger

Maximum number of messages to return.

sincestring date-time

ISO 8601 timestamp. Returns only messages created at or after it. Valid on its own, so you can use it to backfill everything your organization received after a webhook outage.

Headers

x-cw-timestampstring

Required together with x-cw-signature when signing is enabled for this key or organization. POST /security/verify also requires signing whenever a usable secret exists. Canonical Unix seconds, within ±300 seconds. See API Access for CW1 signing.

x-cw-signaturestring

CW1 HMAC-SHA256 signature: v1= followed by 64 lowercase hex digits. Use the decoded 32-byte signing secret and exact request bytes. See API Access.

Response

Matching messages, newest first.

countinteger required

Changes