VocalDocscontracts 1.65.0

Read a Contact

GET /v1/contacts/{contact_id}

PropertyValue
Operationget_contact
GroupContacts
Scopecontacts:read
Scopes of include valuesprofile needs contacts:content
Route classread
IdempotencyNo Idempotency-Key
AuditAn audited content read contacts.contact.read, when the request names an include value
Released in1.61.0
Phase 0 hostServed (the hosted api pins 1.65.0)

Answers a Contact (1.61.0); its profile only when the read names include=profile, which needs contacts:content and is an audited content read (section 5, rule 5). A merged Contact answers its tombstone with merged_into_id.

Request

Set VOCAL_API to the base URL of your API and VOCAL_API_KEY to an API key with the contacts:read scope (Authentication and keys). Replace each placeholder, such as agt_... or <name>, with your own value.

curl "$VOCAL_API/v1/contacts/ctc_..." \
  -H "Authorization: Bearer $VOCAL_API_KEY"

Parameters

NameInTypeRequiredDescription
contact_idpathContactIdyesThe id of a Contact: ctc_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.
includequeryarray of ContactIncludenoprofile adds the content (contacts:content).

Responses

StatusContent typeShapeError codes
200application/jsonContact
400application/jsonErrorEnvelopeinvalid_request
401application/jsonErrorEnvelopeunauthenticated
403application/jsonErrorEnvelopeforbidden
404application/jsonErrorEnvelopenot_found
429application/jsonErrorEnveloperate_limited
500application/jsonErrorEnvelopeinternal_error

Fields of the 200 answer

The shape is Contact.

FieldTypeRequiredDescription
consentContactConsentSummaryyes
created_atTimestampyes
delete_afterTimestamp or nullyesWhen a deleted Contact is purged; null otherwise.
environmentEnvironmentyes
idContactIdyes
last_activity_atTimestamp or nullyesThe last Call, message or API write, from which contact_inactivity_days counts.
merged_into_idContactId or nullyesThe survivor of a merged one.
object"contact"yes
profileContactProfile or nullyesThe content; null unless the read names include=profile.
revisionintegeryes
sourceContactSourceyes
statusContactStatusyes
updated_atTimestampyes