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-notifications-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 Notifications 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: Notifications
description: Operations related to notifications
externalDocs:
url: https://talkjs.com/docs/Features/Notifications/
paths:
/v1/{appId}/conversations/{conversationId}/notifications:
summary: Path for operations on notifications for a specific conversation
description: 'Use this endpoint to send notifications to a specific conversation.
'
post:
tags:
- Notifications
summary: Send notifications
description: 'Sends additional notifications to a user for unanswered messages in a specific conversation.
If a user has notifications enabled, TalkJS already automatically sends that user notifications as soon as the conditions for notifying a user are met. You can use this endpoint to send additional notifications for any unanswered messages in a conversation.
An _unanswered message_ is any message that another user sends to a conversation, after the user''s own latest message.
For example, in the following conversation between a buyer and a seller, the seller hasn''t answered the buyer''s final message:
> **Buyer:** Hey, I''d like to order this chair
> **Seller:** Sure, it''s still available!
> [Seller goes offline]
> **Buyer:** Could you tell me how wide it is?
When you trigger a notification, all participants in a conversation, apart from the one who sent the latest message, get notified if they have notifications enabled.
If a user has multiple unanswered messages, they receive only one notification that bundles information about all the unanswered messages.
### Notification types
You can send an email notification, an SMS notification, or notifications of both types at the same time.
### Webhooks
To receive information about the status of the notifications, you can use webhooks to listen for `notification.triggered` and `notification.sent` events.
Read more on webhooks.
### Use notifications carefully
Beware of sending notifications too frequently, as your users may get overloaded.
Sending notifications doesn''t distinguish between the situation where a conversation has ended (for example, when the last message is "Ok, bye!") and one that still needs an answer (for example, when the last message is "Can you help?").
If you only want to send additional notifications when certain conditions are met, you can implement your own filter before programmatically triggering notifications.'
operationId: sendNotifications
parameters:
- $ref: '#/components/parameters/AppID'
- $ref: '#/components/parameters/ConversationID'
requestBody:
$ref: '#/components/requestBodies/SendNotificationsRequestBody'
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'
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
ConversationID:
name: conversationId
in: path
description: 'A unique identifier of a conversation.
'
required: true
schema:
type: string
example: 0123456789abcdef
requestBodies:
SendNotificationsRequestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Notifications'
schemas:
Notifications:
description: "Details of the notification to send. \n"
type: object
required:
- channel
properties:
channels:
description: 'The channels in which to trigger notifications. Provide at least one channel in which to trigger notifications.
'
type: array
minItems: 1
items:
description: A channel in which to trigger notifications. Possible channels are email and SMS.
type: string
enum:
- email
- sms
example:
- email
- sms
recipients:
description: 'An array with user ID of the participants who should receive the notifications. Omit this field to trigger notifications for all participants who have unanswered messages.
'
type: array
minItems: 1
items:
description: A unique identifier of a user
type: string
example:
- alice
- zayneb
smsSettings:
description: Settings for SMS-notifications
type: object
properties:
smsTemplate:
description: Template for an SMS-notification
type: string
example: '({{app.name}}) {{sender.name}}: "{{messages}}". Reply here: https://yoursite.com/inbox'
minLength: 1
emailSettings:
description: Settings for email notifications
type: object
properties:
footer:
description: Footer message in an email notification
type: string
example: 'On behalf of {{sender.name}},
The {{app.name}} team'
minLength: 1
header:
description: Header of an email notification
type: string
example: 'Hi {{recipient.name}},
{{sender.name}} wants to chat with you on {{app.name}}:'
minLength: 1
subject:
description: Subject of an email notification
type: string
example: '{{sender.name}} wants to chat with you on {{app.name}}'
minLength: 1
inboxUrl:
description: URL to an inbox where the participant can find your chat
type: string
example: https://yoursite.com/inbox
minLength: 1
senderName:
description: Name of the sender of the message that the user receives a notification about
type: string
example: '{{sender.name}} (via {{app.name}})'
minLength: 1
inboxLinkText:
description: Text to include in the link back to the chat
type: string
example: Click here to join the chat.
minLength: 1
replySeparator:
description: 'Line that separates the notification received from the space in which the user can reply to the email.
'
type: string
example: '--- Write ABOVE THIS LINE to post a reply via email ---'
minLength: 1
unsubscribeText:
description: 'Text for a link that allows users to unsubscribe from all email notifications.
'
type: string
example: Unsubscribe from all chat emails
minLength: 1
securitySchemes:
JWTAuth:
type: http
scheme: bearer
bearerFormat: JWT
ApiKeyAuth:
type: http
scheme: bearer
bearerFormat: APIKey
externalDocs:
description: TalkJS documentation
url: https://talkjs.com/docs