ThriveDesk Holidays API
Dated closures that suspend business hours.
Dated closures that suspend business hours.
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-holidays-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 Holidays 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: Holidays
description: Dated closures that suspend business hours.
paths:
/holidays:
get:
summary: List holidays
operationId: holidays-index-get
tags:
- Holidays
description: 'List holidays.
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:
$ref: '#/components/schemas/HolidayList'
'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'
x-notes: Active first, then upcoming by start date, then past with the most recent first. Not paginated, and takes no query parameters.
x-codeSamples:
- lang: curl
label: cURL
source: "curl -X GET \"https://api.thrivedesk.com/v1/holidays\" \\\n -H \"Authorization: Bearer $TOKEN\""
security:
- bearerToken: []
post:
summary: Create a holiday
operationId: holidays-index-post
tags:
- Holidays
description: 'Administrators and the account owner only. Ranges may overlap an existing holiday.
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:
'201':
description: Success.
content:
application/json:
schema:
$ref: '#/components/schemas/HolidayResponse'
'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/HolidayCreate'
example:
name: Winter break
start_date: '2026-12-24'
end_date: '2026-12-26'
x-codeSamples:
- lang: curl
label: cURL
source: "curl -X POST \"https://api.thrivedesk.com/v1/holidays\" \\\n -H \"Authorization: Bearer $TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"name\": \"Winter break\",\n \"start_date\": \"2026-12-24\",\n \"end_date\": \"2026-12-26\"\n}'"
security:
- bearerToken: []
/holidays/{holiday}:
get:
summary: View a holiday
operationId: holidays-resource-get
tags:
- Holidays
description: 'View a holiday.
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:
$ref: '#/components/schemas/HolidayResponse'
'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/HolidayId'
x-codeSamples:
- lang: curl
label: cURL
source: "curl -X GET \"https://api.thrivedesk.com/v1/holidays/0f9d1c33-6a1b-4f9f-8f3a-2b7f8f0f0a11\" \\\n -H \"Authorization: Bearer $TOKEN\""
security:
- bearerToken: []
patch:
summary: Update a holiday
operationId: holidays-resource-patch
tags:
- Holidays
description: 'Administrators and the account owner only.
When only one date is sent the range is checked against the stored value for the other. A range violation is always reported under `end_date`, even when `start_date` is the field that moved.
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:
$ref: '#/components/schemas/HolidayResponse'
'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/HolidayId'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/HolidayUpdate'
example:
end_date: '2026-12-27'
x-codeSamples:
- lang: curl
label: cURL
source: "curl -X PATCH \"https://api.thrivedesk.com/v1/holidays/0f9d1c33-6a1b-4f9f-8f3a-2b7f8f0f0a11\" \\\n -H \"Authorization: Bearer $TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"end_date\": \"2026-12-27\"\n}'"
security:
- bearerToken: []
delete:
summary: Delete a holiday
operationId: holidays-resource-delete
tags:
- Holidays
description: 'Administrators and the account owner only. The holiday stops applying immediately and drops out of the list.
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:
'204':
description: Deleted. Empty body.
'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/HolidayId'
x-codeSamples:
- lang: curl
label: cURL
source: "curl -X DELETE \"https://api.thrivedesk.com/v1/holidays/0f9d1c33-6a1b-4f9f-8f3a-2b7f8f0f0a11\" \\\n -H \"Authorization: Bearer $TOKEN\""
security:
- bearerToken: []
components:
schemas:
HolidayUpdate:
type: object
description: All fields optional. Dates are validated against the stored values when only one is sent.
properties:
name:
type: string
maxLength: 120
start_date:
type: string
format: date
end_date:
type: string
format: date
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.
HolidayResponse:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/Holiday'
HolidayCreate:
type: object
required:
- name
- start_date
- end_date
properties:
name:
type: string
maxLength: 120
start_date:
type: string
format: date
end_date:
type: string
format: date
description: Must be on or after `start_date`. Equal dates make a single-day holiday.
HolidayList:
type: object
description: 'Every holiday in the organization, ordered active first, then upcoming
by start date, then past with the most recent first. Not paginated.
'
required:
- data
properties:
data:
type: array
items:
$ref: '#/components/schemas/Holiday'
Holiday:
type: object
description: A dated closure. Inclusive of both endpoints.
properties:
id:
type: string
format: uuid
name:
type: string
maxLength: 120
start_date:
type: string
format: date
end_date:
type: string
format: date
status:
type: string
enum:
- upcoming
- active
- past
description: Derived from today's date in the organization's timezone.
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
ValidationError:
allOf:
- $ref: '#/components/schemas/Error'
- type: object
required:
- errors
properties:
errors:
type: object
additionalProperties:
type: array
items:
type: string
parameters:
HolidayId:
in: path
name: holiday
required: true
description: Holiday identifier.
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