ThriveDesk Reports API

Aggregate metrics for conversations, happiness, productivity, ratings, and agent performance.

GitHub OpenAPI

Operations 4

GET /reports/{inbox_id}/agents Agent leaderboard #
GET /reports/{inbox_id}/conversations Conversation volume report #
GET /reports/{inbox_id}/happiness Happiness ratings report #
GET /reports/{inbox_id}/productivity Productivity report #

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-reports-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-reports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThriveDesk Public Reports 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: Reports
  description: Aggregate metrics for conversations, happiness, productivity, ratings, and agent performance.
paths:
  /reports/{inbox_id}/agents:
    get:
      summary: Agent leaderboard
      operationId: reports-agents-get
      tags:
      - Reports
      description: Agent leaderboard.
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportsAgents'
        '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/InboxId'
      - $ref: '#/components/parameters/StartDate'
      - $ref: '#/components/parameters/EndDate'
      x-codeSamples:
      - lang: curl
        label: cURL
        source: "curl -X GET \"https://api.thrivedesk.com/v1/reports/3f7c1e94-2b6a-4d0e-8c5f-9a1b2c3d4e5f/agents\" \\\n  -H \"Authorization: Bearer $TOKEN\""
      security:
      - bearerToken: []
  /reports/{inbox_id}/conversations:
    get:
      summary: Conversation volume report
      operationId: reports-conversations-get
      tags:
      - Reports
      description: Conversation volume report.
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportsConversations'
        '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/InboxId'
      - $ref: '#/components/parameters/StartDate'
      - $ref: '#/components/parameters/EndDate'
      x-codeSamples:
      - lang: curl
        label: cURL
        source: "curl -X GET \"https://api.thrivedesk.com/v1/reports/3f7c1e94-2b6a-4d0e-8c5f-9a1b2c3d4e5f/conversations\" \\\n  -H \"Authorization: Bearer $TOKEN\""
      security:
      - bearerToken: []
  /reports/{inbox_id}/happiness:
    get:
      summary: Happiness ratings report
      operationId: reports-happiness-get
      tags:
      - Reports
      description: Happiness ratings report.
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportsHappiness'
        '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/InboxId'
      - $ref: '#/components/parameters/StartDate'
      - $ref: '#/components/parameters/EndDate'
      x-codeSamples:
      - lang: curl
        label: cURL
        source: "curl -X GET \"https://api.thrivedesk.com/v1/reports/3f7c1e94-2b6a-4d0e-8c5f-9a1b2c3d4e5f/happiness\" \\\n  -H \"Authorization: Bearer $TOKEN\""
      security:
      - bearerToken: []
  /reports/{inbox_id}/productivity:
    get:
      summary: Productivity report
      operationId: reports-productivity-get
      tags:
      - Reports
      description: Productivity report.
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportsProductivity'
        '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/InboxId'
      - $ref: '#/components/parameters/StartDate'
      - $ref: '#/components/parameters/EndDate'
      x-codeSamples:
      - lang: curl
        label: cURL
        source: "curl -X GET \"https://api.thrivedesk.com/v1/reports/3f7c1e94-2b6a-4d0e-8c5f-9a1b2c3d4e5f/productivity\" \\\n  -H \"Authorization: Bearer $TOKEN\""
      security:
      - bearerToken: []
components:
  schemas:
    ResolutionTime:
      type: object
      description: A resolution and the time it took, in seconds (as a string).
      properties:
        date:
          type: string
          format: date
        resolution_time:
          type: string
    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.
    ProductivityMessage:
      type: object
      properties:
        id:
          type: string
        created_at:
          type: string
          format: date-time
        conversation_id:
          type: string
    ReportAgent:
      type: object
      description: An agent's totals in the agent leaderboard report.
      properties:
        id:
          type: string
        first_name:
          type:
          - string
          - 'null'
        last_name:
          type:
          - string
          - 'null'
        name:
          type: string
        conversation_count:
          type: integer
        resolution_count:
          type: integer
        pivot:
          type: object
          description: Inbox-accessor pivot metadata (free-form).
      example:
        id: 9c81790c-ae74-4cbd-b2ca-d246ae0df1a9
        first_name: Alex
        last_name: Morgan
        name: Alex Morgan
        conversation_count: 87
        resolution_count: 64
    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
    ReportsConversations:
      type: object
      properties:
        total_conversations:
          type: integer
        new_conversations_count:
          type: integer
        new_conversations:
          type: array
          items:
            $ref: '#/components/schemas/ReportDayCount'
        resolutions_count:
          type: integer
        resolutions:
          type: array
          items:
            $ref: '#/components/schemas/ReportDayCount'
        contacts_helped_count:
          type: integer
        contacts_helped:
          type: array
          items:
            $ref: '#/components/schemas/ReportDayCount'
        inbox:
          $ref: '#/components/schemas/InboxDetail'
    ReportsAgents:
      type: object
      properties:
        agents:
          type: array
          items:
            $ref: '#/components/schemas/ReportAgent'
    ReportDayCount:
      type: object
      description: A per-day metric bucket (a count for a given year/month/day).
      properties:
        count:
          type: integer
        year:
          type: integer
        month:
          type: integer
        day:
          type: integer
      example:
        count: 12
        year: 2026
        month: 7
        day: 10
    ValidationError:
      allOf:
      - $ref: '#/components/schemas/Error'
      - type: object
        required:
        - errors
        properties:
          errors:
            type: object
            additionalProperties:
              type: array
              items:
                type: string
    ReportsHappiness:
      type: object
      properties:
        total_ratings_count:
          type: integer
        great_ratings_count:
          type: integer
        great_ratings:
          type: array
          description: Individual great ratings.
          items:
            type: object
        bad_ratings_count:
          type: integer
        bad_ratings:
          type: array
          description: Individual bad ratings.
          items:
            type: object
        okay_ratings_count:
          type: integer
        okay_ratings:
          type: array
          description: Individual okay ratings.
          items:
            type: object
    ReportsProductivity:
      type: object
      properties:
        resolved_conversations_with_multiple_reply:
          type: integer
        resolved_conversations_with_one_reply:
          type: integer
        assigned_conversations:
          type: integer
        created_conversations:
          type: integer
        conversations_with_responses:
          type: array
          items:
            $ref: '#/components/schemas/ProductivityConversation'
        resolutions_with_time:
          type: array
          items:
            $ref: '#/components/schemas/ResolutionTime'
        avg_replies_to_resolution:
          type: number
    ProductivityConversation:
      type: object
      description: A conversation that received agent responses, with its reply messages.
      properties:
        id:
          type: string
        created_at:
          type: string
          format: date-time
        messages:
          type: array
          items:
            $ref: '#/components/schemas/ProductivityMessage'
  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:
    InboxId:
      in: path
      name: inbox_id
      required: true
      description: Inbox identifier.
      schema:
        type: string
    EndDate:
      in: query
      name: end_date
      required: true
      description: End of the reporting window.
      schema:
        type: string
        format: date
    StartDate:
      in: query
      name: start_date
      required: true
      description: Start of the reporting window.
      schema:
        type: string
        format: date
  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