Public API's
Authorization
All of ReplyCX's APIs use Bearer token-based authentication.
Your account token can be found at Settings 🡪 Account Settings 🡪 Developer.

Adding a data source to a knowledge base
POST /api/v1/ai/knowledge-base/<knowledge_base_id>/upload/sources
Using this API, you can add a data source to an existing knowledge base.
Headers:
Name
Value
Content-Type
multipart/form-data
Authorization
Bearer <token>
Body:
The API accepts files and text as multipart form data for upload. Each form field should be a unique key and contain either a file or text content.
Response:
Get training status of a data source:
Using this API, you can fetch the status of one or more data sources in a knowledge base to know it its training is - in progress / completed / failed.
Headers:
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body:
Name
Type
Descriptions
source_ids
query params
Comma-separated list of data source IDs to be passed as query params.
Response:
Creating a conversation:
POST /v1/conversations
Using this endpoint, you can start/create a new conversation.
Headers:
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body:
Contains the message payload. Payload differs based on channel.
Response:
Send agent response to a conversation
POST /api/v1/conversation/<conversation_id>/messages
For every response sent by the agent on the third-party system, this API is to be invoked so it can relay this response to the user.
Headers:
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body:
Response:
Closing a conversation:
POST /api/v1/conversation/{conversation_id}/events
Use this end point to open the conversation.
Headers:
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body:
Response:
Changing assignee in a conversation:
POST /api/v1/conversation/{conversation_id}/events
Use this endpoint to change the assignee in an open conversation.
Headers:
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body:
Response:
Update variable of a conversation:
POST /v1/accounts/{account_id}/conversations/{conversation_id}/variables
Use this endpoint to update the variables in the conversation.
Headers:
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body:
Response:
Set webhook URL for Events feature:
POST /v1/accounts/{account_id}/webhook
Use this endpoint to set webhook for receiving conversation related events from the account.
Headers:
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body:
Response:
Fetch Bots List:
GET /v1/accounts/{account_id}/bots
Use this endpoint to fetch list of bots available in the account.
Headers:
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Response:
Last updated
Was this helpful?