Contacts & CRM
Contacts are the people in your CRM — the single source of truth every other pillar reads. Each contact has a name, a lifecycle stage, and a set of contact points (emails, phones, social handles) from which the primary email/phone is derived.
The same group covers everything built around those people: companies, deals, tasks, tickets, segments and tags.
Scope: contacts:read · contacts:write · Authentication · Pagination · Errors
Try it without a key
The five contact endpoints below run in Demo mode against an in-browser store, so you can click through a full CRUD cycle with no account at all. Everything else on this page sends a real request once you paste in a key — see the playground.
Contacts
List contacts
Return a page of contacts, newest first. Supports search (q), and filters by lifecycle stage and owner_id. Sortable on created_at, display_name, lead_score and lifecycle_stage.
/contactsReturn a page of contacts, newest first. Filter by search text, lifecycle stage, or owner.
Demo mode answers from an in-browser store — no key, no data of yours. Switch to Live to call the real API.
curl -X GET "https://api.onivos.com/contacts?sort=created_at%3Adesc&limit=25&page=1" \
-H "Authorization: Bearer onv_test_…"Send the request to see the response.
Create a contact
Create a contact with an optional set of contact points. The primary_email and primary_phone on the returned object are derived from points — you never set them directly.
/contactsCreate a contact. Contact points (email/phone/social) are passed in points; the primary email/phone is derived from them.
Demo mode answers from an in-browser store — no key, no data of yours. Switch to Live to call the real API.
curl -X POST "https://api.onivos.com/contacts" \
-H "Authorization: Bearer onv_test_…" \
-H "Content-Type: application/json" \
-d '{
"lifecycle_stage": "lead",
"points": [
{
"kind": "email",
"value": "[email protected]",
"type": "work",
"is_primary": true
}
]
}'Send the request to see the response.
Get a contact
Fetch one contact by id, including its contact points. A deleted or merged contact returns 404.
/contacts/{id}Fetch one contact by id, including its contact points.
Demo mode answers from an in-browser store — no key, no data of yours. Switch to Live to call the real API.
curl -X GET "https://api.onivos.com/contacts/175041000000000001" \
-H "Authorization: Bearer onv_test_…"Send the request to see the response.
Update a contact
Partially update a contact — send only the fields you want to change (at least one). To change stage, set lifecycle_stage.
/contacts/{id}Partially update a contact. Send only the fields you want to change (at least one).
Demo mode answers from an in-browser store — no key, no data of yours. Switch to Live to call the real API.
curl -X PATCH "https://api.onivos.com/contacts/175041000000000001" \
-H "Authorization: Bearer onv_test_…"Send the request to see the response.
Delete a contact
Soft-delete a contact. It stops appearing in list reads and by-id lookups return 404.
/contacts/{id}Soft-delete a contact. Merged/deleted contacts never surface in list reads.
Demo mode answers from an in-browser store — no key, no data of yours. Switch to Live to call the real API.
curl -X DELETE "https://api.onivos.com/contacts/175041000000000001" \
-H "Authorization: Bearer onv_test_…"Send the request to see the response.
Contact points and identities
A contact point is an email, phone or social handle. Identities are the channel-level handles (a chat user id, a social profile) used to recognise the same person across channels.
/contacts/{id}/pointsAdd a contact point.Try it/contacts/{id}/points/{pointId}Update a point, including promoting it to primary.Try it/contacts/{id}/points/{pointId}Remove a point.Try it/contacts/{id}/identitiesList the channel identities that resolve to this person.Try it/contacts/{id}/identitiesAttach an identity.Try it/contacts/{id}/identities/{identityId}Detach an identity.Try itActivities, scoring and subscriptions
/contacts/{id}/activitiesThe contact's timeline.Try it/contacts/{id}/activitiesLog an activity (call, note, meeting).Try it/contacts/{id}/activities/{activityId}Edit a logged activity.Try it/contacts/{id}/activities/{activityId}Remove a logged activity.Try it/contacts/{id}/score/historyLead-score changes over time.Try it/contacts/{id}/score/recomputeRe-run scoring rules for this contact.Try it/contacts/{id}/subscriptionsMarketing subscription topics for this person.Try it/contacts/{id}/subscriptionsSet subscription topics.Try it/subscription-topicsThe topics available in this organization.Try itImport, export and merge
/contacts/import/previewDry-run an import: column mapping and what would change.Try it/contacts/importRun the import.Try it/contacts/exportExport contacts.Try it/contacts/mergeMerge duplicates into a surviving contact.Try it/contacts/{id}/mergesMerge history for a contact.Try it/contacts/merges/{logId}/undoUndo a merge.Try it/contacts/merge-suggestionsCandidate duplicate pairs, best first.Try it/contacts/merge-suggestions/countHow many suggestions are open.Try it/contacts/merge-suggestions/scanRe-scan for duplicates now.Try it/contacts/merge-suggestions/{id}/acceptMerge the pair.Try it/contacts/merge-suggestions/{id}/dismissReject the suggestion.Try itLifecycle stages and settings
/lifecycle-stagesThe stage ladder.Try it/lifecycle-stagesReconfigure the stage ladder.Try it/contact-settingsModule-level settings.Try it/contact-settingsUpdate module-level settings.Try it/contacts/field-policiesField-level read/write policies per role.Try it/contacts/field-policiesReplace the policy set.Try it/contacts/field-policies/{field}Drop a field policy.Try it/scoring-rulesLead-scoring rules.Try it/scoring-rulesCreate a scoring rule.Try it/scoring-rules/{id}Update a scoring rule.Try it/scoring-rules/{id}Delete a scoring rule.Try itCompanies
Companies are the B2B side of the same graph: a contact can belong to several, one of which is primary.
/companiesPaged list. Sortable on name, industry, created_at, contact_count; defaults to name:asc.Try it/companiesCreate a company.Try it/companies/{id}One company.Try it/companies/{id}Update a company.Try it/companies/{id}Soft-delete a company.Try it/companies/{id}/contactsPeople at this company.Try it/companies/{id}/rollupAggregated deal, ticket and activity figures.Try it/contacts/{contactId}/companiesA person's companies.Try it/contacts/{contactId}/companiesLink a person to a company.Try it/contacts/{contactId}/companies/{companyId}/primaryMake that link the primary one.Try it/contacts/{contactId}/companies/{companyId}Unlink.Try itDeals and pipelines
Deals read as a board, not a page
GET /deals returns the whole pipeline: { pipeline, stages[] }, each stage carrying its deals. That is the kanban contract — it is not paged, and page/limit do not apply. Pass ?pipeline_id= to pick a pipeline; omit it for the default one.
/dealsThe board: pipeline, its stages, and the deals in each. Not paged.Try it/dealsCreate a deal.Try it/deals/{id}One deal.Try it/deals/{id}Update a deal, including moving it to another stage.Try it/deals/{id}Soft-delete a deal.Try it/pipelinesList pipelines with their stages.Try it/pipelinesCreate a pipeline.Try it/pipelines/{id}Rename or reconfigure a pipeline.Try it/pipelines/{id}Delete a pipeline.Try it/pipelines/{id}/stagesAdd a stage.Try it/pipelines/{id}/stages/{stageId}Rename or reorder a stage.Try it/pipelines/{id}/stages/{stageId}Remove a stage.Try itTasks
The work layer over the CRM — a task hangs off a subject (a contact, deal, ticket or record).
/tasksPaged list.Try it/tasks/summaryBucket counts (overdue, today, this week, later, no date, done) for the same filters.Try it/tasksCreate a task.Try it/tasks/bulkCreate or update several tasks in one call.Try it/tasks/{id}One task.Try it/tasks/{id}Update a task.Try it/tasks/{id}Delete a task.Try it/tasks/{id}/commentsTask discussion.Try it/tasks/{id}/commentsComment on a task.Try it/tasks/{id}/comments/{commentId}Edit your own comment.Try it/tasks/{id}/comments/{commentId}Remove your own comment.Try itTickets
/ticketsPaged list. Sortable on subject, status, priority, created_at, updated_at.Try it/ticketsOpen a ticket.Try it/tickets/{id}One ticket.Try it/tickets/{id}Update or close out a ticket.Try it/tickets/{id}Delete a ticket.Try it/tickets/{id}/reopenReopen a resolved ticket.Try it/tickets/{id}/linksConversations linked to the ticket.Try it/tickets/{id}/linksLink a conversation.Try it/tickets/{id}/links/{episodeId}Unlink a conversation.Try it/tickets/{id}/portal-linkA customer-facing link to the ticket.Try itSegments and tags
/segmentsPaged list. Sortable on name, member_count, updated_at, created_at.Try it/segmentsCreate a segment (static list or filter-driven).Try it/segments/{id}One segment.Try it/segments/{id}Update a segment.Try it/segments/{id}Delete a segment.Try it/segments/{id}/rebuildRecompute membership now.Try it/segments/{id}/membersList members.Try it/segments/{id}/membersAdd members.Try it/segments/{id}/members/{contactId}Remove a member.Try it/tagsList tags.Try it/tagsCreate a tag.Try it/tags/{id}Delete a tag.Try itConsent
Public, token-authenticated endpoints used by unsubscribe links in your outbound mail. They take a token, not an API key.
/consent/{token}The recipient's current subscription state.no keyTry it/consent/{token}/unsubscribeUnsubscribe.no keyTry it/consent/{token}/confirmConfirm a double opt-in.no keyTry itRelated
- Marketing sends and suppressions: Marketing
- Conversations attached to a contact: Conversations
- Custom fields on contacts and everything else: Data schema