🚀⚡ New: Auto-detection for idle RDS, EBS, and snapshot waste! See what's new →

API Reference

v1.0

Complete REST API documentation for DevControl. Build powerful integrations with your existing tools and workflows.

Fast & Reliable

99.9% uptime SLA with response times under 100ms

Secure by Default

Requests use your access token and are limited to your organization and role

RESTful Design

Intuitive endpoints following REST best practices

Base URL
https://api.getdevcontrol.com

All API requests should be made to this base URL. Append the endpoint path to construct the full URL.

Authentication

Access Token Authentication
All API requests require authentication using a Bearer token in the Authorization header: the access token you get by signing in (POST /api/auth/login returns it as data.accessToken). It is valid for 7 days.
curl -X GET https://api.getdevcontrol.com/api/services \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json"

Best Practices

  • • Store access tokens securely (environment variables)
  • • Sign in again when a token expires (after 7 days)
  • • Requests act as you, with your organization and role

Important

  • • Never commit tokens to version control
  • • Don't expose tokens in client-side code
  • • Treat a token like your password: anyone holding it can act as you
Rate Limiting
API requests are rate limited to ensure service quality for all users.
1,000
requests/hour
Free Plan
10,000
requests/hour
Pro Plan
100,000
requests/hour
Enterprise

Rate Limit Headers

X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1642348800

API Endpoints

4 methods
Services API
Create, update, and manage services in your catalog
/api/services
GETPOSTPUTDELETE
  • GET/api/services
    List discovered resources
    Retrieve the discovered AWS resources in your organization
  • GET/api/services/registered
    List registered services
    Retrieve the services registered in your catalog
  • POST/api/services
    Create a service
    Register a new service in the catalog (organization owners and admins)
2 methods
Deployments API
Track and record deployment events
/v1/deployments
GETPOST
  • POST/v1/deployments
    Record deployment
    Track a new deployment event
  • GET/v1/deployments
    Get deployment history
    Retrieve deployment history
2 methods
Infrastructure API
Query and manage AWS resources
/v1/resources
GETPUT
  • GET/v1/resources
    List resources
    Get all discovered AWS resources
  • PUT/v1/resources/:id
    Update resource tags
    Update metadata for a resource
4 methods
Teams API
Manage teams and memberships
/v1/teams
GETPOSTPUTDELETE
  • GET/v1/teams
    List teams
    Get all teams in your organization
  • POST/v1/teams
    Create team
    Create a new team
1 methods
Metrics API
Access DORA metrics and performance data
/v1/metrics
GET
  • GET/v1/metrics/dora
    Get DORA metrics
    Retrieve DORA metrics for your services
  • GET/v1/metrics/costs
    Get cost metrics
    Access cost and spend data
4 methods
Webhooks API
Configure webhooks for event notifications
/v1/webhooks
GETPOSTPUTDELETE
  • POST/v1/webhooks
    Create webhook
    Register a new webhook endpoint
  • POST/v1/webhooks/:id/test
    Test webhook
    Send a test event to webhook

Example: Create a Service

POSTRequest Body
Create a new service in your catalog. Organization owners and admins only. name, template (api, frontend, worker or database) and owner (an email) are required; team_id (one of your organization's teams), github_url and description are optional.
{
  "name": "payment-service",
  "template": "api",
  "owner": "owner@example.com",
  "team_id": "00000000-0000-4000-8000-000000000000",
  "github_url": "https://github.com/example-org/payment-service",
  "description": "Handles payment processing"
}
201Response
Successful service creation response
{
  "success": true,
  "data": {
    "id": "00000000-0000-4000-8000-000000000001",
    "name": "payment-service",
    "template": "api",
    "owner": "owner@example.com",
    "team_id": "00000000-0000-4000-8000-000000000000",
    "github_url": "https://github.com/example-org/payment-service",
    "status": "active",
    "description": "Handles payment processing",
    "metadata": {},
    "organization_id": "00000000-0000-4000-8000-000000000002",
    "created_at": "2026-01-15T10:30:00.000Z",
    "updated_at": "2026-01-15T10:30:00.000Z"
  },
  "message": "Service created successfully"
}

Error Handling

HTTP Status Codes
The API uses conventional HTTP status codes to indicate success or failure
200
OK
Request succeeded
201
Created
Resource created successfully
400
Bad Request
Invalid request parameters
401
Unauthorized
Missing, invalid or expired access token
403
Forbidden
Insufficient permissions
404
Not Found
Resource doesn't exist
429
Too Many Requests
Rate limit exceeded
500
Internal Server Error
Server-side error occurred
Error Response Format
All errors return a consistent JSON structure
{
  "success": false,
  "error": "Validation failed",
  "details": "name: Service name is required"
}

Webhooks

Event Notifications
Receive real-time notifications when events occur in your DevControl account

Available Events

deployment.completed
deployment.failed
service.created
service.updated
alert.triggered
cost.threshold_exceeded
security.issue_detected
resource.discovered

Webhook Payload Example

{
  "event": "deployment.completed",
  "timestamp": "2024-01-15T10:30:00Z",
  "data": {
    "deployment_id": "dep_5f6g7h8i",
    "service": "payment-service",
    "environment": "production",
    "status": "success",
    "duration_seconds": 120
  }
}
Configure Webhooks

SDKs & Libraries

Node.js SDK
Official JavaScript/TypeScript library
npm install @devcontrol/sdkView Docs(coming soon)
Python SDK
Official Python client library
pip install devcontrolView Docs(coming soon)
CLI Tool
Command-line interface for DevControl
npm install -g @devcontrol/cliView Docs

Frequently Asked Questions

Need Help with Integration?

Our team is here to help you build powerful integrations. Get in touch for technical support, custom solutions, or partnership opportunities.