Skip to navigation

List Project SMS

Retrieve a paginated list of text messages (SMS and MMS) on a project, newest first.

Supports:

  • Pagination (page_size, page)
  • Filtering by direction (INBOUND or OUTBOUND)
  • Date filtering (updated_after, updated_before)
  • Sorting by creation time (order_by, newest first by default)

Read-only: sending texts is not supported through the API. Texts are sent through Coperniq automations.

Authentication

x-api-keystring
API Key authentication via header

Path parameters

project_idintegerRequired
Project identifier

Query parameters

page_sizeintegerOptional1-100Defaults to 20

Number of items per page (max 100)

pageintegerOptional>=1Defaults to 1

Page number (1-based)

directionenumOptional
Only return texts in this direction
Allowed values:
updated_afterstringOptional

Only return texts updated after this timestamp (ISO 8601 date or date-time)

updated_beforestringOptional

Only return texts updated before this timestamp (ISO 8601 date or date-time). Must not be earlier than updated_after.

order_byenumOptionalDefaults to desc
Sort by creation time. Defaults to newest first.
Allowed values:

Response

List of text messages
idintegerOptional
Text message identifier
recordIdinteger or nullOptional
ID of the project, opportunity or account the text is on
directionenumOptional
Allowed values:
statusstring or nullOptional

Delivery status from the carrier, lowercase (for example queued, sent, delivered, undelivered, failed, received, scheduled, canceled)

textstring or nullOptional
fromPhonestring or nullOptional
toPhonestring or nullOptional
fromContactobject or nullOptional
Contact who sent the text
toContactobject or nullOptional
Contact who received the text
fromUserobject or nullOptional
Team member who sent the text
toUserobject or nullOptional
Team member who received the text
createdByobject or nullOptional

Team member who created the text. null for inbound texts and texts sent by automations.

isMmsbooleanOptional
medialist of objectsOptional

MMS attachments. Fetch each file with GET /files/{file_id}.

sentByAutomationbooleanOptional

true when a Coperniq automation sent the text

scheduledForstring or nullOptionalformat: "date-time"

When a scheduled text is due to send. null otherwise.

createdAtstringOptionalformat: "date-time"
updatedAtstringOptionalformat: "date-time"

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
500
Internal Server Error
502
Bad Gateway Error