MessageOS
APIContactsId

Read a contact

GET
/contacts/{id}

Returns one contact for this client. Scope: contacts:read.

Authorization

bearer
headerAuthorizationBearer <mosc_...>

A client key (mosc_).

Path Parameters

id*integer

The contact id.

Range0 < value

Response Body

The contact.

application/json
  1. response

A person this client can message. A contact is unique per phone number.

id*integer
phoneNumber*string

E.164 phone number.

externalId*|

Your own id for this person.

displayName*string|null
timezone*|

IANA time zone. Quiet hours use it first, then the client time zone.

attributes*

Fields this client defined for its contacts.

optedIn*boolean

false after the person opts out. Only a message from the person changes it.

consent*
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
lastInboundAt*|null
lastOutboundAt*|null

Example request

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

Example response

{  "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"}