Endpoints
This is a hand-written first version. A full machine-readable (OpenAPI) spec is coming and will replace this page.
All requests need the Authorization: Bearer <token> header, see Authentication. The base URL is https://chatbot-engine.amio.io. Request and response bodies are JSON with snake_case field names. Paths with :botId, :answerId and similar are IDs returned by the list endpoints. Bot-scoped paths return 404 for bots outside your organization.
Common tasks
Section titled “Common tasks”List bots
Section titled “List bots”GET /bots returns your bots with id, name, language, timezone, type, is_active, chat_theme_id, and market_id.
curl https://chatbot-engine.amio.io/bots -H "Authorization: Bearer $AMIO_TOKEN"List answers
Section titled “List answers”GET /bots/:botId/answers returns every answer of the bot with id, name, published, intent, and request_outcome.
curl https://chatbot-engine.amio.io/bots/$BOT_ID/answers -H "Authorization: Bearer $AMIO_TOKEN"GET /bots/:botId/answers/:answerId returns one answer including its conversation.
Create an answer
Section titled “Create an answer”POST /bots/:botId/answers returns 201 with the new answer.
| Field | Type | Notes |
|---|---|---|
name |
string | Optional, 1 to 255 characters. |
conversation_json |
object | Required. The answer’s message flow, in the same structure GET returns. |
In a multi-bot, only the primary variant can create answers (otherwise 409).
curl -X POST https://chatbot-engine.amio.io/bots/$BOT_ID/answers \ -H "Authorization: Bearer $AMIO_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name": "Opening hours", "conversation_json": { ... }}'Update an answer
Section titled “Update an answer”PATCH /bots/:botId/answers/:answerId. Send only the fields you change.
| Field | Type | Notes |
|---|---|---|
name |
string | 1 to 255 characters. |
published |
boolean | Publish or unpublish the answer. |
conversation_json |
object | New message flow. |
conversation_json_hash |
string | Hash of the flow, as sent by the admin. |
inherit_conversation |
boolean | For non-primary multi-bot variants: use the primary’s flow. |
template_refs, variable_refs, answer_refs |
object | Each has required creates and deletes arrays. Tracks which blocks, variables, and answers the flow uses. |
curl -X PATCH https://chatbot-engine.amio.io/bots/$BOT_ID/answers/$ANSWER_ID \ -H "Authorization: Bearer $AMIO_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name": "Opening hours (updated)", "published": true}'List knowledge bases
Section titled “List knowledge bases”GET /indexes returns your knowledge bases with id, name, schedule_params, index_group_id, market_id, and sources (each with id, type, format, url, name).
curl https://chatbot-engine.amio.io/indexes -H "Authorization: Bearer $AMIO_TOKEN"Trigger a re-index
Section titled “Trigger a re-index”POST /indexes/:indexId/executions queues an indexing run and returns 201 with the execution. It takes no body. Poll GET /indexes/:indexId/executions/:executionId for progress, or list runs with GET /indexes/:indexId/executions?max=10&offset=0.
curl -X POST https://chatbot-engine.amio.io/indexes/$INDEX_ID/executions \ -H "Authorization: Bearer $AMIO_TOKEN"Create a knowledge base
Section titled “Create a knowledge base”POST /indexes.
| Field | Type | Notes |
|---|---|---|
name |
string | Required. |
sources |
array | Required, at least one. Each source has type (for example web_scraping, url), url, and optional format and config. The URL is checked on creation. |
schedule_params |
object or null | { "cronExpression": "..." } for scheduled re-indexing. |
index_group_id, market_id |
string or null | Optional assignment. |
PATCH /indexes/:indexId accepts name, schedule_params, index_group_id, market_id.
Unknown topics analysis
Section titled “Unknown topics analysis”Groups the customer questions no answer matched (“Unknown/Generated answer”) into topics and judges whether the bot answered each one. It is the same data as the Unknown questions by topic card in Analytics. The analysis is available on request: Amio switches it on per organization, and the endpoints return 403 until then.
The analysis is automatic. Every night Amio analyses the unknown messages of all bots of the organization that are new since the previous run (the first run covers the last 14 days, and so does the first run after a pause of more than 14 days). The first run analyses at most the 5,000 most recent messages. A later run analyses at most 5,000 messages that were not analysed yet, oldest first, and the rest follow in the next runs. The result covers a rolling period of up to 30 days (date_from - date_to). Messages judged in an earlier run are not judged again. You read the latest result, and you can start a manual run, which processes the messages that are new since the previous run just like the nightly one.
Topics are persistent. They belong to the organization and survive between runs: a new question joins an existing topic when it fits, a new topic is created only when several customers ask something that fits none, a topic keeps its id and name, and duplicates are merged by a weekly consolidation. Questions that fit no topic yet wait in the catch-all topic (kind other) and are re-checked every night.
The analysis works on conversations. A customer’s messages less than 2 hours apart are evaluated together. A question and the messages that merely continue it (an order number the bot asked for, a rephrasing, a reaction) are one question, judged by how the exchange ended. These continuations are its follow-ups. Messages that continue a question the bot recognized, and noise (greetings, thanks, automated e-mails), are not counted as questions. A conversation that is still going on is left for the next run. All counts below (request_count, analyzed_count, total) count questions, unless stated otherwise.
The feature is enabled per organization by Amio (ask your Amio contact). While it is not enabled, all three endpoints return 403.
Responses are snake_case. The botIds query parameter is camelCase.
Start an analysis
Section titled “Start an analysis”POST /analytics/unknown-topics/analyses starts a manual run for the whole organization. It takes no body. It returns 202 with the queued analysis, or 200 with the analysis that is already queued or running (nothing new is started). It returns 400 if the organization has no bots. The analysis is wrapped as {"analysis": {...}}. The previous result stays available while the run is in progress.
curl -X POST https://chatbot-engine.amio.io/analytics/unknown-topics/analyses \ -H "Authorization: Bearer $AMIO_TOKEN"Get the result
Section titled “Get the result”GET /analytics/unknown-topics?botIds=1,2 returns the latest result. botIds is an optional comma-separated list of bot IDs. Omit it for the whole organization. Unknown IDs return 404, more than 100 return 400. The response contains:
| Field | Notes |
|---|---|
latest_analysis |
The newest run of the organization, whatever its state, or null. Never filtered by botIds. After starting a manual run, poll this until status is completed or failed. |
analysis |
The last completed run, or null if none finished yet. The topics belong to this run. |
topics |
Topics of analysis. Empty if there is no completed run. |
An analysis object has id, trigger (scheduled for the nightly run, manual for a run you started), bot_ids, status (queued, running, completed or failed), progress (0 to 100), stage (the current step while running, otherwise null), date_from, date_to, created_on, finished_on, request_count (unknown messages in the period), analyzed_count (questions analysed), message_count (all unknown messages processed: questions, follow-ups, recognized follow-ups and noise), error (set when failed) and summary.
summary has the number of questions per verdict (answered, partially_answered, not_answered, handed_over, no_reply) and knowledge_used (questions answered from the knowledge base). It also counts messages: follow_ups (merged into a question), recognized_follow_ups and noise (both skipped), and fallbacks (conversations that could not be judged automatically).
With botIds, request_count, analyzed_count, message_count and summary of analysis count only the messages and questions of those bots, and so do each topic’s request_count, counts, knowledge_used_count and share. Topics without questions from those bots are left out. A topic’s kind, label, description, recommendation and samples always describe the whole organization.
A topic has:
| Field | Notes |
|---|---|
id |
Use it in the topic requests endpoint. |
label, description, recommendation |
Always in English, whatever the conversation language. |
kind |
knowledge_gap (at least half of the questions not answered, handed over or without reply), partially_covered, covered (at least 70 % answered), out_of_scope (unrelated to the business) or other (the catch-all “Other one-off questions”). |
request_count |
Number of questions in the topic. |
share |
request_count divided by analyzed_count, from 0 to 1. |
first_seen_on |
When the topic was created (ISO 8601). |
is_new |
true when the topic was created within the last 7 days. Topics created by the very first run are never new. |
previous_request_count |
Questions of the topic in the 30 days before the analysed period, to compute a trend against request_count. |
counts |
Questions per verdict: answered, partially_answered, not_answered, handed_over, no_reply. |
knowledge_used_count |
How many replies were grounded in knowledge-base sources. |
samples |
A few example questions. |
curl "https://chatbot-engine.amio.io/analytics/unknown-topics?botIds=$BOT_ID" -H "Authorization: Bearer $AMIO_TOKEN"Example topic:
{ "id": "…", "label": "Availability of waterproof hiking boots size 43", "kind": "knowledge_gap", "request_count": 29, "recommendation": "…", "description": "…", "share": 0.12, "counts": { "answered": 4, "partially_answered": 1, "not_answered": 24, "handed_over": 0, "no_reply": 0 }, "knowledge_used_count": 3, "samples": ["Do you have the Trek boots in size 43?"], "first_seen_on": "2026-11-20T01:12:45.000Z", "is_new": true, "previous_request_count": 0}List the questions of a topic
Section titled “List the questions of a topic”GET /analytics/unknown-topics/topics/:topicId/requests returns {"total": 29, "requests": [...]}, or 404 for an unknown topic. Pass botIds to list only the questions of those bots.
| Query parameter | Notes |
|---|---|
botIds |
Optional, comma-separated bot IDs, as above. |
max |
Page size, 1 to 200. Default 50. |
offset |
Questions to skip. Default 0. |
Each request has request_id, contact_id, bot_id, created_on, customer_message, canonical_question (the question as understood), bot_reply (null when the bot did not reply), verdict (answered, partially_answered, not_answered, handed_over or no_reply), reason (why the judge chose the verdict) and knowledge_used (boolean), follow_up_count (number of follow-up messages merged into the question) and follow_ups (the first 10 of them, oldest first). A follow-up has request_id, created_on, customer_message and bot_reply (null when the bot did not reply).
{ "request_id": "…", "customer_message": "Do you have the Trek boots in size 43?", "verdict": "not_answered", "follow_up_count": 1, "follow_ups": [ { "request_id": "…", "created_on": "2026-11-26T09:14:02.000Z", "customer_message": "Waterproof please", "bot_reply": null } ]}curl "https://chatbot-engine.amio.io/analytics/unknown-topics/topics/$TOPIC_ID/requests?max=50&offset=0" -H "Authorization: Bearer $AMIO_TOKEN"Product analytics
Section titled “Product analytics”Counts how the products the bot recommends in the webchat perform. It is the same data as the Products section in Analytics. Email and other channels are not counted, and data starts from the release of the feature (nothing is backfilled).
- Shown: the bot sent the product to the customer in a product recommendation. One count per product card sent. It does not check whether the customer scrolled to it.
- Clicks: the customer clicked the product card. At most one click per shown card.
- Added to cart: the customer added the product to the cart from the chat. Only on websites that have connected the webchat’s add-to-cart. At most one per shown card.
Products are grouped by the product ID from the product feed. A product whose feed has no ID field is still tracked, with productId: null and an internal productKey.
GET /analytics/products query parameters:
| Parameter | Notes |
|---|---|
botIds |
Required. Comma-separated bot IDs. |
dateFrom, dateTo |
Required. ISO dates. dateTo must not be before dateFrom. |
channelIds |
Optional. Comma-separated channel IDs. |
max |
Optional. How many products to return, 1 to 500, default 100. Out of range returns 422. |
curl "https://chatbot-engine.amio.io/analytics/products?botIds=$BOT_ID&dateFrom=2026-11-01&dateTo=2026-11-30" \ -H "Authorization: Bearer $AMIO_TOKEN"{ "totals": { "impressions": 1234, "clicks": 210, "addToCarts": 35 }, "products": [ { "productKey": "SKU-1", "productId": "SKU-1", "title": "Forum Low", "url": "https://shop.example/product/1", "impressions": 120, "clicks": 30, "addToCarts": 4 } ]}impressionsis the Shown count.productsis sorted byimpressions, thenclicks, highest first.totalscover all products in the filter, not only the returned ones.productIdisnullwhen the feed has no ID.productKeyis then an internal key such asinternal:9f2c4a1b7d3e8a60. It is stable, so you can use it to match the same product between calls, but it is not an ID in your feed.titleandurlare the most recent seen.urlhas theutm_*parameters removed.
GET /analytics/products-csv takes the same parameters except max (sending max returns 422) and returns all products as CSV with the columns Product ID,Title,URL,Shown,Clicks,Added to cart,Click rate. Click rate is clicks divided by shown. The Product ID column is empty for a product without a feed ID.
On both endpoints, a botIds value made only of commas (for example ,,) returns 400.
Endpoint list
Section titled “Endpoint list”GET /bots: list bots.GET /bots/:botId: get a bot including its bot JSON.PATCH /bots/:botId: update bot settings.DELETE /bots/:botId: delete a bot and its data.POST /bots/:botId/clone: clone a bot.POST /bots/:botId/deactivate: deactivate a bot.PUT /bots/:botId/variables: update the variables assigned to a bot.POST /bots/:botId/nlp-provider: set the bot’s NLP provider.GET /bots/:botId/agent-settings: get AI agent settings.PUT /bots/:botId/agent-settings: replace AI agent settings.GET /bots/:botId/bot-email-config: get the bot’s email configuration.PATCH /bots/:botId/bot-email-config: update the email configuration.POST /bots/:botId/email-preview: render an email preview.GET /bot-templates: list starter bot templates.
Answers
Section titled “Answers”GET /bots/:botId/answers: list answers.POST /bots/:botId/answers: create an answer.GET /bots/:botId/answers/:answerId: get an answer.PATCH /bots/:botId/answers/:answerId: update an answer.DELETE /bots/:botId/answers/:answerId: delete an answer.GET /bots/:botId/answers/:answerId/variants: list multi-bot variants of the answer.GET /bots/:botId/answers/:answerId/references: list what the answer references.GET /bots/:botId/answers/:answerId/referenced-conversations: conversations that reference the answer.GET /bots/:botId/answers/:answerId/referenced-variables: variables used by the answer.
Events
Section titled “Events”GET /bots/:botId/events: list events.POST /bots/:botId/events: create an event.GET /bots/:botId/events/:eventId: get an event.PATCH /bots/:botId/events/:eventId: update an event.DELETE /bots/:botId/events/:eventId: delete an event.GET /bots/:botId/events/:eventId/variants: list multi-bot variants.GET /bots/:botId/events/:eventId/referenced-conversations: conversations that reference the event.GET /bots/:botId/events/:eventId/referenced-variables: variables used by the event.
Blocks (templates)
Section titled “Blocks (templates)”GET /bots/:botId/templates: list blocks.POST /bots/:botId/templates: create a block.GET /bots/:botId/templates/:templateId: get a block.PATCH /bots/:botId/templates/:templateId: update a block.DELETE /bots/:botId/templates/:templateId: delete a block.GET /bots/:botId/templates/:templateId/variants: list multi-bot variants.GET /bots/:botId/templates/:templateId/references: list what the block references.GET /bots/:botId/templates/:templateId/referenced-conversations: conversations that use the block.GET /bots/:botId/templates/:templateId/referenced-variables: variables used by the block.
Intents and NLP models
Section titled “Intents and NLP models”GET /intents/:intentId: get an intent.PATCH /intents/:intentId: update an intent.POST /nlp-models: create an NLP model.
Multi-bots
Section titled “Multi-bots”GET /multi-bots: list multi-bots.POST /multi-bots: create a multi-bot.GET /multi-bots/:multiBotId: get a multi-bot.PATCH /multi-bots/:multiBotId: update a multi-bot.DELETE /multi-bots/:multiBotId: delete a multi-bot.POST /multi-bots/:multiBotId/variants: add a variant bot.GET /multi-bots/:multiBotId/variants/:botId/progress: progress of a variant being created.DELETE /multi-bots/:multiBotId/variants/:botId: remove a variant.
Knowledge bases (indexes)
Section titled “Knowledge bases (indexes)”GET /indexes: list knowledge bases.POST /indexes: create a knowledge base.GET /indexes/:indexId: get a knowledge base.PATCH /indexes/:indexId: update a knowledge base.DELETE /indexes/:indexId: delete a knowledge base.GET /indexes/embedding-models: list available embedding models.POST /indexes/:indexId/search: run a test search (queryrequired; optionaltop_n1 to 100,modeofraw,rag, orproducts,language).POST /indexes/:indexId/sources: add a source.PATCH /indexes/:indexId/sources/:sourceId: update a source.DELETE /indexes/:indexId/sources/:sourceId: remove a source.POST /indexes/:indexId/executions: start an indexing run.GET /indexes/:indexId/executions: list runs.GET /indexes/:indexId/executions/:executionId: get a run.
Index groups
Section titled “Index groups”GET /index-groups: list index groups.POST /index-groups: create a group.GET /index-groups/:groupId: get a group.PATCH /index-groups/:groupId: update a group.DELETE /index-groups/:groupId: delete a group.
GET /tools: list tools.POST /tools: create a tool.GET /tools/:toolId: get a tool.PATCH /tools/:toolId: update a tool.DELETE /tools/:toolId: delete a tool.GET /tools/:toolId/references: list where the tool is used.POST /tools/:toolId/test: run a test call of the tool.POST /mcp/detect-auth: find out how an MCP server signs in. Body:url. Amio sends one unauthenticated MCP request to the server, never with credentials, and reads its OAuth metadata when it answers401or403. Returnsauth_type(headers,oauthorclient_credentials, the value to send when you create a connection),requires_auth(falsewhen the server works without credentials) andoauth(null, ordynamic_registrationandclient_credentialsbooleans from the server’s OAuth metadata).oauthis chosen when the server supports dynamic client registration,client_credentialswhen it only supports that grant; otherwiseheaders. Returns 422 with a message if the server cannot be reached or does not answer in time, answers with another status, or the URL is not a public HTTP or HTTPS address. Limited to 30 requests per minute per organization (429 above that).
MCP tools (kind: "mcp") name an MCP connection instead of holding a server of their own. Create the connection first (see MCP connections), then send its id as connection_id on POST /tools (required) and optionally on PATCH /tools/:toolId to switch to another connection of your organization. An unknown connection_id returns 422. Together with name and description, send allowed_tools, the names of the server’s tools to offer to the AI (none by default). url, headers, auth_type, client_credentials and timeout_ms are rejected on an MCP tool: set them on the connection. MCP tool responses have no url, headers, timeout_ms or auth_type. They add:
connection_id: the id of the connection.connection: a summary of it,id,name,urlandauth_type. Forauth_type: "oauth"it also hasoauthwithstatus(not_connected,connectedorneeds_reauth),sign_in_pendingandconnected_by.
GET /tools returns the summary too, so a list shows each tool’s server and sign-in status without more calls. While a connection’s status is needs_reauth, the AI gets none of its tools until it is signed in again.
MCP connections
Section titled “MCP connections”An MCP connection is one MCP server and how Amio signs in to it. It is shared by every MCP tool that names it. Connections are unique by name within an organization.
GET /mcp/connections: list connections. Returns{"connections": [...]}.POST /mcp/connections: create a connection. Returns 201 with the connection.GET /mcp/connections/:connectionId: get a connection.PATCH /mcp/connections/:connectionId: update a connection. Every field is optional. Bots that use a tool on the connection are reloaded.DELETE /mcp/connections/:connectionId: delete a connection and its sign-in. Returns 204. Returns 409 while tools use it, with{"message": "...", "tools": [{"id": "...", "name": "..."}]}listing them. Delete those tools or switch them to another connection first.POST /mcp/connections/:connectionId/tools: connect to the server with the connection’s own sign-in and list the tools it offers. Optional bodybot_id: the bot whose values fill the${variable.name}placeholders in the headers. Returns{"tools": [{"name", "description", "input_schema"}]}. Returns 422 with a short reason if the server cannot be listed.POST /mcp/connections/:connectionId/oauth/connect: start the OAuth sign-in of a connection withauth_type: "oauth"(422 for another type). Needs a signed-in admin user, not an API token (403 otherwise). Returns{"authorization_url": "..."}to open in a popup. It always signs in again, also when the connection is already connected, so it can be used to switch the account; the existing sign-in stays in use until the new one succeeds. After login, the popup returns to the Amio admin. Returns 422 with a short reason if the server does not support OAuth or dynamic client registration. A server that only supports pre-registered OAuth clients can still be used withauth_type: "client_credentials"if it offers that grant.DELETE /mcp/connections/:connectionId/oauth: disconnect the OAuth sign-in of a connection. Returns 204.POST /mcp/oauth/finish: complete an OAuth sign-in. Used by the admin’s sign-in page. Like every endpoint here it needs theAuthorizationheader; it is not a public callback (the provider redirects to the admin, not to the engine). Body:state(required) andcodeorerror(with optionalerror_description). Only the user and organization that started the sign-in can finish it: 403 for anyone else (the sign-in stays open for the real initiator), 422 if it has expired or is unknown, 503 if token storage or OAuth is not configured (encryption key, Redis or admin URL). Returns{"status": "connected", "connection_id": ...}, or{"status": "error", "connection_id": ..., "message": ...}when the provider reported an error. If the code exchange fails it returns 422 with a message, andconnection_idin the error details.POST /mcp/list-tools: probe an MCP server as typed, before you save a connection. Body:url(required),auth_type,headers,client_credentials,timeout_ms,bot_idandconnection_id. For a saved connection, preferPOST /mcp/connections/:connectionId/tools.connection_idlends the saved connection’s OAuth sign-in or stored client secret. Theclient_secretmay be omitted only whenconnection_idis a saved connection that already usesclient_credentials,urlis unchanged andclient_idis the same as the stored one; otherwise it is required (422).
Body of POST /mcp/connections:
| Field | Required | Description |
|---|---|---|
name |
yes | Display name, 1 to 64 characters, unique in the organization. A name that is taken returns 422. |
url |
yes | Public http or https address of the MCP server, up to 2048 characters. |
auth_type |
no | headers (default), oauth or client_credentials. For a server without authentication, use headers with no headers. |
headers |
no | Object of header names and values. Only with auth_type: "headers"; with another type, 422. |
client_credentials |
with client_credentials |
{ "client_id", "client_secret", "scope" }. Only with auth_type: "client_credentials". The secret is required on create. |
timeout_ms |
no | Time limit in milliseconds, 1000 to 60000. Default 10000. |
PATCH takes the same fields, all optional. For client_credentials, the secret is required when you switch to that type or change url; otherwise omit it to keep the stored one. Changing url or auth_type removes the existing OAuth sign-in. An oauth connection is created without a sign-in: call POST /mcp/connections/:connectionId/oauth/connect next.
A connection response has id, name, url, auth_type, headers (null unless auth_type is headers), timeout_ms, created_at, updated_at and tool_count (the tools that use it), plus:
oauth(whenauth_typeisoauth):status(not_connected,connectedorneeds_reauth),sign_in_pending(truewhile an unexpired sign-in is open; a working connection keeps its status meanwhile),connected_by(email),connected_at,last_error.client_credentials(whenauth_typeisclient_credentials):client_id,scope,has_client_secret. The secret and tokens are never returned.
curl -X POST https://chatbot-engine.amio.io/mcp/connections \ -H "Authorization: Bearer $AMIO_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name": "Linear", "url": "https://mcp.example.com/mcp", "auth_type": "headers", "headers": {"Authorization": "Bearer ${variable.mcp_token}"}}'Variables
Section titled “Variables”GET /variables: list variables.POST /variables: create a variable.PATCH /variables/:variableId: update a variable.DELETE /variables/:variableId: delete a variable.GET /variables/:variableId/references: list where the variable is used.
Markets
Section titled “Markets”GET /markets: list markets.POST /markets: create a market.GET /markets/:marketId: get a market.PATCH /markets/:marketId: update a market.DELETE /markets/:marketId: delete a market.
Chat themes
Section titled “Chat themes”GET /chat-themes: list chat themes.POST /chat-themes: create a theme.GET /chat-themes/:chatThemeId: get a theme.PATCH /chat-themes/:chatThemeId: update a theme.DELETE /chat-themes/:chatThemeId: delete a theme.
Analytics
Section titled “Analytics”GET /analytics/request-outcomes: request outcome statistics (gzip-compressed).GET /analytics/user-feedback: user feedback ratings.GET /analytics/bot-stats-csv: bot statistics as CSV.GET /analytics/products: shown, clicks and add-to-cart counts of recommended products, see Product analytics.GET /analytics/products-csv: the same product statistics as CSV.GET /analytics/conversations: list conversations.GET /analytics/conversations/:contactId/history: message history of a conversation.GET /analytics/conversations/:contactId/requests: the individual requests of a conversation.GET /analytics/unknown-topics: the last unknown-topics analysis and its topics, see Unknown topics analysis.POST /analytics/unknown-topics/analyses: start a manual refresh of the unknown-topics analysis.GET /analytics/unknown-topics/topics/:topicId/requests: the questions of one topic.
Integrations
Section titled “Integrations”GET /integrations: list integrations.POST /bots/:botId/integrations: add an integration to a bot.PATCH /bots/:botId/integrations/:integrationId: update an integration.DELETE /bots/:botId/integrations/:integrationId: remove an integration.
Deployments
Section titled “Deployments”GET /deployments: list deployments across the organization.GET /bots/:botId/deployments: list the bot’s deployments.POST /bots/:botId/deployments: create a channel and deploy the bot to it.PUT /bots/:botId/deployments: deploy the bot to an existing channel.DELETE /bots/:botId/deployments: remove a deployment.
Manage the people who can sign in to your organization, see Users. These endpoints need the token of a signed-in user, the one you copy from the admin. An organization API token is rejected with 403.
GET /users: list the users of your organization, sorted by email. Query parameters:page(from 0, default 0) andper_page(1 to 100, default 50). Only the first 1,000 users can be listed: apageandper_pagebeyond that return422. The total is in theX-Total-Countresponse header. Each user hasid,name,email,picture,created_at,last_login(nullif never signed in),email_verifiedandis_current_user.POST /users: add a user and email them a link to set a password (valid for 7 days). Returns201and the user.PATCH /users/:userId: rename a user. Returns the user.DELETE /users/:userId: delete a user. Returns204. You can’t delete yourself.POST /users/:userId/password-reset: email the user a link to set a new password (valid for 7 days). Returns204. At most 3 per user per hour.
A userId has the form <provider>|<id>, for example auth0|64f1c2d3e4f5a6b7c8d9e0f1. URL-encode it in the path (auth0%7C64f1…).
Body of POST /users:
| Field | Type | Notes |
|---|---|---|
name |
string | Required. 1 to 100 characters. Can’t contain a link or a web address. |
email |
string | Required. A valid email address, up to 254 characters. Stored in lowercase. |
Body of PATCH /users/:userId: name, same rules as above. No other fields are accepted.
curl -X POST https://chatbot-engine.amio.io/users \ -H "Authorization: Bearer $AMIO_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name": "Jana Novak", "email": "jana.novak@example.com"}'Errors:
| Status | Meaning |
|---|---|
403 |
An organization API token was used, or you tried to delete yourself. |
404 |
The user doesn’t exist in your organization. |
422 |
Validation failed, for example an invalid email or user ID, a name with a link, a page beyond the first 1,000 users, or a user with this email already exists. |
429 |
More than 5 users were added to your organization in 24 hours, more than 3 password resets were sent to this user in an hour, or the user service is busy. The message says which. |
502 |
The user service failed. Try again later. |
503 |
User management isn’t set up for this environment. Retrying won’t help. |
These endpoints manage the users of organizations that build bots in the admin. Organizations that use only the Amio messaging API keep managing their users in app.amio.io.
POST /files/upload: upload a file (multipart) and get back its URL.
POST /utils/test-api-call: test an external API call configuration.GET /utils/preview-xml-feed: preview an XML product feed.POST /utils/site-identity: analyze a website’s identity (name, colors) for onboarding.POST /utils/bug-report: submit a bug report.GET /utils/plain-chat-identity: identity for the support chat in the admin.GET /utils/plain-chat-unread: unread count for the support chat.POST /utils/daktela-email-details: look up Daktela email details.