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

Switch an agent on or off

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

active means the agent starts answering real DMs and story replies in the workspace's name. It answers only messages that arrive after it was switched on. One channel can belong to one active agent. 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
status*string
Value in"active""paused"

Response Body

The new status.

application/json
  1. response
data?
curl -X POST 'https://api.eksis.io/v1/ai-agents/string/status' \  -H 'Authorization: Bearer eksis_sk_...' \  -H 'Content-Type: application/json' \  -d '{  "status": "active"}'
{  "data": {    "id": "string",    "name": "string",    "status": "draft",    "enabledAt": "2019-08-24T14:15:22Z"  }}