The API reference moved here from eksis.io/developers.
AI Agents

Try an agent

POST
/v1/ai-agents/{agentId}/test

Answers one made-up message with the saved settings and says what the agent would do. Sends nothing and uses one AI credit. Needs the admin role. Needs AI Agent on the workspace's account; without it the endpoint answers 404 feature.unavailable.

Authorization

headerAuthorizationBearer <token>

Send your key as Authorization: Bearer eksis_sk_....

Path Parameters

agentId*string

Request Body

application/json
  1. body
channelId*string
source?string
Default"dm"
Value in"dm""story"
message*string
Length1 <= length <= 1000

Response Body

What the agent would do.

application/json
  1. response
data?
curl -X POST 'https://api.eksis.io/v1/ai-agents/string/test' \  -H 'Authorization: Bearer eksis_sk_...' \  -H 'Content-Type: application/json' \  -d '{  "channelId": "string",  "message": "string"}'
{  "data": {    "action": "reply_comment",    "intent": "price",    "confidence": 0,    "dm": {      "text": "string",      "button": {        "label": "string",        "url": "string"      }    },    "followAsk": {      "text": "string",      "buttonLabel": "string"    },    "outcome": "send",    "problems": [      "string"    ],    "reason": "string",    "handoffReason": "string",    "knowledgeUsed": [      {        "id": "string",        "title": "string"      }    ]  }}