MessageOS
APIContacts

List contacts

GET
/contacts

Lists contacts in id order. Pass nextCursor as cursor for the next page. Scope: contacts:read.

Authorization

bearer
headerAuthorizationBearer <mosc_...>

A client key (mosc_).

Query Parameters

phoneNumber?string

Only the contact with this phone number.

externalId?string

Only the contact with this externalId.

limit?integer

Page size, 1 to 100. The default is 25.

Range1 <= value <= 100
cursor?string

nextCursor from the previous page.

updatedSince?string

Only contacts updated at or after this time.

Formatdate-time

Response Body

A page of contacts.

application/json
  1. response
data*array<>
nextCursor*|

Pass it as cursor for the next page. null when this page was not full.

Example request

curl 'https://api.messageos.ai/v1/contacts' \  -H 'Authorization: Bearer mosc_...'

Example response

{  "data": [    {      "id": 42,      "phoneNumber": "+15555550123",      "externalId": "crm-881",      "displayName": "Pat Lee",      "timezone": "America/New_York",      "attributes": {        "property1": null,        "property2": null      },      "optedIn": true,      "consent": {        "source": "web_form",        "capturedAt": "2026-10-28T23:00:00.000Z"      },      "createdAt": "2026-10-28T23:00:00.000Z",      "updatedAt": "2026-10-28T23:00:00.000Z",      "lastInboundAt": "2026-10-28T23:00:00.000Z",      "lastOutboundAt": "2026-10-28T23:00:00.000Z"    }  ],  "nextCursor": "string"}