ThriveDesk Business Hours API

Operating-hours profiles and the inbox channels they cover.

GitHub OpenAPI

Operations 5

GET /business-hours List business-hours profiles #
POST /business-hours Create a business-hours profile #
GET /business-hours/{business_hour} View a business-hours profile #
PATCH /business-hours/{business_hour} Update a business-hours profile #
DELETE /business-hours/{business_hour} Delete a business-hours profile #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/thrivedesk:thrivedesk-business-hours-api"
All apis
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.

Get an API 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 Specification

thrivedesk-business-hours-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThriveDesk Public Business Hours 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: Business Hours
  description: Operating-hours profiles and the inbox channels they cover.
paths:
  /business-hours:
    get:
      summary: List business-hours profiles
      operationId: business-hours-index-get
      tags:
      - Business Hours
      description: 'List business-hours profiles.


        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/BusinessHourList'
        '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: Newest first. Not paginated, and takes no query parameters.
      x-codeSamples:
      - lang: curl
        label: cURL
        source: "curl -X GET \"https://api.thrivedesk.com/v1/business-hours\" \\\n  -H \"Authorization: Bearer $TOKEN\""
      security:
      - bearerToken: []
    post:
      summary: Create a business-hours profile
      operationId: business-hours-index-post
      tags:
      - Business Hours
      description: 'Administrators and the account owner only.


        An inbox channel belongs to at most one profile. Binding one that another profile already covers returns 422 carrying `conflicting_business_hour_id`, `inbox_id`, and `channel` in place of the usual `errors` object, and the whole write is rolled back.


        Under `calendar_24_7` the server stores `schedule` and `schedule_type` as null whatever the payload carries.


        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/BusinessHourResponse'
        '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/BusinessHourCreate'
            example:
              name: Support hours
              description: Weekday coverage
              mode: business_hours
              schedule_type: standard
              schedule:
              - day: mon
                enabled: true
                start: 09:00
                end: '17:00'
              - day: tue
                enabled: true
                start: 09:00
                end: '17:00'
              - day: wed
                enabled: true
                start: 09:00
                end: '17:00'
              - day: thu
                enabled: true
                start: 09:00
                end: '17:00'
              - day: fri
                enabled: true
                start: 09:00
                end: '17:00'
              - day: sat
                enabled: false
                start: null
                end: null
              - day: sun
                enabled: false
                start: null
                end: null
              inbox_channels:
              - inbox_id: 3f7c1e94-2b6a-4d0e-8c5f-9a1b2c3d4e5f
                channel: email
      x-codeSamples:
      - lang: curl
        label: cURL
        source: "curl -X POST \"https://api.thrivedesk.com/v1/business-hours\" \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Support hours\",\n  \"description\": \"Weekday coverage\",\n  \"mode\": \"business_hours\",\n  \"schedule_type\": \"standard\",\n  \"schedule\": [\n    {\n      \"day\": \"mon\",\n      \"enabled\": true,\n      \"start\": \"09:00\",\n      \"end\": \"17:00\"\n    },\n    {\n      \"day\": \"tue\",\n      \"enabled\": true,\n      \"start\": \"09:00\",\n      \"end\": \"17:00\"\n    },\n    {\n      \"day\": \"wed\",\n      \"enabled\": true,\n      \"start\": \"09:00\",\n      \"end\": \"17:00\"\n    },\n    {\n      \"day\": \"thu\",\n      \"enabled\": true,\n      \"start\": \"09:00\",\n      \"end\": \"17:00\"\n    },\n    {\n      \"day\": \"fri\",\n      \"enabled\": true,\n      \"start\": \"09:00\",\n      \"end\": \"17:00\"\n    },\n    {\n      \"day\": \"sat\",\n      \"enabled\": false,\n      \"start\": null,\n      \"end\": null\n    },\n    {\n      \"day\": \"sun\",\n      \"enabled\": false,\n      \"start\": null,\n      \"end\": null\n    }\n  ],\n  \"inbox_channels\": [\n    {\n      \"inbox_id\": \"3f7c1e94-2b6a-4d0e-8c5f-9a1b2c3d4e5f\",\n      \"channel\": \"email\"\n    }\n  ]\n}'"
      security:
      - bearerToken: []
  /business-hours/{business_hour}:
    get:
      summary: View a business-hours profile
      operationId: business-hours-resource-get
      tags:
      - Business Hours
      description: 'View a business-hours profile.


        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/BusinessHourResponse'
        '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/BusinessHourId'
      x-codeSamples:
      - lang: curl
        label: cURL
        source: "curl -X GET \"https://api.thrivedesk.com/v1/business-hours/5d8e2f61-4c3b-4a7d-9e0f-8b7a6c5d4e3f\" \\\n  -H \"Authorization: Bearer $TOKEN\""
      security:
      - bearerToken: []
    patch:
      summary: Update a business-hours profile
      operationId: business-hours-resource-patch
      tags:
      - Business Hours
      description: 'Administrators and the account owner only.


        An inbox channel belongs to at most one profile. Binding one that another profile already covers returns 422 carrying `conflicting_business_hour_id`, `inbox_id`, and `channel` in place of the usual `errors` object, and the whole write is rolled back.


        Under `calendar_24_7` the server stores `schedule` and `schedule_type` as null whatever the payload carries.


        Omitted keys keep their stored value and an explicit `null` is ignored rather than clearing the field. Sending `inbox_channels` replaces the whole set.


        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/BusinessHourResponse'
        '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/BusinessHourId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BusinessHourUpdate'
            example:
              mode: business_hours
              schedule_type: custom
              schedule:
              - day: mon
                enabled: true
                start: 09:00
                end: '17:00'
              - day: tue
                enabled: true
                start: 09:00
                end: '17:00'
              - day: wed
                enabled: true
                start: 09:00
                end: '17:00'
              - day: thu
                enabled: true
                start: 09:00
                end: '17:00'
              - day: fri
                enabled: true
                start: 09:00
                end: '17:00'
              - day: sat
                enabled: false
                start: null
                end: null
              - day: sun
                enabled: false
                start: null
                end: null
      x-codeSamples:
      - lang: curl
        label: cURL
        source: "curl -X PATCH \"https://api.thrivedesk.com/v1/business-hours/5d8e2f61-4c3b-4a7d-9e0f-8b7a6c5d4e3f\" \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"mode\": \"business_hours\",\n  \"schedule_type\": \"custom\",\n  \"schedule\": [\n    {\n      \"day\": \"mon\",\n      \"enabled\": true,\n      \"start\": \"09:00\",\n      \"end\": \"17:00\"\n    },\n    {\n      \"day\": \"tue\",\n      \"enabled\": true,\n      \"start\": \"09:00\",\n      \"end\": \"17:00\"\n    },\n    {\n      \"day\": \"wed\",\n      \"enabled\": true,\n      \"start\": \"09:00\",\n      \"end\": \"17:00\"\n    },\n    {\n      \"day\": \"thu\",\n      \"enabled\": true,\n      \"start\": \"09:00\",\n      \"end\": \"17:00\"\n    },\n    {\n      \"day\": \"fri\",\n      \"enabled\": true,\n      \"start\": \"09:00\",\n      \"end\": \"17:00\"\n    },\n    {\n      \"day\": \"sat\",\n      \"enabled\": false,\n      \"start\": null,\n      \"end\": null\n    },\n    {\n      \"day\": \"sun\",\n      \"enabled\": false,\n      \"start\": null,\n      \"end\": null\n    }\n  ]\n}'"
      security:
      - bearerToken: []
    delete:
      summary: Delete a business-hours profile
      operationId: business-hours-resource-delete
      tags:
      - Business Hours
      description: 'Administrators and the account owner only. Permanent, and it releases every inbox channel the profile covered.


        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/BusinessHourId'
      x-codeSamples:
      - lang: curl
        label: cURL
        source: "curl -X DELETE \"https://api.thrivedesk.com/v1/business-hours/5d8e2f61-4c3b-4a7d-9e0f-8b7a6c5d4e3f\" \\\n  -H \"Authorization: Bearer $TOKEN\""
      security:
      - bearerToken: []
