ThriveDesk Attachments API
File uploads and downloads on conversations.
Operations 3
POST
/attachments/conversation/{conversationId}/attachment
Upload attachments to a conversation draft
#
File uploads and downloads on conversations.
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-attachments-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 Attachments 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: Attachments
description: File uploads and downloads on conversations.
paths:
/attachments/{attachmentId}/download:
get:
summary: Download an attachment (binary stream)
operationId: attachments-download-get
tags:
- Attachments
description: Download an attachment (binary stream).
responses:
'200':
description: Binary file stream. Content-Disposition header indicates the filename.
headers:
Content-Disposition:
schema:
type: string
description: attachment; filename=<original-name>
content:
application/octet-stream:
schema:
type: string
format: binary
'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/AttachmentId'
x-codeSamples:
- lang: curl
label: cURL
source: "curl -X GET \"https://api.thrivedesk.com/v1/attachments/9c81790c-ae74-4cbd-b2ca-d246ae0df1a9/download\" \\\n -H \"Authorization: Bearer $TOKEN\""
security:
- bearerToken: []
/attachments/{attachmentId}/delete:
delete:
summary: Delete an attachment
operationId: attachments-delete-delete
tags:
- Attachments
description: Delete an attachment.
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/AttachmentId'
x-codeSamples:
- lang: curl
label: cURL
source: "curl -X DELETE \"https://api.thrivedesk.com/v1/attachments/9c81790c-ae74-4cbd-b2ca-d246ae0df1a9/delete\" \\\n -H \"Authorization: Bearer $TOKEN\""
security:
- bearerToken: []
/attachments/conversation/{conversationId}/attachment:
post:
summary: Upload attachments to a conversation draft
operationId: attachments-store-post
tags:
- Attachments
description: Upload attachments to a conversation draft.
responses:
'200':
description: Success.
content:
application/json:
schema:
$ref: '#/components/schemas/AttachmentUploadResponse'
'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/ConversationIdCamel'
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
attachments[]:
type: array
items:
type: string
format: binary
description: One or more files.
draft_id:
type: string
description: Draft message to attach to. Pass the literal string "null" to create a draft on the fly.
is_inline:
type: boolean
description: Mark the files as inline images.
required:
- attachments[]
x-codeSamples:
- lang: curl
label: cURL
source: "curl -X POST \"https://api.thrivedesk.com/v1/attachments/conversation/7b1d4e2a-9c8f-4a3b-b6d5-1e2f3a4b5c6d/attachment\" \\\n -H \"Authorization: Bearer $TOKEN\" \\\n -F \"attachments[]=@/path/to/file.pdf\""
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.
AttachmentUploadResponse:
type: object
required:
- message
- draft_id
- data
properties:
message:
type: string
example: Attachment uploaded
draft_id:
type: string
description: The draft the files were attached to (created on the fly when `draft_id` is "null").
data:
type: array
description: The stored attachment records.
items:
type: object
properties:
attachment_id:
type: string
name:
type: string
size:
type: integer
type:
type: string
description: MIME type.
inline:
type: boolean
additionalProperties: true
ValidationError:
allOf:
- $ref: '#/components/schemas/Error'
- type: object
required:
- errors
properties:
errors:
type: object
additionalProperties:
type: array
items:
type: string
responses:
NotFound:
description: Resource not found.
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.
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'
parameters:
ConversationIdCamel:
in: path
name: conversationId
required: true
description: Conversation identifier. Named in camelCase, unlike the snake_case path parameters elsewhere.
schema:
type: string
AttachmentId:
in: path
name: attachmentId
required: true
description: Attachment identifier. Named in camelCase, unlike the snake_case path parameters elsewhere.
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