APIContactsId
Read a contact
GET
Returns one contact for this client. Scope: contacts:read.
bearerheader
AuthorizationBearer <mosc_...>A client key (mosc_).
id*integerThe contact id.
Range
0 < valueThe contact.
application/json- response
A person this client can message. A contact is unique per phone number.
id*integerphoneNumber*stringE.164 phone number.
externalId*|Your own id for this person.
displayName*string|nulltimezone*|IANA time zone. Quiet hours use it first, then the client time zone.
attributes*Fields this client defined for its contacts.
optedIn*booleanfalse after the person opts out. Only a message from the person changes it.
consent*createdAt*stringFormat
date-timeupdatedAt*stringFormat
date-timelastInboundAt*|nulllastOutboundAt*|nullExample 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"}