OdyDocs

Contacts

Create, retrieve, update, search and delete the people your business talks to.

A contact is a person or company your business talks to. Ody creates contacts automatically the first time an unknown number texts or calls in. You can also create them yourself, for example to sync a CRM. Every conversation thread is attached to the contact whose phone number it involves.

#The contact object

  • id uuid — Unique identifier.
  • firstName string | null — Given name.
  • lastName string | null — Family name.
  • company string | null — Company or organisation.
  • phones array of {value, label?} — Phone numbers in E.164. The first one is the primary number.
  • emails array of {value, label?} — Email addresses.
  • notes array of strings — Free-text notes, oldest first.
  • properties object — Your own string key/value fields (for example {"crmId": "A-1042"}).
  • tags array of strings — Labels used for filtering in the app.
  • source string | null — How the contact was created: manual (the app or this API), inbound (auto-created from a text or call), or the integration it was synced from (for example hubspot).
  • createdAt timestamp — ISO 8601.

List endpoints return a lighter contact summary: id, firstName, lastName, company, phone (the primary number) and createdAt.

The contact object
{
  "id": "8b1d6f3e-2c4a-4e1b-9f0d-7a5c3e2b1a90",
  "firstName": "Ada",
  "lastName": "Lovelace",
  "company": "Analytical Engines",
  "phones": [{ "value": "+15125550123", "label": "mobile" }],
  "emails": [{ "value": "[email protected]" }],
  "notes": ["Prefers texts after 5pm"],
  "properties": { "crmId": "A-1042" },
  "tags": ["vip"],
  "source": "manual",
  "createdAt": "2026-10-14T18:02:11.000Z"
}

#Card details and AI Contact

When AI Contact is on for a workspace, Ody fills in the empty details of a contact from calls and texts, and a contact carries the fields below. Workspaces without AI Contact don't return these fields and ignore them in requests.

  • jobTitle string | null — Job title, e.g. "Operations Manager".
  • headline string | null — Professional headline, e.g. "COO at Brightline Logistics".
  • website string | null — Personal or company website, stored as a bare domain (example.com).
  • companyDomain string | null — Company domain.
  • linkedinUrl, companyLinkedinUrl string | null — https URLs on linkedin.com.
  • profilePhotoUrl string | null — https URL of a profile photo.
  • secondaryPhone string | null — A second number, E.164. Not used to match calls or texts; add a number to phones for that.
  • addressStreet, addressCity, addressState, addressPostalCode, addressCountry string | null — Postal address. addressCountry is ISO 3166-1 alpha-2 when known ("US").
  • phoneLineType string | null — mobile, landline, voip, toll_free or unknown: the line type of the primary number.
  • phoneCarrier string | null — Carrier of the primary number.
  • callerIdName string | null — Caller ID name (CNAM) as listed by the carrier. Often a business or a city rather than a person.
  • aiNotes string | null — Short notes Ody AI took from calls and texts, one per line, at most 12.
  • enrichmentStatus string, read-only — enriched (Ody found something about the person), partial (only about the number), pending, failed or none.
  • lastEnrichedAt timestamp | null, read-only — When Ody last added a detail.
  • fieldSources object, read-only — Who filled each field. See below.

#Who filled each field

fieldSources is keyed by field name and lists only fields that have a value:

JSON
{
  "id": "8b1d6f3e-…",
  "firstName": "Sophie",
  "lastName": "Tran",
  "company": "Brightline Dental",
  "jobTitle": "Office manager",
  "enrichmentStatus": "enriched",
  "lastEnrichedAt": "2026-11-13T18:02:11.000Z",
  "fieldSources": {
    "firstName": { "source": "ai_extract", "aiGenerated": true,  "updatedAt": "2026-11-13T18:02:11.000Z" },
    "lastName":  { "source": "blitz",      "aiGenerated": true,  "updatedAt": "2026-11-13T18:02:09.000Z" },
    "company":   { "source": "api",        "aiGenerated": false, "updatedAt": "2026-11-12T09:14:00.000Z" },
    "jobTitle":  { "source": "blitz",      "aiGenerated": true,  "updatedAt": "2026-11-13T18:02:09.000Z" }
  }
}
sourceMeaningaiGenerated
userTyped in the Ody appfalse
importA CSV import or a CRM syncfalse
apiThis API or the MCP serverfalse
ai_extractSaid by the contact on a call or in a texttrue
blitz, telnyx_identity, telnyx_cnamA phone-number lookuptrue

#Writing these fields

