satya@web:
~/docs/devh-api
$
/

DEVH API Documentation

Welcome to the DEVH API Gateway documentation. This gateway provides a unified interface for various microservices.

Base URL

https://api.devh.in/v1

Authentication

All API requests require an API key passed in the header:

curl -H "X-API-Key: your_api_key" \
  https://api.devh.in/v1/endpoint

Endpoints

Health Check

GET /health

Response:

{
  "status": "healthy",
  "version": "1.0.0",
  "timestamp": "2026-02-03T19:00:00Z"
}

Image Optimization

POST /images/optimize
Content-Type: multipart/form-data
ParameterTypeDescription
fileFileImage file to optimize
qualityNumberQuality (1-100), default: 80
formatStringOutput format: webp, avif, jpeg

Error Codes

CodeDescription
400Bad Request
401Unauthorized
429Rate Limited
500Server Error

SDKs

Coming soon: TypeScript, Python, and Go SDKs.