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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/talkjs:talkjs-participation-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
openapi: 3.2.0
info:
title: TalkJS Participation API
summary: Manage messages, conversations, users, notifications and app metadata
description: 'The TalkJS REST API allows you to manage messages, conversations, sessions, users and notifications from your backend. The API is REST-based, using HTTP and JSON. The API only accepts authenticated calls over HTTPS, and uses standard HTTP status codes for reporting results. ## Authentication
Authentication helps keep your chat and user data secure. ### Single-use token authentication
The TalkJS REST API works with token-based authentication. Because the REST API has read/write access to all data in your TalkJS account, we recommend using single-use tokens. With single-use tokens, your server generates a new token for each REST API request. Single-use tokens allow you to set an extremely short expiry time for a token. That means that even if you accidentally leak a token, the token will expire before anyone can exploit it. The following are example code snippets in different languages to generate a REST API token that expires after 30 seconds.'
termsOfService: https://talkjs.com/terms/
contact:
name: TalkJS team
url: https://talkjs.com/?chat
email: hey@talkjs.com
license:
name: MIT License
url: https://mit-license.org
version: '2024-01-01'
servers:
- url: https://api.talkjs.com
description: Production server
security:
- JWTAuth: []
- ApiKeyAuth: []
tags:
- name: Participation
description: Operations related to participation
paths:
/v1/{appId}/conversations/{conversationId}/participants/{userId}:
summary: Path for operations on a participant in a conversation
description: 'Use this endpoint to add a participant to or remove a participant from a conversation, or to update a participant''s access to and notifications for a conversation.
'
put:
tags:
- Participation
summary: Add a user to a conversation
description: 'A user who is added to a conversation is a participant in that conversation. For any participant in a conversation, you can specify the following:
- type of access to the conversation
- notification settings
The operation to add a user to a conversation is idempotent, hence you can call it multiple times in a row. A new request always overwrites existing values.
### Group chat sizes
You can have a maximum of 100 participants per conversation on the Basic plan and 300 participant on the Growth plan, as well as add guests up to the user limit for your plan. On the Enterprise plan, group chat sizes are customizable to fit your needs.
For more on group chat sizes, see: Group chats.
### Conversation history
When you add a user to a conversation, that user has access to all of the conversation history, including any history from before they joined.
Similarly, if you temporarily remove a user from a conversation, and add them again later, that user also has access to the complete conversation history, including messages sent when they weren''t part of the conversation.'
operationId: addParticipant
parameters:
- $ref: '#/components/parameters/AppID'
- $ref: '#/components/parameters/ConversationID'
- $ref: '#/components/parameters/UserID'
requestBody:
$ref: '#/components/requestBodies/AddParticipantRequestBody'
responses:
'200':
$ref: '#/components/responses/EmptyResponse'
'400':
$ref: '#/components/responses/BadRequestResponse'
'401':
$ref: '#/components/responses/UnauthorizedResponse'
'404':
$ref: '#/components/responses/ResourceNotFoundResponse'
'415':
$ref: '#/components/responses/UnsupportedMediaTypeResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
'500':
$ref: '#/components/responses/InternalServerErrorResponse'
patch:
tags:
- Participation
summary: Change a user's participation settings
description: 'Changes a user''s participation settings in a conversation.
If a user is already a participant of a conversation, then you can change the following participation settings:
- type of access to the conversation
- notification settings
To prevent a participant from being able to read messages from or send messages to a conversation, set their access type to `"None"`.
The change participation operation is idempotent, and can be called multiple times in a row. This call only updates fields given in the payload, leaving the old ones as they were.'
operationId: updateParticipation
parameters:
- $ref: '#/components/parameters/AppID'
- $ref: '#/components/parameters/ConversationID'
- $ref: '#/components/parameters/UserID'
requestBody:
$ref: '#/components/requestBodies/UpdateParticipationRequestBody'
responses:
'200':
$ref: '#/components/responses/EmptyResponse'
'400':
$ref: '#/components/responses/BadRequestResponse'
'401':
$ref: '#/components/responses/UnauthorizedResponse'
'404':
$ref: '#/components/responses/ResourceNotFoundResponse'
'415':
$ref: '#/components/responses/UnsupportedMediaTypeResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
'500':
$ref: '#/components/responses/InternalServerErrorResponse'
delete:
tags:
- Participation
summary: Remove a user from a conversation
description: 'Removes a participant from a conversation. If a participant is removed from a conversation, they won''t have access to new messages sent to the conversation, and are no longer listed as a participant in the conversation.
The operation to remove a participant is idempotent and can be called multiple times in a row.'
operationId: removeParticipant
parameters:
- $ref: '#/components/parameters/AppID'
- $ref: '#/components/parameters/ConversationID'
- $ref: '#/components/parameters/UserID'
responses:
'200':
$ref: '#/components/responses/EmptyResponse'
'400':
$ref: '#/components/responses/BadRequestResponse'
'401':
$ref: '#/components/responses/UnauthorizedResponse'
'404':
$ref: '#/components/responses/ResourceNotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
'500':
$ref: '#/components/responses/InternalServerErrorResponse'
components:
responses:
BadRequestResponse:
description: Bad request
EmptyResponse:
description: Empty response
content:
application/json:
schema:
description: Empty response
type: object
UnauthorizedResponse:
description: Authorization information is missing or invalid.
ResourceNotFoundResponse:
description: Resource not found
TooManyRequestsResponse:
description: Too many requests
InternalServerErrorResponse:
description: Internal server error
UnsupportedMediaTypeResponse:
description: Unsupported media type
parameters:
AppID:
name: appId
in: path
description: 'A unique identifier of your TalkJS app. You can find your app ID on the **Settings** page of your [dashboard](https://talkjs.com/dashboard).
'
required: true
schema:
type: string
example: abcd1234
UserID:
name: userId
in: path
description: 'A unique identifier of a user.
'
required: true
schema:
type: string
example: alice
ConversationID:
name: conversationId
in: path
description: 'A unique identifier of a conversation.
'
required: true
schema:
type: string
example: 0123456789abcdef
schemas:
ParticipationUpdateData:
description: Participation settings to update a user who is part of a conversation.
type: object
properties:
notify:
description: "Indicates whether a user should receive notifications for activity in this conversation. \n"
type:
- boolean
- string
enum:
- true
- false
- MentionsOnly
example: true
default: true
access:
description: 'Indicates the type of access a user has to this conversation.
'
type: string
enum:
- ReadWrite
- Read
- None
example: None
default: ReadWrite
Participation:
description: Participation settings for a user who is added to a conversation.
type: object
properties:
notify:
description: "Indicates whether a user should receive notifications for activity in this conversation. \n"
type:
- boolean
- string
enum:
- true
- false
- MentionsOnly
example: true
default: true
access:
description: 'Indicates the type of access a user has to this conversation.
'
type: string
enum:
- ReadWrite
- Read
example: Read
default: ReadWrite
requestBodies:
AddParticipantRequestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Participation'
UpdateParticipationRequestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ParticipationUpdateData'
securitySchemes:
JWTAuth:
type: http
scheme: bearer
bearerFormat: JWT
ApiKeyAuth:
type: http
scheme: bearer
bearerFormat: APIKey
externalDocs:
description: TalkJS documentation
url: https://talkjs.com/docs