Get a specific contact

GET/v1/chatbots/{chatbotId}/contacts/{contactId}

Fetch one contact of a chatbot by its ID with the legacy v1 API, including name, email, phone and custom attributes.

Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.

Returns one contact with its custom attributes. Call it when you need the profile of a person the agent talked to, for example to show it next to a ticket in your own tool.

Request

GET /v1/chatbots/{chatbotId}/contacts/{contactId}

Path parameters:

Name Type Required Description
chatbotId string Yes The ID of the chatbot, starting with agt_.
contactId string Yes The ID of the contact, starting with con_.

The request has no body and no query parameters. If you only know the email address, find the ID with Get contacts for a chatbot and its email filter.

Example request

curl https://api.askocto.co/v1/chatbots/agt_8f3k2m/contacts/con_4d7h2q \
  -H "Authorization: Bearer $OCTO_API_KEY"
const response = await fetch(
  "https://api.askocto.co/v1/chatbots/agt_8f3k2m/contacts/con_4d7h2q",
  { headers: { Authorization: `Bearer ${process.env.OCTO_API_KEY}` } },
)

const contact = await response.json()
console.log(contact.email, contact.attributes)

Example response

A successful call returns 200 OK.

{
  "id": "con_4d7h2q",
  "chatbotId": "agt_8f3k2m",
  "name": "Maya Jensen",
  "email": "maya@example.com",
  "phone": "+15555550123",
  "attributes": {
    "plan": "pro",
    "company": "Harbor Outfitters"
  },
  "createdAt": "2026-03-14T09:30:00Z",
  "updatedAt": "2026-03-20T14:05:00Z"
}

Response fields

Name Type Description
id string The contact ID, starting with con_.
chatbotId string The chatbot the contact belongs to.
name string Full name, or null when unknown.
email string Email address, or null when unknown.
phone string Phone number, or null when unknown.
attributes object Custom attribute values keyed by attribute name.
createdAt string ISO 8601 UTC creation time.
updatedAt string ISO 8601 UTC time of the last change.

The keys in attributes come from the schema, see Get custom attributes schema.

Errors

Status Code When
401 unauthorized The API key is missing, malformed or revoked.
404 not_found The chatbot or the contact does not exist.
429 rate_limited Too many requests. Wait for the number of seconds in the Retry-After header.

Something unclear or missing? Tell us and we will fix the page.