Developer Portal Service — API Contracts
Version: 1.0 Status: Draft Owner: Product + Developer Relations (DevRel) Last Updated: 2026-04-20
1. Intent
Define every REST endpoint exposed by the Developer Portal Service: path, method, auth, headers, request and response schemas, error codes, and pagination. Includes the Verify API contract — the most heavily-used endpoints in this service.
2. Conventions
- Base URL (production):
https://api.ghasi.af - Base URL (sandbox):
https://api-sandbox.ghasi.af - Auth:
Authorization: Bearer <apiKey>(validated byapi-gatewayviaauth-service) - Versioning: URL-path (
/v1) - Errors:
{ code, message, requestId }
3. Key Management Endpoints
POST /devportal/v1/keys— TBDGET /devportal/v1/keys— TBDDELETE /devportal/v1/keys/{keyId}— TBDPOST /devportal/v1/keys/{keyId}/rotate— TBD
4. Verify API Endpoints
POST /v1/verify/sms— TBDPOST /v1/verify/voice— TBDPOST /v1/verify/whatsapp— TBDPOST /v1/verify(multi-channel cascade) — TBDPOST /v1/verify/check— TBDGET /v1/verify/{verificationId}— TBD
5. Snippet Generator
GET /devportal/v1/snippets/{operationId}?lang={lang}— TBD
6. Consumption Analytics
GET /devportal/v1/keys/{keyId}/consumption?range=...&granularity=...— TBDGET /devportal/v1/keys/{keyId}/consumption.csv— TBD
7. SDK Release Surface
GET /openapi/v1.json//openapi/v1.yaml— TBDGET /postman/v1.M.P/collection.json— TBDGET /sdk/{lang}/latest— TBD
8. Error Codes
- TBD