/v1 endpoint except GET /v1/health requires an API key.
Create a key
- Open the Lusor app and go to Settings → API Keys.
- Create a key and give it a name you will recognise later.
- Copy the key. It starts with
lusor_and is shown once. Lusor does not store it in a form it can show again.
Send the key
Use either header. They are equivalent:A key belongs to one workspace
Each key is bound to the workspace it was created in:- Endpoints that take an optional
workspaceId(query or body) use the key’s workspace when you leave it out. - Endpoints with
{workspaceId}in the path need your workspace id. Read it from theworkspaceIdfield of any agent (GET /v1/agents). - A request that names any other workspace returns
404, the same response as a resource that does not exist.
Keep keys secret
- Call the API from your server, never from a browser or a mobile app you ship. Anyone holding the key can act on your workspace’s phones.
- Store keys in a secret manager or environment variables, not in source control.
- Revoke a key in Settings → API Keys as soon as it is no longer needed or may have leaked.
Errors
See Errors for every other error code.

