Files
geointel/contracts/api/response-envelope.md
T
Codex 6ea3586a3e
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled
Initial GeoIntel V1 foundation
2026-06-16 23:36:32 +02:00

54 lines
624 B
Markdown

# API Response and Error Contract
## Standard error
All API errors must use:
```json
{
"error": {
"code": "STRING_CODE",
"message": "Human readable message.",
"details": {}
}
}
```
## Job response
Long-running operations return:
```json
{
"job_id": "uuid",
"analysis_run_id": "uuid",
"status": "queued",
"status_url": "/analysis-runs/{id}"
}
```
## Resource metadata
Resources should include:
```json
{
"id": "uuid",
"created_at": "ISO-8601",
"updated_at": "ISO-8601"
}
```
## Pagination
List endpoints use:
```json
{
"items": [],
"total": 0,
"limit": 50,
"offset": 0
}
```