Skip to main content
POST
/
api
/
agents
/
{id}
/
test
Test agent (playground)
curl --request POST \
  --url http://localhost:3000/api/agents/{id}/test \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": "Hello, who are you?"
}
'
{
  "response": "<string>",
  "usage": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Agent ID

Body

application/json
message
string
required

Test message

Required string length: 1 - 10000
Example:

"Hello, who are you?"

Response

Agent response

response
string
required

Agent response text

usage
object

Token usage