Chatty Analytics Sources API
The Sources API from Chatty Analytics — 10 operation(s) for sources.
The Sources API from Chatty Analytics — 10 operation(s) for sources.
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/letschatty-com:letschatty-com-sources-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: Letschatty Com Sources API
version: '4.0'
description: 'Operations tagged Sources 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: Sources
paths:
/company_workspace/{company_id}/sources:
get:
tags:
- Sources
summary: List Sources
description: Las fuentes de la empresa; con `?account_id=`, las de esa cuenta de WhatsApp. Cada fila lleva `account_id`.
operationId: list_sources_company_workspace__company_id__sources_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: 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'
post:
tags:
- Sources
summary: Create Source
operationId: create_source_company_workspace__company_id__sources_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:
'201':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/company_workspace/{company_id}/sources/{source_id}:
get:
tags:
- Sources
summary: Get Source
operationId: get_source_company_workspace__company_id__sources__source_id__get
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: source_id
in: path
required: true
schema:
type: string
title: Source 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'
put:
tags:
- Sources
summary: Update Source
operationId: update_source_company_workspace__company_id__sources__source_id__put
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: source_id
in: path
required: true
schema:
type: string
title: Source 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'
delete:
tags:
- Sources
summary: Delete Source
operationId: delete_source_company_workspace__company_id__sources__source_id__delete
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: source_id
in: path
required: true
schema:
type: string
title: Source 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'
/company_workspace/{company_id}/sources/{source_id}/duplicate:
post:
tags:
- Sources
summary: Duplicate Source
description: '«Duplicar a otra cuenta»: a new source in `account_id` with the definition of this one and none of its
automations (a source never changes account; the target account may not have them). 409 + `code`:
`same_account`, `source_type_not_duplicable`, `topic_not_in_account`.'
operationId: duplicate_source_company_workspace__company_id__sources__source_id__duplicate_post
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: source_id
in: path
required: true
schema:
type: string
title: Source 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:
'201':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/company_workspace/{company_id}/sources/clear-cache:
post:
tags:
- Sources
summary: Clear Sources Cache
description: 'Invalida el caché de fuentes de UNA empresa.
Existe porque `POST /admin/cache/clear` borra el caché de assets de TODAS
las empresas y manda cada lectura siguiente a Mongo. Esto borra sólo lo de
esta empresa.
La clave que importa es `sources:all:{company_id}`: es exactamente la que lee
`determine_perfect_match` a través de `sources.get_all()`. Mientras esa clave
tenga la lista vieja, el matcher sigue viendo fuentes ya borradas y no ve las
nuevas — hasta 24h de TTL. Es lo que hay que tocar después de escribir fuentes
por fuera de la API (scripts en modo --local, escrituras directas a Mongo).'
operationId: clear_sources_cache_company_workspace__company_id__sources_clear_cache_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'
/company_workspace/{company_id}/sources/{source_id}/merge:
post:
tags:
- Sources
summary: Merge Source
description: 'Collapse `source_id` into the source given as `into_source_id`.
Every contact point attributed to `source_id` is repointed at the winner (in the
contact_points collection AND in the embedded chat copy), analytics is notified per
contact point, and `source_id` is then soft-deleted. Pass `dry_run: true` to get the
same report without writing anything.'
operationId: merge_source_company_workspace__company_id__sources__source_id__merge_post
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: source_id
in: path
required: true
schema:
type: string
title: Source 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'
/company_workspace/{company_id}/sources_schema:
get:
tags:
- Sources
summary: Get Source Schema
operationId: get_source_schema_company_workspace__company_id__sources_schema_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'
/company_workspace/{company_id}/sources_settings:
get:
tags:
- Sources
summary: Get Sources Settings
description: Los ajustes de fuentes de la empresa (`company/assets/ajustes_de_fuentes.py`).
operationId: get_sources_settings_company_workspace__company_id__sources_settings_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'
put:
tags:
- Sources
summary: Update Sources Settings
description: Reemplaza los ajustes de fuentes. Un cuerpo inválido o con un campo desconocido → 400 con el campo.
operationId: update_sources_settings_company_workspace__company_id__sources_settings_put
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'
/company_workspace/{company_id}/sources_categories:
get:
tags:
- Sources
summary: Get Source Categories
operationId: get_source_categories_company_workspace__company_id__sources_categories_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'
/company_workspace/{company_id}/{source_type}/source_checkers:
get:
tags:
- Sources
summary: Get Source Checkers
operationId: get_source_checkers_company_workspace__company_id___source_type__source_checkers_get
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: source_type
in: path
required: true
schema:
type: string
title: Source Type
- 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'
/company_workspace/{company_id}/utm_configuration:
get:
tags:
- Sources
summary: Get Utm Configuration
operationId: get_utm_configuration_company_workspace__company_id__utm_configuration_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'
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