components:
  responses:
    UnprocessableEntity:
      description: Request body failed validation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationError'
    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.
    ServerError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  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.
    BusinessHour:
      type: object
      description: An operating-hours profile, optionally bound to inbox channels.
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
          maxLength: 120
        description:
          type:
          - string
          - 'null'
        mode:
          type: string
          enum:
          - calendar_24_7
          - business_hours
          description: '`calendar_24_7` means always open. `schedule` and `schedule_type`

            are null in that mode.

            '
        schedule_type:
          type:
          - string
          - 'null'
          enum:
          - standard
          - custom
          - null
        schedule:
          type:
          - array
          - 'null'
          description: Seven entries, one per weekday. Null when the mode is `calendar_24_7`.
          items:
            $ref: '#/components/schemas/DaySchedule'
        inbox_channels:
          type: array
          description: 'The inbox channels this profile covers, grouped by inbox. Writes

            send a flat list of `{inbox_id, channel}` pairs; reads return them

            grouped.

            '
          items:
            $ref: '#/components/schemas/InboxChannelGroup'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    InboxChannelGroup:
      type: object
      description: The channels of a single inbox covered by a business-hours profile.
      properties:
        inbox_id:
          type: string
        channels:
          type: array
          items:
            type: string
            enum:
            - email
            - livechat
    BusinessHourCreate:
      type: object
      required:
      - name
      - mode
      properties:
        name:
          type: string
          maxLength: 120
          description: Unique within the organization.
        description:
          type: string
        mode:
          type: string
          enum:
          - calendar_24_7
          - business_hours
        schedule_type:
          type: string
          enum:
          - standard
          - custom
          description: Required when `mode` is `business_hours`.
        schedule:
          type: array
          minItems: 7
          maxItems: 7
          description: 'Required when `mode` is `business_hours`. Exactly seven entries,

            each weekday present once.

            '
          items:
            $ref: '#/components/schemas/DaySchedule'
        inbox_channels:
          type: array
          items:
            $ref: '#/components/schemas/InboxChannelAssignment'
    DaySchedule:
      type: object
      description: One weekday's opening times. An end earlier than the start is an overnight shift.
      required:
      - day
      - enabled
      properties:
        day:
          type: string
          enum:
          - mon
          - tue
          - wed
          - thu
          - fri
          - sat
          - sun
        enabled:
          type: boolean
        start:
          type:
          - string
          - 'null'
          description: 24-hour `HH:MM`. Required when the day is enabled, and must differ from `end`.
          example: 09:00
        end:
          type:
          - string
          - 'null'
          description: 24-hour `HH:MM`. Required when the day is enabled.
          example: '17:00'
    BusinessHourUpdate:
      type: object
      description: 'All fields optional. Sending `inbox_channels` replaces the whole set;

        omitting it leaves the current bindings untouched.

        '
      properties:
        name:
          type: string
          maxLength: 120
        description:
          type: string
        mode:
          type: string
          enum:
          - calendar_24_7
          - business_hours
        schedule_type:
          type: string
          enum:
          - standard
          - custom
        schedule:
          type: array
          minItems: 7
          maxItems: 7
          items:
            $ref: '#/components/schemas/DaySchedule'
        inbox_channels:
          type: array
          items:
            $ref: '#/components/schemas/InboxChannelAssignment'
    InboxChannelAssignment:
      type: object
      description: One inbox channel to bind to a business-hours profile.
      required:
      - inbox_id
      - channel
      properties:
        inbox_id:
          type: string
        channel:
          type: string
          enum:
          - email
          - livechat
    BusinessHourResponse:
      type: object
      required:
      - data
      properties:
        data:
          $ref: '#/components/schemas/BusinessHour'
    BusinessHourList:
      type: object
      description: Every business-hours profile in the organization, newest first. Not paginated.
      required:
      - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/BusinessHour'
    ValidationError:
      allOf:
      - $ref: '#/components/schemas/Error'
      - type: object
        required:
        - errors
        properties:
          errors:
            type: object
            additionalProperties:
              type: array
              items:
                type: string
  parameters:
    BusinessHourId:
      in: path
      name: business_hour
      required: true
      description: Business-hours profile identifier.
      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