跳到正文
GrowSocmed文档Social media command center
API 参考AI agents

Create an agent

POST
/agents

Authorization

apiKey
headerAuthorizationBearer <token>

API key from Developer → API keys (gs_…). An unbound key takes the workspace from the X-Workspace header.

Request Body

application/json
  1. body
name*string
Length1 <= length <= 60
instructions?string
Lengthlength <= 8000
Default""
model?|
Lengthlength <= 120
knowledge_ids?array<>
Itemsitems <= 100
Default[]
handoff?
Default
{  "keywords": [],  "upset": true,  "unknown": true}
disclosure?boolean
Defaulttrue

Response Body

Created

response?unknownapplication/json
Example Request
curl -X POST 'https://socmed.growpaces.com/api/v1/agents' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response201
null