POST
/
v1
/
agents
curl --location --request POST 'https://api.stateset.com/v1/agents' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
    "id": "em_1NXWPnCo6bFb1KQto6C8OWvE",
    "agent_name": "Example Name",
    "agent_type": "string",
    "value": "Example Value",
    "max_value": 100,
    "min_value": 10,
    "category": "Example Category",
    "description": "This is a sample agent for demonstration.",
    "modifiable": true,
    "impact": "High"
}'
{
  "agent_name": "<string>",
  "agent_type": "<string>",
  "description": "<string>",
  "activated": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>",
  "org_id": "<string>",
  "voice_model": "<string>",
  "voice_model_id": "<string>"
}

Body

agent_name
string

The name of the agent to be created.

agent_type
string

The type of the agent (e.g., string, number, boolean).

description
string

A brief description of the agent.

activated
string

The activation status of the agent.

created_at
string

The date and time the agent was created.

updated_at
string

The date and time the agent was last updated.

org_id
string

The organization ID to which the agent belongs.

voice_model
string

The voice model associated with the agent.

voice_model_id
string

The voice model ID associated with the agent.

Response

agent_name
string

The name of the created agent.

agent_type
string

The type of the created agent.

description
string

The description of the created agent.

activated
string

The activation status of the created agent.

created_at
string

The date and time the agent was created.

updated_at
string

The date and time the agent was last updated.

org_id
string

The organization ID to which the agent belongs.

voice_model
string

The voice model associated with the agent.

voice_model_id
string

The voice model ID associated with the agent.

curl --location --request POST 'https://api.stateset.com/v1/agents' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
    "id": "em_1NXWPnCo6bFb1KQto6C8OWvE",
    "agent_name": "Example Name",
    "agent_type": "string",
    "value": "Example Value",
    "max_value": 100,
    "min_value": 10,
    "category": "Example Category",
    "description": "This is a sample agent for demonstration.",
    "modifiable": true,
    "impact": "High"
}'