API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Concept

Platform guarantees

Reading time · 8 minUpdated · 1 May 2026

This page summarizes the contracts you can rely on when building against the API. They are identical across all modules.

1. Authentication — sessions

Sign-in creates a session that is issued as an HTTP-only cookie.

  • Sign-in: POST /api/auth/sign-in/email
  • Sign-out: POST /api/auth/sign-out
  • Cookie sessions need a second factor, otherwise 403 (2fa-required).
  • For integrations, API keys (Authorization: Bearer …) are the recommended path — see Auth & sessions and Limits.

2. Tenant context — X-Tenant-Id

Every call to /api/v1/... needs the header. Learn more under Multi-tenancy.

3. Idempotency for POST — X-Idempotency-Key

POST requests that trigger the creation of an entity accept an X-Idempotency-Key header. Repeated requests with the same key + body return the same response without creating a second entity. Recommendation: a UUIDv4 per logical operation.

4. Error format — RFC 7807

All error responses follow RFC 7807. The schema:

{
  "type": "https://codemeta-os.de/probs/<slug>",
  "title": "Short description",
  "status": 422,
  "detail": "Optional longer text.",
  "errors": [{ "path": "/email", "message": "Required field" }]
}

type is a stable URI – the right place for code switches in your client. title is human-readable and may change. errors[] is optional and only set for validation errors (422).

5. Pagination

List endpoints always return a page, never the complete dataset. The page is in data, the paging information in meta. Paging is done via either offset or cursor:

curl "https://os.codemeta.de/api/v1/tickets?limit=50&offset=100" \
  -H "X-Tenant-Id: $TENANT" \
  -b cookies.txt

The response:

{
  "data": [ … ],
  "meta": {
    "nextCursor": "0192f2c0-…",
    "hasMore": true,
    "limit": 50
  }
}

limit is capped at 200 and silently clamped beyond that. We return an exact hit count (meta.total) only on request with ?withTotal=true. Details, pitfalls and a full traversal are in Pagination.

6. IDs — UUIDv7

All entity IDs are UUIDv7. They are chronologically sortable and globally unique.

7. Audit — RFC 6902

Every mutation creates a JSON patch audit entry in the same transaction as the data change. Learn more under Audit history.

8. Soft deletion

DELETE does not delete physically. Learn more under Soft deletion.

9. Language & localization

The API responds in German (default) or English (fallback) – controllable via the Accept-Language header. Validation errors are localized server-side; machine codes (type) remain language-independent.

What the platform does not promise

  • Hard delete. Does not take place except in the GDPR erase workflow.
  • Arbitrary ordering of patches. Anyone who ignores version risks lost updates – see Optimistic locking.
  • Stable title/detail texts in errors. These may change.
  • Synchronously persisted webhook delivery. Webhooks are delivered asynchronously – learn more under Webhooks.

Search