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-batch-operations-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 Batch operations 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: Batch operations
description: Batch operations
paths:
/v1/{appId}/batch:
summary: Path for batch operations
description: 'Use this endpoint to perform batch operations.
'
post:
tags:
- Batch operations
summary: Perform batch operations
description: 'Performs multiple operations in a batch with a single request. You can include a maximum of 10 operations in a single batch request. For batch requests, the REST API rate limits support 500 burst requests, a maximum of 100 requests in the queue, and 1 batch request per second.
### Request
The payload must be an array of operations. Each operation must have the following format:
`[sequence_number, method, path, payload, options]`
You can include any TalkJS REST API operation in a batch operation, as long as its request has JSON content, or is empty.
You can''t upload files as part of a batch operation, because file uploads require `multipart/form-data`-formatted data. To upload a file, use the ''Upload file'' resource instead.
### Response
The response is an array of operation responses. Each operation response has the format:
`[sequence_number, http_status_code, operation_response]`'
operationId: batchOperations
parameters:
- $ref: '#/components/parameters/AppID'
requestBody:
$ref: '#/components/requestBodies/BatchOperationsRequestBody'
responses:
'200':
$ref: '#/components/responses/BatchOperationSuccessResponse'
'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'
components:
responses:
BadRequestResponse:
description: Bad request
ResourceNotFoundResponse:
description: Resource not found
UnauthorizedResponse:
description: Authorization information is missing or invalid.
BatchOperationSuccessResponse:
description: Batch operation performed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/BatchOperationResponse'
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
requestBodies:
BatchOperationsRequestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/BatchOperationRequest'
schemas:
BatchOperationResponse:
description: An array of operation responses.
type: array
items:
description: A single operation response
type:
- integer
- array
- object
- string
properties:
sequence_number:
description: 'Unique identifier of the operation. Corresponds to the `sequence_number` that was set in the request.
'
type: integer
example: 1
http_status_code:
description: Numeric HTTP status code for the REST operation
type: integer
example: 200
operation_response:
description: JSON data returned by the REST operation
type:
- string
- object
- array
example:
id: msg_1821ZuPQL8tqKUWqXp8YDF
example:
- 1
- 200
- id: alice
name: Alice
BatchOperationRequest:
description: An array of operations to perform in a batch.
type: array
items:
type:
- integer
- string
- object
minItems: 3
maxItems: 5
example:
- 1
- PUT
- /users/alice
- name: Alice
- api_version: '2021-01-01'
required:
- sequence_number
- method
- path
properties:
sequence_number:
description: 'Integer that uniquely identifies the operation.
**Note:** The sequence number only acts as an identifier, and doesn''t determine the order in which operations are executed. If your operations need to happen in a specific order, then request those operations in separate calls.
'
type: integer
example: 1
method:
description: HTTP method for the operation
type: string
example: GET
enum:
- GET
- POST
- PUT
- PATCH
- DELETE
path:
description: 'Path of the REST API endpoint for the operation that''s appended to the `/v1/{appId}` baseUrl
'
type: string
example: /users/alice
payload:
description: JSON payload. You can use `payload` for PUT and POST requests to specify the payload associated with the REST API operation. You can also use `payload` with string keys and values to specify query parameters to filter results of a GET request.
type: object
example:
name: Alice
options:
description: Mapping containing the key `api_version`, and a string value with the API version
type: object
example:
api_version: '2021-01-01T00:00:00.000Z'
securitySchemes:
JWTAuth:
type: http
scheme: bearer
bearerFormat: JWT
ApiKeyAuth:
type: http
scheme: bearer
bearerFormat: APIKey
externalDocs:
description: TalkJS documentation
url: https://talkjs.com/docs