API Reference
Access Elekgkia's developer API and integrate with our intelligent automation platform. Use the following endpoints to manage resources, workflows, and analytics.
Authentication
API Key Setup
All requests require a Bearer token with an API key from your Elekgkia account.
# Example Request
Authorization: Bearer YOUR_API_KEY
Endpoints
1. Build Management
POST /api/builds
Create and manage CI/CD pipelines
{
"pipeline": "main",
"branch": "develop",
"environment": "staging"
}
Returns build status and logs via webhooks
2. Code Analysis
GET /api/analytics
Access code quality metrics and suggestions
{
"code_coverage": 82.4,
"complexity": "medium",
"suggestions": [...]
}
Data Models
Project
{
"id": "string",
"name": "string",
"created_at": "datetime",
"builds": "array"
}
Build Status
{
"status": "success|failure|pending",
"duration": "integer",
"logs": "array"
}
Error Handling
Common Error Codes
- 401 Invalid or missing API key
- 404 Resource not found
- 429 Rate limit exceeded