Chatty Analytics Previews API

The Previews API from Chatty Analytics — 9 operation(s) for previews.

GitHub OpenAPI

Operations 9

GET /chat_workspace/company/{company_id}/test_chats Get Test Chats #
GET /chat_workspace/company/{company_id}/previews Get Previews #
GET /chat_workspace/company/{company_id}/previews/count Get Preview Counts #
GET /chat_workspace/company/{company_id}/previews/waiting_reply Get Waiting Reply #
POST /chat_workspace/company/{company_id}/home/recomendaciones/abierta Registrar Recomendacion Abierta #
POST /chat_workspace/company/{company_id}/chats/bulk_actions/desassign_all_chats_from_agent Desassign All Chats From Agent #
POST /chat_workspace/company/{company_id}/chats/bulk_actions/assign_prioritized_chats Assign Prioritized Chats #
POST /chat_workspace/company/{company_id}/chats/bulk_actions/transfer_to_agent/{agent_destination_id} Transfer Chats #
POST /chat_workspace/company/{company_id}/chats/bulk_actions/{action} Act On Chats #

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/letschatty-com:letschatty-com-previews-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

letschatty-com-previews-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Letschatty Com Previews API
  version: '4.0'
  description: 'Operations tagged Previews across 2 of this provider''s published API definitions: openapi.json, letschatty-com-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Previews
paths:
  /chat_workspace/company/{company_id}/test_chats:
    get:
      tags:
      - Previews
      summary: Get Test Chats
      description: 'List the company''s mock test chats — chats whose client.waid starts with

        TEST_WAID_PREFIX. Powers "pick an existing test chat" in the Chatty Labs UI.

        Company-scoped via AuthDep (JWT or x-api-key). Lightweight projection.'
      operationId: get_test_chats_chat_workspace_company__company_id__test_chats_get
      parameters:
      - name: company_id
        in: path
        required: true
        schema:
          type: string
          title: Company Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /chat_workspace/company/{company_id}/previews:
    get:
      tags:
      - Previews
      summary: Get Previews
      operationId: get_previews_chat_workspace_company__company_id__previews_get
      parameters:
      - name: company_id
        in: path
        required: true
        schema:
          type: string
          title: Company Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /chat_workspace/company/{company_id}/previews/count:
    get:
      tags:
      - Previews
      summary: Get Preview Counts
      description: '`account_id` / `accounts` (optional, one id or a comma list): the badges of those accounts only, so they

        match the inbox filtered by account. An account outside the user''s floor is a 403.'
      operationId: get_preview_counts_chat_workspace_company__company_id__previews_count_get
      parameters:
      - name: company_id
        in: path
        required: true
        schema:
          type: string
          title: Company Id
      - name: account_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Account Id
      - name: accounts
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Accounts
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /chat_workspace/company/{company_id}/previews/waiting_reply:
    get:
      tags:
      - Previews
      summary: Get Waiting Reply
      description: '«Te están esperando»: los chats de QUIEN PIDE donde el cliente escribió último.


        Siempre del usuario del token (`execution_context.executor.id`), nunca de un

        parámetro. Ver docs/te-estan-esperando.md.'
      operationId: get_waiting_reply_chat_workspace_company__company_id__previews_waiting_reply_get
      parameters:
      - name: company_id
        in: path
        required: true
        schema:
          type: string
          title: Company Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /chat_workspace/company/{company_id}/home/recomendaciones/abierta:
    post:
      tags:
      - Previews
      summary: Registrar Recomendacion Abierta
      description: 'El frontend avisa que alguien hizo clic en una recomendación de la home («Abrir

        consulta» / «Ver»). Se registra quién y cuál, para cruzarlo con las ventas en Chatty

        Health. Ver company/chats/previews/recomendaciones_home.py.'
      operationId: registrar_recomendacion_abierta_chat_workspace_company__company_id__home_recomendaciones_abierta_post
      parameters:
      - name: company_id
        in: path
        required: true
        schema:
          type: string
          title: Company Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /chat_workspace/company/{company_id}/chats/bulk_actions/desassign_all_chats_from_agent:
    post:
      tags:
      - Previews
      summary: Desassign All Chats From Agent
      operationId: desassign_all_chats_from_agent_chat_workspace_company__company_id__chats_bulk_actions_desassign_all_chats_from_agent_post
      parameters:
      - name: company_id
        in: path
        required: true
        schema:
          type: string
          title: Company Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /chat_workspace/company/{company_id}/chats/bulk_actions/assign_prioritized_chats:
    post:
      tags:
      - Previews
      summary: Assign Prioritized Chats
      operationId: assign_prioritized_chats_chat_workspace_company__company_id__chats_bulk_actions_assign_prioritized_chats_post
      parameters:
      - name: company_id
        in: path
        required: true
        schema:
          type: string
          title: Company Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /chat_workspace/company/{company_id}/chats/bulk_actions/transfer_to_agent/{agent_destination_id}:
    post:
      tags:
      - Previews
      summary: Transfer Chats
      operationId: transfer_chats_chat_workspace_company__company_id__chats_bulk_actions_transfer_to_agent__agent_destination_id__post
      parameters:
      - name: company_id
        in: path
        required: true
        schema:
          type: string
          title: Company Id
      - name: agent_destination_id
        in: path
        required: true
        schema:
          type: string
          title: Agent Destination Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /chat_workspace/company/{company_id}/chats/bulk_actions/{action}:
    post:
      tags:
      - Previews
      summary: Act On Chats
      operationId: act_on_chats_chat_workspace_company__company_id__chats_bulk_actions__action__post
      parameters:
      - name: company_id
        in: path
        required: true
        schema:
          type: string
          title: Company Id
      - name: action
        in: path
        required: true
        schema:
          type: string
          title: Action
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
x-refined-from:
- openapi.json
- letschatty-com-openapi.json