AutoAgent API Documentation

Complete API reference for integrating with AutoAgent's AI-powered development pipeline.

Getting Started

Base URL

https://api.autoagent.ai

Quick Start

  1. Sign up at app.autoagent.ai
  2. Get your API token from the dashboard
  3. Configure your API keys (GitHub, Jira, etc.)
  4. 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

GET/api/keys/typesAUTH REQUIRED

Get available BYOK key types

POST/api/keysAUTH REQUIRED

Add a new API key

GET/api/projectsAUTH REQUIRED

List user projects

POST/api/workflows/triggerAUTH REQUIRED

Trigger a workflow execution

GET/api/metrics/usageAUTH REQUIRED

Get 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"
}