Chatty Analytics Users API
The Users API from Chatty Analytics — 17 operation(s) for users.
Operations 25
PUT
/company_workspace/{company_id}/users/{user_id}/module_permissions
Update User Module Permissions
#
The Users API from Chatty Analytics — 17 operation(s) for users.
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-users-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 Users API
version: '4.0'
description: 'Operations tagged Users 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: Users
paths:
/company_workspace/{company_id}/users:
get:
tags:
- Users
summary: List Users
operationId: list_users_company_workspace__company_id__users_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'
post:
tags:
- Users
summary: Create User
operationId: create_user_company_workspace__company_id__users_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}/users/roles:
get:
tags:
- Users
summary: Get User Roles
operationId: get_user_roles_company_workspace__company_id__users_roles_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}/users/{user_id}:
get:
tags:
- Users
summary: Get User
operationId: get_user_company_workspace__company_id__users__user_id__get
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: user_id
in: path
required: true
schema:
type: string
title: User 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:
- Users
summary: Update User
operationId: update_user_company_workspace__company_id__users__user_id__put
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: user_id
in: path
required: true
schema:
type: string
title: User 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:
- Users
summary: Delete User
description: 'Delete a user and send the chats they were holding wherever the admin chose.
A deleted user drops out of GET /users, which is the only list feeding the inbox
"Agentes" filter — so a chat left pointing at them can''t be filtered for or
reassigned, and the per-chat unassign controls are all gated on the chat being
yours. Something has to happen to that queue.
?chats_destination = unassign (default) | autoassign | transfer | archive
?transfer_to_agent_id = required when transfer
The default is load-bearing: integrations, the mega-admin reset-user-email path and
any client that predates this parameter must keep releasing the chats rather than
stranding them, so the destination is never a required field.'
operationId: delete_user_company_workspace__company_id__users__user_id__delete
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: user_id
in: path
required: true
schema:
type: string
title: User 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}/users/me/home:
put:
tags:
- Users
summary: Update My Home
description: 'Guarda el inicio que armó el propio usuario (spec 2026-10-01 §6.3). Sólo uno mismo, sólo este campo.
`[]` (o sin la clave) vuelve al inicio del rol: se guarda `None`. Lleva dos segmentos después de
`users/`, así que no choca con `PUT /{company_id}/users/{user_id}`.'
operationId: update_my_home_company_workspace__company_id__users_me_home_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}/users/{user_id}/auto_assign_chats:
put:
tags:
- Users
summary: Update User Auto Assign
operationId: update_user_auto_assign_company_workspace__company_id__users__user_id__auto_assign_chats_put
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: user_id
in: path
required: true
schema:
type: string
title: User 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}/users/{user_id}/accounts:
put:
tags:
- Users
summary: Update User Accounts
description: 'Limit a user to some of the company''s WhatsApp accounts (`{"account_ids": [...]}`), or remove the limit
(`{"account_ids": null}` = every account). The ONLY way `users.account_ids` is written.
Rules (company/whatsapp_accounts/user_accounts.py): `[]` is 422; every id must be an account of the company;
the Owner, mega admins and copilot cannot be limited; only when the company has 2+ accounts; a limited actor
can only grant a subset of their own accounts to someone who already works within them. Same management
policy as the other admin edits (`authorize_management`): nobody edits their own accounts, nor a peer''s.'
operationId: update_user_accounts_company_workspace__company_id__users__user_id__accounts_put
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: user_id
in: path
required: true
schema:
type: string
title: User 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}/users/{user_id}/held_chats:
get:
tags:
- Users
summary: Count Held Chats
description: 'How many chats this agent is holding — the number the delete dialog shows.
Nobody knew one agent was sitting on 19.005 chats until after she was deleted and
they turned out to be unreachable. Asking "¿qué hacemos con sus chats?" is only a
real question if the admin can see how many there are.'
operationId: count_held_chats_company_workspace__company_id__users__user_id__held_chats_get
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: user_id
in: path
required: true
schema:
type: string
title: User 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}/users/{user_id}/business_area:
post:
tags:
- Users
summary: Assign Business Area
operationId: assign_business_area_company_workspace__company_id__users__user_id__business_area_post
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: user_id
in: path
required: true
schema:
type: string
title: User 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}/users/{user_id}/funnel:
post:
tags:
- Users
summary: Assign Funnel
operationId: assign_funnel_company_workspace__company_id__users__user_id__funnel_post
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: user_id
in: path
required: true
schema:
type: string
title: User 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}/users/{user_id}/assets:
get:
tags:
- Users
summary: Get User Assets
operationId: get_user_assets_company_workspace__company_id__users__user_id__assets_get
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: user_id
in: path
required: true
schema:
type: string
title: User 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:
- Users
summary: Update User Assets
operationId: update_user_assets_company_workspace__company_id__users__user_id__assets_put
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: user_id
in: path
required: true
schema:
type: string
title: User 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}/users/{user_id}/module_permissions:
put:
tags:
- Users
summary: Update User Module Permissions
operationId: update_user_module_permissions_company_workspace__company_id__users__user_id__module_permissions_put
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: user_id
in: path
required: true
schema:
type: string
title: User 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}/users/{user_id}/roles:
put:
tags:
- Users
summary: Update User Roles
operationId: update_user_roles_company_workspace__company_id__users__user_id__roles_put
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: user_id
in: path
required: true
schema:
type: string
title: User 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}/users/{user_id}/api_key:
post:
tags:
- Users
summary: Create Api Key
operationId: create_api_key_company_workspace__company_id__users__user_id__api_key_post
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: user_id
in: path
required: true
schema:
type: string
title: User 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'
put:
tags:
- Users
summary: Postpone Api Key
operationId: postpone_api_key_company_workspace__company_id__users__user_id__api_key_put
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: user_id
in: path
required: true
schema:
type: string
title: User 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:
- Users
summary: Invalidate Api Key
operationId: invalidate_api_key_company_workspace__company_id__users__user_id__api_key_delete
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: user_id
in: path
required: true
schema:
type: string
title: User 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}/auto_assignation:
get:
tags:
- Users
summary: List Auto Assignation
operationId: list_auto_assignation_company_workspace__company_id__auto_assignation_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:
- Users
summary: Upsert Auto Assignation
operationId: upsert_auto_assignation_company_workspace__company_id__auto_assignation_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}/auto_assignation/history:
get:
tags:
- Users
summary: Get Auto Assignation History
operationId: get_auto_assignation_history_company_workspace__company_id__auto_assignation_history_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}/auto_assignation/coverage:
get:
tags:
- Users
summary: Get Auto Assignation Coverage
description: 'Which accounts have no user to assign their chats to (`reason: no_eligible_agent`) and how many chats are
waiting there. Computed on read from the assignment pool rule; nothing is stored. For a company with fewer than 2
accounts: `{"applies": false, "accounts": []}`. VIEW floor, like the history. MUST stay declared BEFORE the
"/{config_id}" GET so "coverage" is not captured as a config id.'
operationId: get_auto_assignation_coverage_company_workspace__company_id__auto_assignation_coverage_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}/auto_assignation/{config_id}:
get:
tags:
- Users
summary: Get Auto Assignation
operationId: get_auto_assignation_company_workspace__company_id__auto_assignation__config_id__get
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: config_id
in: path
required: true
schema:
type: string
title: Config 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:
- Users
summary: Delete Auto Assignation
operationId: delete_auto_assignation_company_workspace__company_id__auto_assignation__config_id__delete
parameters:
- name: company_id
in: path
required: true
schema:
type: string
title: Company Id
- name: config_id
in: path
required: true
schema:
type: string
title: Config 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