API Reference
v1.0Complete 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.comAll 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 Plan10,000
requests/hour
Pro Plan100,000
requests/hour
EnterpriseRate 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/servicesGETPOSTPUTDELETE
- GET
/api/servicesList discovered resourcesRetrieve the discovered AWS resources in your organization - GET
/api/services/registeredList registered servicesRetrieve the services registered in your catalog - POST
/api/servicesCreate a serviceRegister a new service in the catalog (organization owners and admins)
2 methods
Deployments API
Track and record deployment events
/v1/deploymentsGETPOST
- POST
/v1/deploymentsRecord deploymentTrack a new deployment event - GET
/v1/deploymentsGet deployment historyRetrieve deployment history
2 methods
Infrastructure API
Query and manage AWS resources
/v1/resourcesGETPUT
- GET
/v1/resourcesList resourcesGet all discovered AWS resources - PUT
/v1/resources/:idUpdate resource tagsUpdate metadata for a resource
4 methods
Teams API
Manage teams and memberships
/v1/teamsGETPOSTPUTDELETE
- GET
/v1/teamsList teamsGet all teams in your organization - POST
/v1/teamsCreate teamCreate a new team
1 methods
Metrics API
Access DORA metrics and performance data
/v1/metricsGET
- GET
/v1/metrics/doraGet DORA metricsRetrieve DORA metrics for your services - GET
/v1/metrics/costsGet cost metricsAccess cost and spend data
4 methods
Webhooks API
Configure webhooks for event notifications
/v1/webhooksGETPOSTPUTDELETE
- POST
/v1/webhooksCreate webhookRegister a new webhook endpoint - POST
/v1/webhooks/:id/testTest webhookSend 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.completeddeployment.failedservice.createdservice.updatedalert.triggeredcost.threshold_exceededsecurity.issue_detectedresource.discoveredWebhook 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
}
}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 DocsFrequently 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.