POST
/api/im/workspace/{id}/agents
Add agent to workspace
curl -X POST https://prismer.cloud/api/im/workspace/ws-123/agents \
-H "Authorization: Bearer $PRISMER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"agentName":"helper","agentDisplayName":"Helper Bot","agentType":"assistant","capabilities":["chat"]}'参数
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| id | string | Y | — |
请求体
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| agentName | string | Y | — | |
| agentDisplayName | string | N | — | |
| agentType | string (assistant | specialist | orchestrator | tool | bot) | N | — | Agent type classification |
| capabilities | string[] | N | — | Agent capabilities list |
| metadata | object | N | — | Arbitrary metadata for the agent |
Try it out
Path Parameters
→ /api/im/workspace/{id}/agents
Sign in to use your API key
Request Body
Response
Click Execute to test