curl --request POST \
--url 'https://response.stateset.com/api/v1/agents' \
--header "Authorization: Bearer $RESPONSECX_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"name": "Two-Person Tent",
"type": "standard",
"description": "Two-person tent, green — replacement for damaged pole set.",
"instructions": "Two-person tent, green — replacement for damaged pole set.",
"goal": "string",
"role": "string",
"activated": true
}'
{
"object": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Two-Person Tent",
"type": "standard",
"description": "Two-person tent, green — replacement for damaged pole set.",
"activated": true,
"goal": "string",
"role": "string",
"updated_at": "2026-08-31T14:22:05Z",
"instructions": "Two-person tent, green — replacement for damaged pole set.",
"settings": {
"object": "string",
"configured": true
}
}
Create an agent
The created agent
POST
/
api
/
v1
/
agents
curl --request POST \
--url 'https://response.stateset.com/api/v1/agents' \
--header "Authorization: Bearer $RESPONSECX_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"name": "Two-Person Tent",
"type": "standard",
"description": "Two-person tent, green — replacement for damaged pole set.",
"instructions": "Two-person tent, green — replacement for damaged pole set.",
"goal": "string",
"role": "string",
"activated": true
}'
{
"object": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Two-Person Tent",
"type": "standard",
"description": "Two-person tent, green — replacement for damaged pole set.",
"activated": true,
"goal": "string",
"role": "string",
"updated_at": "2026-08-31T14:22:05Z",
"instructions": "Two-person tent, green — replacement for damaged pole set.",
"settings": {
"object": "string",
"configured": true
}
}
Request body
CreateAgent
string
required
string
required
One of: assistant, customer_service, sales.
string
string
The system prompt / persona.
string
string
boolean
Response
Agent
string
string
string,null
string,null
string,null
boolean
string,null
string,null
string,null
string,null
Present on single-agent reads and writes only.
AgentSettingsOut
Status codes
| Code | Meaning |
|---|---|
201 | The created agent |
400 | Invalid request. issues names the offending field(s). |
401 | Missing, invalid, or expired API key. |
403 | The key lacks a required scope. |
409 | Conflict — either the creation ceiling was reached for this organization (agent_limit_reached), or a request with the same Idempotency-Key is still in flight (idempotency_in_progress); retry the latter after the first attempt settles. |
422 | The Idempotency-Key was already used with a DIFFERENT request body (idempotency_key_reused). Reuse a key only to retry the identical request. |
429 | Rate limit exceeded. |
Access
| Required scope | agents:write |
| Rate limit | 30 requests per minute |
curl --request POST \
--url 'https://response.stateset.com/api/v1/agents' \
--header "Authorization: Bearer $RESPONSECX_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"name": "Two-Person Tent",
"type": "standard",
"description": "Two-person tent, green — replacement for damaged pole set.",
"instructions": "Two-person tent, green — replacement for damaged pole set.",
"goal": "string",
"role": "string",
"activated": true
}'
{
"object": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Two-Person Tent",
"type": "standard",
"description": "Two-person tent, green — replacement for damaged pole set.",
"activated": true,
"goal": "string",
"role": "string",
"updated_at": "2026-08-31T14:22:05Z",
"instructions": "Two-person tent, green — replacement for damaged pole set.",
"settings": {
"object": "string",
"configured": true
}
}
Last modified on August 31, 2026