Send any of the card fields in POST /contacts or PATCH /contacts/:id. null or "" clears a field. Values are validated: an invalid URL, domain, phone number or line type returns 400 invalid_argument naming the field.

Anything you write is yours. A field written through the API gets source: "api", and Ody AI never overwrites a field whose source is user, import or api — including one you cleared. Only fields whose value actually changes are affected, so re-sending a whole contact doesn't claim the AI-filled fields you left untouched.

fieldSources, enrichmentStatus and lastEnrichedAt are read-only and ignored in requests.

To be told when Ody adds details, subscribe to contact.updated and look for change: "enriched".

#List contacts

GET/v1/api/contacts

Returns the workspace's contacts, newest first. Pass q to run a full-text search over names, company, phones and emails. Results are cursor-paginated.

Scope: contacts:read

Query parameters

  • q string — Full-text search query.
  • limit integer — 1–200, default 50.
  • cursor string — nextCursor from the previous page.

Returns { contacts: ContactSummary[], nextCursor: string | null }.

curl "https://api.ody.co/v1/api/contacts?q=ada&limit=20" \
  -H "Authorization: Bearer $ODY_API_KEY"
Response
{
  "contacts": [
    {
      "id": "8b1d6f3e-2c4a-4e1b-9f0d-7a5c3e2b1a90",
      "firstName": "Ada",
      "lastName": "Lovelace",
      "company": "Analytical Engines",
      "phone": "+15125550123",
      "createdAt": "2026-10-14T18:02:11.000Z"
    }
  ],
  "nextCursor": null
}

#Create a contact

POST/v1/api/contacts

Creates a contact. You must send at least one identity field: firstName, lastName, company, phone/phones or email/emails.

If the phone matches a contact Ody auto-created from an inbound text or call (one that has no name yet), that contact is adopted and updated instead of duplicated. Its existing threads keep their history.

Scope: contacts:write

Body

  • firstName string
  • lastName string
  • company string
  • phone string — Convenience field, merged into phones. E.164.
  • email string — Convenience field, merged into emails.
  • phones array — Strings, or { "value", "label" } objects.
  • emails array — Strings, or { "value", "label" } objects.
  • notes array of strings
  • properties object — String values only.
  • tags array of strings

Returns 201 with { contact }.

curl https://api.ody.co/v1/api/contacts \
  -H "Authorization: Bearer $ODY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "firstName": "Ada",
    "lastName": "Lovelace",
    "phone": "+15125550123",
    "properties": { "crmId": "A-1042" },
    "tags": ["vip"]
  }'
Response
{
  "contact": {
    "id": "8b1d6f3e-2c4a-4e1b-9f0d-7a5c3e2b1a90",
    "firstName": "Ada",
    "lastName": "Lovelace",
    "company": null,
    "phones": [{ "value": "+15125550123" }],
    "emails": [],
    "notes": [],
    "properties": { "crmId": "A-1042" },
    "tags": ["vip"],
    "source": "manual",
    "createdAt": "2026-10-14T18:02:11.000Z"
  }
}

#Retrieve a contact

GET/v1/api/contacts/:id

Returns the full contact.

Scope: contacts:read

Returns { contact }, or 404 not_found.

curl https://api.ody.co/v1/api/contacts/8b1d6f3e-2c4a-4e1b-9f0d-7a5c3e2b1a90 \
  -H "Authorization: Bearer $ODY_API_KEY"

#Update a contact

PATCH/v1/api/contacts/:id

Changes only the fields you send. Array and object fields (phones, emails, notes, properties, tags) are replaced wholesale. To add a tag, read the contact, append to the array, then send the whole array back.

Scope: contacts:write

Body: any field from Create a contact. Send null to clear firstName, lastName or company.

Returns { contact }.

curl -X PATCH https://api.ody.co/v1/api/contacts/8b1d6f3e-2c4a-4e1b-9f0d-7a5c3e2b1a90 \
  -H "Authorization: Bearer $ODY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"company":"Analytical Engines","tags":["vip","renewal-q4"]}'

#Delete a contact

DELETE/v1/api/contacts/:id

Permanently deletes the contact. Conversation threads are not deleted: they stay in the inbox under the raw phone number, and a new text from that number creates a fresh contact.

Scope: contacts:write

Returns { "deleted": true }.

curl -X DELETE https://api.ody.co/v1/api/contacts/8b1d6f3e-2c4a-4e1b-9f0d-7a5c3e2b1a90 \
  -H "Authorization: Bearer $ODY_API_KEY"
Last updated Sat Nov 14 2026 00:00:00 GMT+0000 (Coordinated Universal Time)Something wrong on this page? Tell us