📚 API Documentation

Integrate Automator.live into your applications using our REST API.

Authentication

All API endpoints (except register/login) require a JWT token. Include it in the Authorization header:

Authorization: Bearer YOUR_JWT_TOKEN

Base URL

https://automator.live/api

Endpoints

POST /api/register

Create a new user account

{
  "email": "user@example.com",
  "password": "password123",
  "name": "John Doe"
}
POST /api/login

Login and get JWT token

{
  "email": "user@example.com",
  "password": "password123"
}
GET /api/me

Get current user info and usage

{
  "id": "user-id",
  "email": "user@example.com",
  "subscription": { "tier": "free", "status": "active" },
  "usage": { "tasksThisMonth": 5, "limit": 10 }
}
GET /api/automations

List all your automations

POST /api/automations

Create a new automation

{
  "name": "My Automation",
  "trigger_type": "webhook",
  "action_type": "http",
  "config": {
    "action": {
      "url": "https://example.com/webhook",
      "method": "POST"
    }
  }
}
POST /api/webhook/:id

Trigger an automation webhook. Replace :id with your automation ID.

curl -X POST https://automator.live/api/webhook/YOUR-AUTO-ID \
  -H "Content-Type: application/json" \
  -d '{"data": "your payload"}'
DELETE /api/automations/:id

Delete an automation

Example: Using with cURL

# Login
TOKEN=$(curl -s -X POST https://automator.live/api/login \
  -H "Content-Type: application/json" \
  -d '{email:you@example.com,password:pass}' | jq -r '.token')

# Get your automations
curl -H "Authorization: Bearer $TOKEN" https://automator.live/api/automations

# Trigger a webhook
curl -X POST https://automator.live/api/webhook/AUTO-ID \
  -H "Content-Type: application/json" \
  -d '{message:Hello!}'
Go to Dashboard →