Skip to main content
The REST API lets your app manage workspaces, providers, models, prompts, mappings, workflows, indexes, quotas, and metrics. It is served under one base URL.

Authentication

Every request carries a bearer token. Get one by running an OAuth flow, then send it in the Authorization header.
string
required
Bearer <access_token>

How to get a token

Register an app and run the flow that fits your case.

Versioning

Pin a dated version with the Nemu-Api-Version header. Omit it to use the latest version. Every response echoes the version it was served with.
string
A dated version such as 2026-07-14.
See versioning for the full details.

Response shape

A list endpoint wraps its rows in data, and often includes a total. A single item endpoint wraps the item in data.
Three endpoints do not follow this shape: PATCH responses return { "success": true } and no data. Re-read the item if you need its new state.

Workspace scoped resources

Providers, models, prompts, mappings, and workflows belong to a workspace. Pass the workspace on reads as a workspace_id query parameter.
Writes are not workspace scoped. A create always lands in your account’s default workspace, and a workspace_id in the body is ignored. Indexes are resolved from the default workspace on reads as well.

Updates replace, they do not merge

Every PATCH validates the same schema as the matching POST, so the required fields on create are required on update too. Sending only the fields you changed returns 400. PUT is accepted wherever PATCH is and behaves identically.

Verbs

Status codes

Rate limits

Responses include X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset. When you exceed a limit the API returns 429 with a Retry-After header in seconds.

Resources