REST API

Versioned HTTP API under /api/v1 authenticated with Sanctum personal tokens.

Versioned HTTP API under /api/v1 authenticated with Sanctum personal tokens.

Base URL

https://codehub.mk/api/v1 — see /openapi.json for the machine-readable surface of documented routes.

Authentication

Send Authorization: Bearer {token}. Tokens are created in the signed-in app and can be revoked.

Resources

Documented resources include snippets, projects (with versions/download), products, assets and sync endpoints for entitled users.

Access control

Suspended users and plans without API access are rejected. Private data is never returned without authorization.