API
API Reference
Contacts
Get Contact

Get Contact

Retrieve a single contact by the external IDs you already use to create or update it — the customer's and the contact's.

For interactive API documentation, see the Swagger reference (opens in a new tab).

Endpoint

MethodURL
GEThttps://api.customerscore.io/api/v1/customer/{customerExternalId}/contact/{contactExternalId}

Path Parameters

ParameterTypeRequiredDescription
customerExternalIdstringYesExternal ID of the customer the contact belongs to.
contactExternalIdstringYesContact external ID.

Query Parameters

ParameterTypeRequiredDescription
propertiesstringNoComma-separated contact property codenames to include in the properties object (e.g. job_title,email). Omit to return all. Core fields are always returned.

Example Request

curl -X GET "https://api.customerscore.io/api/v1/customer/12345/contact/contact-001?properties=job_title,email" \
  -H "customerscore-key: your-generated-key"

Response Body

FieldTypeNullableDescription
idstringNoContact external ID (the identifier from your system).
customerscore_idnumberNoInternal CustomerScore ID of the contact record.
namestringYesContact name.
engagementscorenumberYesEngagement (health) score.
engagementscore_differencenumberYesEngagement score change since the previous scoring record.
engagementscore_trendobjectYesEngagement score history (last 15 records within 1 year), keyed by scoring date (YYYY-MM-DD).
last_seenstringYesLatest scoring date (YYYY-MM-DD).
tagsstring[]NoTitles of the tags assigned to this contact. Empty array when none.
customer_external_idstringYesExternal ID of the customer the contact belongs to.
customer_customerscore_idnumberYesInternal CustomerScore ID of the customer the contact belongs to.
propertiesobjectNoCustom contact property values keyed by codename.
createdAtstringYesWhen the contact record was created (ISO 8601).
updatedAtstringYesWhen the contact record was last updated (ISO 8601).

Example Response

{
  "id": "contact-001",
  "customerscore_id": 45678,
  "name": "John Doe",
  "engagementscore": 72,
  "engagementscore_difference": 4,
  "engagementscore_trend": {
    "2024-06-14": 68,
    "2024-06-15": 72
  },
  "last_seen": "2024-06-15",
  "tags": ["Champion"],
  "customer_external_id": "12345",
  "customer_customerscore_id": 98765,
  "properties": {
    "job_title": "CTO",
    "email": "[email protected]"
  },
  "createdAt": "2024-01-10T08:30:00.000Z",
  "updatedAt": "2024-06-15T09:00:00.000Z"
}

Response Codes

CodeDescription
200The contact was found and returned
401Unauthorized - Missing customerscore-key in the header
403Forbidden - Invalid key
404Customer or contact not found
405Method Not Allowed - Only GET method is allowed