Live behaviorGetting started

The middleware validates identity before generation work begins

API keys, permissions, and preflight gates

The backend accepts API keys through either `Authorization: Bearer vb_live_...` or `x-api-key`. Once a key is resolved, the request still has to pass permission checks, subscription validation, entitlement checks, and rate limiting.

Manage keys
Route-accurate reference

Accepted headers

2

Bearer and `x-api-key` are both supported.

Permissions

full_access

Current API keys ship with a single broad permission value.

Fail-closed checks

subscription + credits

Invalid balance or disabled keys stop the request before orchestration.

What the middleware does

API-key requests are only allowed on paths explicitly approved by `is_api_key_route`, which currently means the versioned quickhits and roadmaps prefixes.

After the key resolves, middleware validates the subscription, checks endpoint entitlements, attaches the resolved user to request state, and only then allows the route handler to run.

What callers should expect

Disabled or expired keys return authentication errors. Valid keys with no remaining credits fail with payment-style errors before any generation begins.

Routes

What this page actually points to

2 entries
POSTLive

/api/v1/quickhits/create

Create a QuickHit through the current versioned public API contract.

Auth

API key via Authorization: Bearer or x-api-key

Maps to

/api/quickhits/create

Notes

This is the main live API-key route for quickhit generation today.

Request fields

promptstringRequired

Topic or concept to explain.

modestringOptional

Generation mode forwarded to the internal quickhits route.

Default

broad

contextobject[]Optional

Reserved in the versioned request model. The mapped backend flow is still prompt-first.

Response shape

Returns `success`, `quickhit_id`, `encrypted_token`, and `data`.

The `encrypted_token` is the durable external reference for later app retrieval flows.

POSTLive

/api/v1/roadmaps/create

Create a roadmap through the current versioned public API contract.

Auth

API key via Authorization: Bearer or x-api-key

Maps to

/api/roadmap/create

Notes

The versioned route creates the record, then forwards into the internal roadmap orchestrator.

Request fields

promptstringRequired

Learning objective or curriculum request.

timelinestringOptional

Preferred pacing string passed into roadmap generation.

Default

3 months

experiencestring | string[]Optional

Learner experience level. Strings are normalized into the backend list form.

resource_preferencestringOptional

Optional bias toward a resource style.

contextobject[]Optional

Reserved in the versioned request model while the live route remains primarily prompt-driven.

Response shape

Returns `success`, `roadmap_id`, `message`, `data.modules`, `token_stats`, and `pricing`.

The public versioned surface currently ships create only. Versioned list/get routes are still pending.

Request details

Headers

Minimum headers for the current public API-key routes.

AuthorizationstringOptional

Bearer token containing a Vidbyte API key. Supported for the public API-key surface.

Default

Bearer vb_live_your_api_key

x-api-keystringOptional

Alternative plaintext API key header accepted by the backend middleware.

Default

vb_live_your_api_key

Content-TypestringRequired

JSON request bodies are required on the current public routes.

Default

application/json

Related pages