Skip to main content

API

JAICP provides a number of APIs for accessing its functions via HTTP in order to integrate them into third-party applications.

API access

To use the APIs, get a token in JAICP. The process of getting the token may differ depending on the API:

APIHow to get a token
Project APIIssue a unified token in the API access section.
Channel API
NLP Direct APICopy the token in the project settings.
Reporter APICopy the token in the project settings.
Chat APICopy the token in the Chat API channel settings.
Prompter APICopy the token in the Prompter API channel settings.
Calls APICopy the token in the Outbound call campaigns tab.
Operator APINo token required.
Model API
Pushgate API

API list

Dialog APIs

  • Chat API is an API for communicating with chatbots or customer service agents.
    Supported methods:

    • Sending client requests to the chat.
    • Fetching asynchronous events in the chat.
    • Fetching the chat message history.
    • Saving and loading the chat application state.
  • Operator API is an API for integrating JAICP with any customer engagement platform.
    Supported methods:

    • Sending a message, a file, or any arbitrary data to a live agent.
    • Selecting the agent group where the message should be routed.
    • Subscribing to events in the communication channel.
  • Prompter API is an API for connecting prompters to Aimychat or integrating them into third-party services.
    Supported method:

    • Sending answers to users’ questions to an agent.

NLU APIs

  • NLP Direct API is an API for accessing the NLU core, which is used for natural language understanding.
    Supported methods:

    • Importing and exporting NLU data to and from existing JAICP projects.
    • Adding, modifying, and deleting intents and entities.
    • Classifier training.
    • Spell checking.
  • Model API is an API for connecting external NLU services to JAICP.

Other APIs

  • Calls API is an API for working with outbound telephony.
    Supported methods:

    • Adding phone numbers with parameters to the outbound call campaign.
    • Canceling previously created call jobs.
    • Obtaining campaign reports.
    • Starting, pausing, resuming, and stopping the campaign.
  • Channel API is an API for channel management and bot deployment.

  • Project API is an API for project management.

  • Pushgate API is an API for sending events to the bot via pushbacks.

  • Reporter API is an API for managing project analytics.
    Supported methods:

    • Receiving summary statistics on calls, unique users, and dialogs transferred to the agent.
    • Getting advanced statistics on the number of messages, sessions, and labels set.
    • Getting client lists, as well as blocking or unblocking them.
    • Getting a list of messages for specific sessions or clients.
    • Adding, deleting, and getting message and session labels.
    • Creating, activating, ending, and deleting experiments, as well as counting the number of sessions involved in experiments.
    • Generating reports on sessions, messages, clients, and calls, as well as deleting tasks for report generation.