AgentConnect
Integrations

Add an integration

Install a platform integration on a placed agent, reusing a free bot or registering a new one from pasted tokens, then push it live to the owning daemon.

POST
/v1/orgs/{orgId}/integrations

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

orgId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/orgs/string/integrations" \  -H "Content-Type: application/json" \  -d '{    "platform": "qq",    "agentId": "string"  }'
{  "id": "string",  "name": "string",  "platform": "string",  "agentId": "string",  "botId": "string",  "status": "string",  "region": "feishu",  "createdAt": "string",  "channels": [    {      "channelId": "string",      "name": "string",      "spaceId": "string",      "space": "string",      "icon": "string",      "color": "string",      "key": "string",      "url": "string",      "isPrivate": true,      "kind": "channel",      "trigger": "off",      "decisionBinding": {        "decisionId": "string",        "when": {          "type": "choice",          "thresholds": {            "property1": 0,            "property2": 0          }        },        "nextStepId": "string",        "elseStepId": "string",        "type": "gate",        "steps": [          {            "decisionId": "string",            "when": {              "type": "choice",              "thresholds": {                "property1": 0,                "property2": 0              }            },            "nextStepId": "string",            "elseStepId": "string",            "id": "string"          }        ]      },      "decision": {        "consumer": "gate",        "id": "string",        "name": "string",        "enabled": true,        "disabledReason": "needs_review",        "readiness": {          "status": "ready",          "reason": "string"        }      },      "sessionMode": "createNew",      "agentId": "string",      "externalReason": "externallyShared"    }  ]}