API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Codemeta OS · API v1

One REST API.
Every IT service workflow.

Ticketing, CRM, contracts, assets, knowledge base, LMS – every mutation with JSON Patch audit, tenant isolation and stable UUIDv7 IDs. Authentication via opaque sessions, relationship-based authorization.

  • UUIDv7sortable by creation time
  • RFC 6902JSON Patch audit
  • RFC 7807Problem Details
terminal
# 1) Sign in (opaque session)
curl -X POST https://os.codemeta.de/api/auth/sign-in/email \
  -H "Content-Type: application/json" \
  -c cookies.txt \
  -d '{"email":"alice@example.com","password":"…"}'

# 2) Tenant context via header
curl https://os.codemeta.de/api/v1/tickets \
  -H "X-Tenant-Id: 0192f2c0-8d1c-7a3b-9e4f-d3e7f1a2b5c8" \
  -b cookies.txt
Platform guarantees

Contracts you can rely on

One consistent API across all modules – with the same semantics for versions, audit, deletion and error format.

RFC 6902

JSON Patch audit on every mutation

Every change to an entity writes an audit entry in the same MongoDB transaction, with an RFC 6902 patch, the actor and a timestamp. Retrievable per entity via the timeline route.

Understand the audit history →
RFC 7807

Predictable error responses

Errors follow Problem Details for HTTP APIs: type, title, status, detail – plus an optional errors[] list for validation. No mix of plain text and JSON.

See the error format →
UUIDv7

Stable, sortable IDs

All entity IDs are UUIDv7. They are globally unique, chronologically monotonic and can be paginated stably in lists without an extra field. Never ObjectIds, never auto-increment.

Sequence numbers vs. IDs →

Search