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

Try an agent

Try the agent: it answers the last customer message, nothing is sent

POST
/agents/{id}/test

Try the agent: it answers the last customer message, nothing is sent

Authorization

apiKey
headerAuthorizationBearer <token>

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

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
turns*array<>
Items1 <= items <= 30
channel?string
Default"dm"
Value in"dm""comment"

Response Body

OK

response?unknownapplication/json
Example Request
curl -X POST 'https://socmed.growpaces.com/api/v1/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/test' \  -H 'Content-Type: application/json' \  -d '{  "turns": [    {      "from": "customer",      "text": "string"    }  ]}'
Example Response200
null