AutoAgent API Documentation
Complete API reference for integrating with AutoAgent's AI-powered development pipeline.
Getting Started
Base URL
https://api.autoagent.aiQuick Start
- Sign up at app.autoagent.ai
- Get your API token from the dashboard
- Configure your API keys (GitHub, Jira, etc.)
- Start making API calls
Example Request
curl -X GET "https://api.autoagent.ai/api/projects" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"Authentication
AutoAgent uses Auth0 JWT tokens for authentication. All API requests must include a valid Bearer token in the Authorization header.
Getting Your Token
Tokens are automatically generated when you sign in to the AutoAgent dashboard. For programmatic access, use the Auth0 Machine-to-Machine flow.
Using the Token
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIs...Security: Never expose your API tokens in client-side code. Always make API calls from your backend servers.
API Reference
/api/keys/typesAUTH REQUIREDGet available BYOK key types
/api/keysAUTH REQUIREDAdd a new API key
/api/projectsAUTH REQUIREDList user projects
/api/workflows/triggerAUTH REQUIREDTrigger a workflow execution
/api/metrics/usageAUTH REQUIREDGet usage statistics
BYOK (Bring Your Own Keys)
AutoAgent supports BYOK for maximum security and control. Manage your API keys for GitHub, Jira, OpenAI, and other services through our secure key management system.
Supported Key Types
- GitHub Token - Repository access and PR creation
- Jira API Token - Ticket management and updates
- OpenAI API Key - AI code generation
- Slack Webhook - Team notifications
- And more...
Adding a Key
curl -X POST "https://api.autoagent.ai/api/keys" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"keyType": "github_token",
"apiKey": "ghp_xxxxxxxxxxxxxxxxxxxx"
}'Workflows
AutoAgent workflows automatically convert Jira tickets into production-ready code. Trigger workflows programmatically or let them run automatically.
Triggering a Workflow
curl -X POST "https://api.autoagent.ai/api/workflows/trigger" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"projectId": "proj_123",
"ticketId": "PROJ-456",
"priority": "high"
}'Response
{
"success": true,
"workflowId": "wf_789",
"status": "queued",
"estimatedDuration": "5-10 minutes"
}