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
iduuid — Unique identifier.firstNamestring | null — Given name.lastNamestring | null — Family name.companystring | null — Company or organisation.phonesarray of {value, label?} — Phone numbers in E.164. The first one is the primary number.emailsarray of {value, label?} — Email addresses.notesarray of strings — Free-text notes, oldest first.propertiesobject — Your own string key/value fields (for example{"crmId": "A-1042"}).tagsarray of strings — Labels used for filtering in the app.sourcestring | 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 examplehubspot).createdAttimestamp — ISO 8601.
List endpoints return a lighter contact summary: id, firstName, lastName, company, phone (the primary number) and createdAt.
{
"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.
jobTitlestring | null — Job title, e.g."Operations Manager".headlinestring | null — Professional headline, e.g."COO at Brightline Logistics".websitestring | null — Personal or company website, stored as a bare domain (example.com).companyDomainstring | null — Company domain.linkedinUrl,companyLinkedinUrlstring | null —httpsURLs onlinkedin.com.profilePhotoUrlstring | null —httpsURL of a profile photo.secondaryPhonestring | null — A second number, E.164. Not used to match calls or texts; add a number tophonesfor that.addressStreet,addressCity,addressState,addressPostalCode,addressCountrystring | null — Postal address.addressCountryis ISO 3166-1 alpha-2 when known ("US").phoneLineTypestring | null —mobile,landline,voip,toll_freeorunknown: the line type of the primary number.phoneCarrierstring | null — Carrier of the primary number.callerIdNamestring | null — Caller ID name (CNAM) as listed by the carrier. Often a business or a city rather than a person.aiNotesstring | null — Short notes Ody AI took from calls and texts, one per line, at most 12.enrichmentStatusstring, read-only —enriched(Ody found something about the person),partial(only about the number),pending,failedornone.lastEnrichedAttimestamp | null, read-only — When Ody last added a detail.fieldSourcesobject, 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:
{
"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" }
}
}source | Meaning | aiGenerated |
|---|---|---|
user | Typed in the Ody app | false |
import | A CSV import or a CRM sync | false |
api | This API or the MCP server | false |
ai_extract | Said by the contact on a call or in a text | true |
blitz, telnyx_identity, telnyx_cnam | A phone-number lookup | true |
#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
/v1/api/contactsReturns 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
qstring — Full-text search query.limitinteger — 1–200, default 50.cursorstring —nextCursorfrom 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"const { contacts, nextCursor } = await ody.contacts.list({ q: "ada", limit: 20 });page = client.contacts.list(q="ada", limit=20)
contacts, next_cursor = page["contacts"], page["nextCursor"]{
"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
/v1/api/contactsCreates 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
firstNamestringlastNamestringcompanystringphonestring — Convenience field, merged intophones. E.164.emailstring — Convenience field, merged intoemails.phonesarray — Strings, or{ "value", "label" }objects.emailsarray — Strings, or{ "value", "label" }objects.notesarray of stringspropertiesobject — String values only.tagsarray 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"]
}'const contact = await ody.contacts.create({
firstName: "Ada",
lastName: "Lovelace",
phone: "+15125550123",
properties: { crmId: "A-1042" },
tags: ["vip"],
});contact = client.contacts.create(
first_name="Ada",
last_name="Lovelace",
phone="+15125550123",
properties={"crmId": "A-1042"},
tags=["vip"],
){
"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
/v1/api/contacts/:idReturns 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"const contact = await ody.contacts.get("8b1d6f3e-2c4a-4e1b-9f0d-7a5c3e2b1a90");contact = client.contacts.get("8b1d6f3e-2c4a-4e1b-9f0d-7a5c3e2b1a90")#Update a contact
/v1/api/contacts/:idChanges 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"]}'await ody.contacts.update("8b1d6f3e-2c4a-4e1b-9f0d-7a5c3e2b1a90", {
company: "Analytical Engines",
tags: ["vip", "renewal-q4"],
});client.contacts.update(
"8b1d6f3e-2c4a-4e1b-9f0d-7a5c3e2b1a90",
company="Analytical Engines",
tags=["vip", "renewal-q4"],
)#Delete a contact
/v1/api/contacts/:idPermanently 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"await ody.contacts.delete("8b1d6f3e-2c4a-4e1b-9f0d-7a5c3e2b1a90");client.contacts.delete("8b1d6f3e-2c4a-4e1b-9f0d-7a5c3e2b1a90")