Build with APEX API

Programmatically create, deploy, and manage AI agents. Integrate APEX into your workflows with our RESTful API.

Quick Start

Terminal
# List your agents
curl -H "Authorization: Bearer apex_live_YOUR_KEY" \
https://your-domain.com/api/v1/agents
# Create an agent
curl -X POST -H "Authorization: Bearer apex_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Sales Bot","role":"sales","description":"Outbound sales agent"}' \
https://your-domain.com/api/v1/agents
# Run an agent
curl -X POST -H "Authorization: Bearer apex_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"goal":"Generate 10 leads for SaaS product"}' \
https://your-domain.com/api/v1/agents/AGENT_ID/run

Authentication

All API requests require a valid API key passed in the Authorization header:

Authorization: Bearer apex_live_your_api_key_here

Generate keys from the API Keys settings page. Each key can have custom permissions and rate limits.

Endpoint Reference

MethodEndpointDescriptionAuth
GET/api/v1/agentsList workspace agents (paginated, filterable)Required
POST/api/v1/agentsCreate a new agentRequired
GET/api/v1/agents/:idGet agent detailsRequired
PATCH/api/v1/agents/:idUpdate an agentRequired
DELETE/api/v1/agents/:idDelete an agentRequired
POST/api/v1/agents/:id/runStart agent with a goal/taskRequired
POST/api/v1/agents/:id/chatSend message, get responseRequired
GET/api/v1/marketplaceSearch marketplace listingsRequired
POST/api/v1/marketplace/:id/installInstall a marketplace agentRequired
GET/api/v1/eventsStream events (SSE) or list eventsRequired
POST/api/v1/eventsCreate a custom eventRequired
GET/api/v1/webhooksList webhooksRequired
POST/api/v1/webhooksCreate a webhookRequired

Rate Limits

Rate limits are applied per API key and can be configured when creating a key.

60 req/min
Default
Standard tier
300 req/min
Pro
Pro plan keys
600 req/min
Enterprise
Enterprise keys

Rate limit information is included in every response:

X-RateLimit-Limit: 60
X-RateLimit-Remaining: 58
X-RateLimit-Reset: 1712035200

When rate limited, the API returns 429 Too Many Requests with a Retry-After header.

SDKs

Python

pip install apex-sdk

JavaScript / TypeScript

npm install @apex-ai/sdk

REST API

curl -H 'Authorization: Bearer ...'

Ready to start building?

Generate an API key and deploy your first agent in minutes.

Get Your API Key