POST
/
api
/
trpc
/
agent.create

Create Agent

Create a new AI agent with specified provider and model type.

Headers

IRIS_ACCESS_TOKEN
string
required

Your Iris API access token

Body

data
object
required

Response

Returns the created agent details upon success.

Response Fields

id
string

Unique identifier for the created agent

provider
string

The AI provider being used

modelType
string

The type of model created

numAgents
number

Number of agents (defaults to 0)

isActive
boolean

Whether the agent is active

organizationId
string

The organization ID associated with the agent

createdAt
date

Timestamp of when the agent was created

updatedAt
date

Timestamp of when the agent was last updated