Create Agent
Create a new agent with custom configuration and personality.
Endpoint
POST https://api.irisos.xyz/v1/agentsAuthentication
This endpoint requires an API key. Include it in the request headers:
Authorization: Bearer YOUR_API_KEYRequest Body
name
string
Yes
The name of the agent
bio
array
No
Array of biographical statements about the agent
personality
object
No
Personality traits and communication style
knowledge
array
No
Areas of expertise and knowledge
goals
array
No
Agent's objectives and motivations
clients
array
No
Platform integrations (discord, twitter, telegram, etc.)
settings
object
No
Platform-specific configuration
modelProvider
string
No
AI model provider (openai, anthropic, etc.)
model
string
No
Specific model to use (gpt-4, claude-3-opus, etc.)
plugins
array
No
Array of plugin configurations
Example Request Body
Response
Success Response (201 Created)
Error Response (400 Bad Request)
Error Response (401 Unauthorized)
Example Request
cURL
JavaScript (Node.js)
Python
Response Fields
success
boolean
Indicates if the request was successful
data.id
string
Unique identifier for the created agent
data.name
string
Name of the agent
data.status
string
Current status of the agent (active, inactive, error)
data.createdAt
string
ISO 8601 timestamp of agent creation
data.apiEndpoint
string
API endpoint for interacting with this agent
Rate Limits
Rate Limit: 10 requests per minute
Quota: 100 agents per account
Rate limit headers are included in the response:
X-RateLimit-Limit: Maximum requests per minuteX-RateLimit-Remaining: Remaining requests in current windowX-RateLimit-Reset: Timestamp when the rate limit resets
Best Practices
Use descriptive names: Choose clear, unique names for your agents
Define personality clearly: Well-defined personalities lead to consistent behavior
Start with fewer plugins: Add plugins incrementally and test thoroughly
Set appropriate rate limits: Configure platform-specific rate limits to avoid API restrictions
Store agent IDs securely: Save the returned agent ID for future API calls
Related Endpoints
Need Help?
Last updated