ThriveDesk Messages and Notes API
Thread events: message bodies and internal notes.
Thread events: message bodies and internal notes.
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-messages-and-notes-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 Messages and Notes 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: Messages and Notes
description: 'Thread events: message bodies and internal notes.'
paths:
/messages/{message_id}:
get:
summary: View a single message body
operationId: messages-resource-get
tags:
- Messages and Notes
description: View a single message body.
responses:
'200':
description: Success.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageDetailResponse'
'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/MessageId'
x-codeSamples:
- lang: curl
label: cURL
source: "curl -X GET \"https://api.thrivedesk.com/v1/messages/9c81790c-ae74-4cbd-b2ca-d246ae0df1a9\" \\\n -H \"Authorization: Bearer $TOKEN\""
security:
- bearerToken: []
put:
summary: Update a message
operationId: messages-resource-put
tags:
- Messages and Notes
description: 'Update a message.
Personal access token only. The API supports a second, partner-issued token class that is not part of the public surface. This endpoint does not accept that class.'
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/MessageId'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ThreadUpdateBody'
example:
html_body: <p>Corrected reply text.</p>
text_body: Corrected reply text.
x-codeSamples:
- lang: curl
label: cURL
source: "curl -X PUT \"https://api.thrivedesk.com/v1/messages/9c81790c-ae74-4cbd-b2ca-d246ae0df1a9\" \\\n -H \"Authorization: Bearer $TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"html_body\": \"<p>Corrected reply text.</p>\",\n \"text_body\": \"Corrected reply text.\"\n}'"
security:
- bearerToken: []
/notes/{message_id}:
put:
summary: Update a note
operationId: notes-resource-put
tags:
- Messages and Notes
description: 'Update a note.
Personal access token only. The API supports a second, partner-issued token class that is not part of the public surface. This endpoint does not accept that class.'
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/MessageId'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ThreadUpdateBody'
example:
html_body: <p>Updated internal note.</p>
text_body: Updated internal note.
x-codeSamples:
- lang: curl
label: cURL
source: "curl -X PUT \"https://api.thrivedesk.com/v1/notes/9c81790c-ae74-4cbd-b2ca-d246ae0df1a9\" \\\n -H \"Authorization: Bearer $TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"html_body\": \"<p>Updated internal note.</p>\",\n \"text_body\": \"Updated internal note.\"\n}'"
security:
- bearerToken: []
delete:
summary: Delete a note
operationId: notes-resource-delete
tags:
- Messages and Notes
description: 'Delete a note.
Personal access token only. The API supports a second, partner-issued token class that is not part of the public surface. This endpoint does not accept that class.'
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/MessageId'
x-codeSamples:
- lang: curl
label: cURL
source: "curl -X DELETE \"https://api.thrivedesk.com/v1/notes/9c81790c-ae74-4cbd-b2ca-d246ae0df1a9\" \\\n -H \"Authorization: Bearer $TOKEN\""
security:
- bearerToken: []
components:
schemas:
MessageDetailResponse:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/MessageDetail'
Conversation:
type: object
description: 'A conversation (ticket) as returned in list responses
(`GET /v1/conversations/mine`, `GET /v1/inboxes/{inbox_id}`).
'
properties:
id:
type: string
inbox_id:
type: string
ticket_id:
type: integer
has_attachment:
type: boolean
has_inline_attachment:
type: boolean
is_draft:
type: boolean
is_scheduled:
type: boolean
is_snoozed:
type: boolean
active:
type: boolean
subject:
type:
- string
- 'null'
updated_subject:
type:
- string
- 'null'
status:
type: string
enum:
- Active
- Pending
- Closed
is_spam:
type: boolean
priority:
type: string
enum:
- High
- Medium
- Low
assignable_type:
type:
- string
- 'null'
description: Polymorphic type of the assignee (a user or a team).
assignable_id:
type:
- string
- 'null'
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
deleted_at:
type:
- string
- 'null'
format: date-time
closed_at:
type:
- string
- 'null'
format: date-time
excerpt:
type:
- string
- 'null'
messages_count:
type:
- integer
- 'null'
last_message_created_at:
type:
- string
- 'null'
format: date-time
intended_inbox_address_id:
type:
- string
- 'null'
agents:
type: array
description: IDs of agents assigned to the conversation.
items:
type: string
contact:
$ref: '#/components/schemas/Contact'
last_message:
$ref: '#/components/schemas/ConversationLastMessage'
custom_field_values:
type: object
description: Custom-field values keyed by field key (free-form).
viewer_id:
type:
- string
- 'null'
viewed_at:
type:
- string
- 'null'
last_message_by:
type:
- string
- 'null'
MessageDetail:
type: object
properties:
id:
type: string
html_body:
type:
- string
- 'null'
description: HTML body, falling back to the text body.
cc:
type:
- array
- 'null'
items:
type: string
format: email
bcc:
type:
- array
- 'null'
items:
type: string
format: email
extra:
type:
- object
- 'null'
additionalProperties: true
created_at:
type: string
format: date-time
conversation:
$ref: '#/components/schemas/Conversation'
contact:
$ref: '#/components/schemas/MessageContact'
inbox:
$ref: '#/components/schemas/InboxDetail'
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.
ConversationLastMessage:
type: object
description: A compact view of the most recent message on a conversation.
properties:
id:
type: string
cc:
type:
- array
- 'null'
items:
type: string
bcc:
type:
- array
- 'null'
items:
type: string
record_type:
type: string
status:
type: string
direction:
type: string
viewed_at:
type:
- string
- 'null'
format: date-time
created_at:
type: string
format: date-time
text_body:
type:
- string
- 'null'
excerpt:
type:
- string
- 'null'
html_body:
type:
- string
- 'null'
extra:
type: object
description: Additional message metadata (free-form).
is_clipped:
type: boolean
intended_inbox_address_id:
type:
- string
- 'null'
MessageContact:
type: object
description: 'The contact on a message thread. This is the raw contact model (with
`organization_id` and timestamps) rather than the contacts-endpoint
resource, so it carries no `conversations_count`.
'
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: integer
description: 0 or 1.
notes:
type:
- string
- 'null'
extra:
type: object
description: Additional contact metadata (free-form).
organization_id:
type: string
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
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
InboxDetail:
type: object
description: 'The full inbox model (with `extra`, `organization_id`, and the
soft-delete timestamp), as embedded in a report or a single-message
response. Differs from the list shape returned by `GET /v1/inboxes`.
'
properties:
id:
type: string
name:
type: string
inbox_address:
type: string
connected_email_address:
type:
- string
- 'null'
email_forwarding_enabled:
type: integer
from_name:
type:
- string
- 'null'
default_status:
type: string
default_assignee:
type: string
signature:
type:
- string
- 'null'
auto_bcc_enabled:
type: boolean
auto_bcc:
type:
- string
- 'null'
auto_reply_enabled:
type: boolean
auto_reply_subject:
type:
- string
- 'null'
auto_reply_body:
type:
- string
- 'null'
off_hours_auto_reply_subject:
type:
- string
- 'null'
description: Auto-reply used when the inbox is outside its business hours.
off_hours_auto_reply_body:
type:
- string
- 'null'
satisfaction_ratings_enabled:
type: boolean
satisfaction_ratings:
type: object
description: Satisfaction-ratings configuration and copy (free-form).
extra:
type: object
description: Additional inbox metadata (free-form).
organization_id:
type: string
deleted_at:
type:
- string
- 'null'
format: date-time
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
reply_as_alias:
type: boolean
insert_signature:
type: integer
ThreadUpdateBody:
type: object
properties:
html_body:
type:
- string
- 'null'
text_body:
type:
- string
- 'null'
ValidationError:
allOf:
- $ref: '#/components/schemas/Error'
- type: object
required:
- errors
properties:
errors:
type: object
additionalProperties:
type: array
items:
type: string
parameters:
MessageId:
in: path
name: message_id
required: true
schema:
type: string
responses:
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.
NotFound:
description: Resource not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
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'
Unauthorized:
description: Missing or invalid bearer token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
missing:
value:
message: Unauthenticated.
UnprocessableEntity:
description: Request body failed validation.
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationError'
ServerError:
description: Unexpected server error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
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