ThriveDesk Contacts API
People who send and receive messages.
People who send and receive messages.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/thrivedesk:thrivedesk-contacts-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: ThriveDesk Public Contacts API
version: 1.3.0
summary: REST API for the ThriveDesk helpdesk data plane.
description: 'The ThriveDesk Public API gives external integrators programmatic access
to conversations, contacts, inboxes, tags, saved replies, reports, and the
Knowledge Base. The same surface that powers the ThriveDesk web app is
available here, scoped via bearer access tokens.
## Quick links
- Quickstart
- Authentication and scopes
- Errors
- Pagination and rate limits
- Assistant SDK
- Webhooks
- SmartApp
- Changelog
## What is documented
The 90 endpoints in this spec cover the helpdesk data plane:
conversations, contacts, inboxes (with their automations, custom fields,
and saved replies), tags, teammates, saved replies, business hours and
holidays, reports, the Knowledge Base, attachments, messages, notes, and
the search and `me` utilities.
First-party app, billing, onboarding,
broadcasting, widget, webhook, and admin-dashboard endpoints are not part
of this REST surface. The separate Assistant SDK,
webhook, and SmartApp
contracts are documented as sibling integration surfaces. The same goes for the web
app''s own session and UI mechanics (password login, undo-send, saved-view
and folder creation, usage counters) and for admin-plane writes
(automation create and update, Knowledge Base member invitation, bulk
permanent deletion): those routes exist for the first-party clients but
are not supported for integrations.
## Deleting data
Deletes are not uniform. Some are recoverable, some destroy related
records and stored files outright, and the response body does not say
which is which. Every delete operation carries a description saying what
it removes and whether there is a way back. Read it before you call it.
## Compatibility
- OpenAPI 3.1
- All requests are `application/json` except for attachment downloads
(binary stream).
- All responses are `application/json` except for attachment downloads.'
contact:
name: ThriveDesk Developer Support
email: help@thrivedesk.com
url: https://www.thrivedesk.com
license:
name: Proprietary
url: https://www.thrivedesk.com/terms
servers:
- url: https://api.thrivedesk.com/v1
security:
- bearerToken: []
tags:
- name: Contacts
description: People who send and receive messages.
paths:
/contacts:
get:
summary: List contacts
operationId: contacts-index-get
tags:
- Contacts
description: List contacts.
responses:
'200':
description: Success.
content:
application/json:
schema:
$ref: '#/components/schemas/ContactCollection'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/UnprocessableEntity'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/ServerError'
parameters:
- $ref: '#/components/parameters/Page'
- in: query
name: per_page
schema:
type: integer
default: 15
- in: query
name: q
schema:
type: string
description: Search by name or email.
- in: query
name: inbox
schema:
type: string
description: Only contacts with conversations in this inbox.
- in: query
name: with_orphan
schema:
type: boolean
description: Include contacts with no conversations.
x-codeSamples:
- lang: curl
label: cURL
source: "curl -X GET \"https://api.thrivedesk.com/v1/contacts\" \\\n -H \"Authorization: Bearer $TOKEN\""
security:
- bearerToken: []
post:
summary: Create a contact
operationId: contacts-index-post
tags:
- Contacts
description: Create a contact.
responses:
'201':
description: Success.
content:
application/json:
schema:
$ref: '#/components/schemas/ContactCreateResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/UnprocessableEntity'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/ServerError'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ContactCreate'
example:
email: jane@example.com
x-codeSamples:
- lang: curl
label: cURL
source: "curl -X POST \"https://api.thrivedesk.com/v1/contacts\" \\\n -H \"Authorization: Bearer $TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"email\": \"jane@example.com\"\n}'"
security:
- bearerToken: []
/contacts/{contact_id}:
get:
summary: View a contact
operationId: contacts-resource-get
tags:
- Contacts
description: View a contact.
responses:
'200':
description: Success.
content:
application/json:
schema:
$ref: '#/components/schemas/ContactResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/UnprocessableEntity'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/ServerError'
parameters:
- $ref: '#/components/parameters/ContactId'
x-codeSamples:
- lang: curl
label: cURL
source: "curl -X GET \"https://api.thrivedesk.com/v1/contacts/a2259012-556c-452c-ae91-e8d55e4107c0\" \\\n -H \"Authorization: Bearer $TOKEN\""
security:
- bearerToken: []
patch:
summary: Update a contact
operationId: contacts-resource-patch
tags:
- Contacts
description: Update a contact.
responses:
'200':
description: Success.
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: OK
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/UnprocessableEntity'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/ServerError'
parameters:
- $ref: '#/components/parameters/ContactId'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ContactUpdate'
example:
name: Jane Cooper
company: Acme Inc
job_title: CTO
website: https://example.com
x-codeSamples:
- lang: curl
label: cURL
source: "curl -X PATCH \"https://api.thrivedesk.com/v1/contacts/a2259012-556c-452c-ae91-e8d55e4107c0\" \\\n -H \"Authorization: Bearer $TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"name\": \"Jane Cooper\",\n \"company\": \"Acme Inc\",\n \"job_title\": \"CTO\",\n \"website\": \"https://example.com\"\n}'"
security:
- bearerToken: []
/contacts/{contact_id}/conversations:
get:
summary: List conversations for a contact
operationId: contacts-conversations-get
tags:
- Contacts
description: List conversations for a contact.
responses:
'200':
description: Success.
content:
application/json:
schema:
$ref: '#/components/schemas/ContactConversationsResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/UnprocessableEntity'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/ServerError'
parameters:
- $ref: '#/components/parameters/ContactId'
- in: query
name: inbox_id
schema:
type: string
description: Only conversations in this inbox.
- in: query
name: except
schema:
type: string
description: Conversation ID to exclude.
- in: query
name: limit
schema:
type: integer
description: Maximum number of conversations to return.
x-codeSamples:
- lang: curl
label: cURL
source: "curl -X GET \"https://api.thrivedesk.com/v1/contacts/a2259012-556c-452c-ae91-e8d55e4107c0/conversations\" \\\n -H \"Authorization: Bearer $TOKEN\""
security:
- bearerToken: []
components:
schemas:
Error:
type: object
description: 'Standard JSON error envelope. The exact shape depends on the error.
Validation errors include an `errors` object keyed by field name. Auth
errors include a `message`. Throttle errors include a `message` of
"Too Many Attempts." See [Errors](/get-started/errors) for the full catalog.
'
required:
- message
properties:
message:
type: string
description: Human-readable error message.
example: The given data was invalid.
errors:
type: object
description: 'Field-level validation errors. Present on 422 responses, when the
request body fails validation.
'
additionalProperties:
type: array
items:
type: string
example:
email:
- The email field is required.
PaginationLinks:
type: object
properties:
first:
type:
- string
- 'null'
format: uri
last:
type:
- string
- 'null'
format: uri
prev:
type:
- string
- 'null'
format: uri
next:
type:
- string
- 'null'
format: uri
PaginationMeta:
type: object
description: Standard (counting) paginator meta block.
properties:
current_page:
type: integer
example: 1
from:
type:
- integer
- 'null'
example: 1
last_page:
type: integer
example: 10
per_page:
type: integer
example: 20
to:
type:
- integer
- 'null'
example: 20
total:
type: integer
example: 200
path:
type: string
format: uri
example: https://api.thrivedesk.com/v1/contacts
links:
type: array
description: 'Rendered paginator links: the numbered pages plus the previous/next
controls (whose `url` and `page` are null when unavailable).
'
items:
type: object
properties:
url:
type:
- string
- 'null'
format: uri
label:
type: string
page:
type:
- integer
- 'null'
active:
type: boolean
ContactResponse:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/Contact'
ConversationTag:
type: object
description: A tag as embedded on a conversation (id, name, and color only).
properties:
id:
type: string
name:
type: string
color:
type: string
description: Hex color in `#RRGGBB` form.
pattern: ^#[0-9A-Fa-f]{6}$
ContactCollection:
type: object
required:
- data
properties:
data:
type: array
items:
$ref: '#/components/schemas/Contact'
links:
$ref: '#/components/schemas/PaginationLinks'
meta:
$ref: '#/components/schemas/PaginationMeta'
ContactConversationsResponse:
type: object
required:
- conversations
- total
properties:
conversations:
type: array
items:
$ref: '#/components/schemas/ContactConversationItem'
total:
type: integer
Contact:
type: object
description: A person who sends or receives messages.
properties:
id:
type: string
name:
type:
- string
- 'null'
email:
type: string
format: email
avatar:
type:
- string
- 'null'
format: uri
company:
type:
- string
- 'null'
website:
type:
- string
- 'null'
job_title:
type:
- string
- 'null'
address:
type:
- string
- 'null'
should_display_image:
type: boolean
notes:
type:
- string
- 'null'
conversations_count:
type: integer
example:
id: a2259012-556c-452c-ae91-e8d55e4107c0
name: Jane Cooper
email: jane@example.com
avatar: null
company: Acme Inc
website: https://example.com
job_title: CTO
address: null
should_display_image: false
notes: null
conversations_count: 4
ContactCreateResponse:
type: object
required:
- message
- contact
properties:
message:
type: string
example: Contact created successfully
contact:
$ref: '#/components/schemas/Contact'
ValidationError:
allOf:
- $ref: '#/components/schemas/Error'
- type: object
required:
- errors
properties:
errors:
type: object
additionalProperties:
type: array
items:
type: string
ContactConversationItem:
type: object
description: 'A conversation in a contact''s history. This is a compact shape distinct
from the main conversation resource.
'
properties:
id:
type: string
subject:
type:
- string
- 'null'
status:
type: string
type:
type: string
description: Conversation channel (e.g. `Email`).
excerpt:
type:
- string
- 'null'
inbox_id:
type: string
priority:
type: string
tags:
type: array
items:
$ref: '#/components/schemas/ConversationTag'
last_message_by:
type:
- string
- 'null'
created_at:
type: string
format: date-time
ContactUpdate:
type: object
description: 'All fields optional. Only the provided keys are updated. An avatar
image can also be set by sending `multipart/form-data` with an
`avatar` file part alongside these fields.
'
properties:
name:
type: string
maxLength: 255
email:
type: string
format: email
phone:
type: string
maxLength: 64
company:
type: string
maxLength: 255
job_title:
type: string
maxLength: 255
address:
type: string
website:
type: string
format: uri
maxLength: 255
notes:
type: string
should_display_image:
type: boolean
ContactCreate:
type: object
required:
- email
properties:
email:
type: string
format: email
description: 'The only field persisted on create. Set the remaining profile
fields with a follow-up `PATCH /v1/contacts/{contact_id}`.
'
responses:
UnprocessableEntity:
description: Request body failed validation.
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationError'
Forbidden:
description: Token is valid but does not include a required scope, or the user does not have access to the resource.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
ServerError:
description: Unexpected server error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
TooManyRequests:
description: 'Rate limit exceeded. The `Retry-After` header indicates how long to wait
before retrying. See [Pagination and rate limits](/get-started/pagination) for
the full rate-limit policy.
'
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
X-RateLimit-Limit:
schema:
type: integer
X-RateLimit-Remaining:
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
throttled:
value:
message: Too Many Attempts.
Unauthorized:
description: Missing or invalid bearer token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
missing:
value:
message: Unauthenticated.
NotFound:
description: Resource not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
Page:
in: query
name: page
schema:
type: integer
minimum: 1
default: 1
ContactId:
in: path
name: contact_id
required: true
schema:
type: string
securitySchemes:
bearerToken:
type: http
scheme: bearer
bearerFormat: Personal access token
description: 'Personal access tokens created from the ThriveDesk UI.
Create one under Integrations -> API Keys.
'
x-tagGroups:
- name: Getting started
tags:
- Misc
- name: Core
tags:
- Conversations
- Contacts
- Inboxes
- name: Organization
tags:
- Tags
- Saved Replies
- Users
- Business Hours
- Holidays
- name: Analytics
tags:
- Reports
- name: Knowledge Base
tags:
- Knowledge Base
- name: Attachments
tags:
- Attachments
- Messages and Notes