Skip to main content
POST
Create a new agent

Overview

Create a new voice agent within your organization. The agent is initialized with sensible defaults that match the configuration applied when creating an agent through the Inya dashboard. You can then update any setting via the Update Agent endpoint.

Required Permission

agents

Request Body

Default Configuration

The created agent inherits the following default configuration: barge-in enabled, TTS caching enabled, LLM temperature 0.5, max tokens 300, and language derived from the selected region.

Example cURL

Response

Success (201)

Error Responses

403 Forbidden - Insufficient permissions (QA role)
409 Conflict - Agent name already exists

Use Cases

  • Setting up a new customer support agent
  • Creating region-specific agents for different markets
  • Deploying separate agents for different departments or products
Use the Get Regions, Get Timezones, and Get Languages config endpoints to discover valid values for region and timeZone before creating an agent.
Save the requestId from every response. You will need it if you contact Inya support to trace a specific request.

Authorizations

x-api-key
string
header
required

API key with 'agents' permission

Body

application/json
botName
string
required
Example:

"Support Agent"

description
string
Example:

"Handles inbound customer support calls."

region
enum<string>
default:asia
Available options:
asia,
america,
europe
Example:

"asia"

timeZone
string
default:Asia/Kolkata
Example:

"Asia/Kolkata"

Response

Agent created successfully

status
string
Example:

"success"

requestId
string
Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

message
string
response
object