Browse docs
On this page

API Reference

Every REST endpoint the API serves - generated from the same operation registry GET /openapi.json returns.

Auth & Workspaces

POST /v1/auth/signup

Creates a new identity, a new workspace (tenant), and an owner membership, then emails a single-use verification link. No session is created until the address is verified. `workspaceName` is optional - omitted, a default name is derived from the email address.

AuthNone - public
Request bodyEmail, password, and optionally a display name and workspace name.
Sign upapplication/json
{
  "email": "[email protected]",
  "password": "correct-horse-battery-staple",
  "displayName": "Ada"
}
StatusMeaning
201Account and workspace created; email verification is required.
403Self-serve sign-up is currently closed (the `signups-enabled` feature flag is off). Existing accounts sign in as normal and invitations still work.
409An identity with that email already exists.
Try it out
/v1/auth/signup
As curl
curl -X POST '/v1/auth/signup' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"email": "[email protected]","password": "correct-horse-battery-staple","displayName": "Ada"}'

POST /v1/auth/email/verify

Spends the single-use token sent after sign-up, marks the identity's email verified, and starts its first workspace session.

AuthNone - public
Request bodyThe token from the verification link.
StatusMeaning
200Email verified; a session cookie is set.
400The token is invalid, expired, or already used.
Try it out
/v1/auth/email/verify
As curl
curl -X POST '/v1/auth/email/verify' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{}'

POST /v1/auth/email/resend

Always returns the same accepted response whether the address is unknown, already verified, cooling down, or eligible. This prevents account enumeration.

AuthNone - public
Request bodyThe email address to retry.
StatusMeaning
202The request was accepted without disclosing account state.
Try it out
/v1/auth/email/resend
As curl
curl -X POST '/v1/auth/email/resend' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{}'

GET /v1/auth/signup-availability

Read by the sign-up screen before it renders its form, so a visitor is told the door is closed rather than discovering it by submitting. `signUpsEnabled` is sign-up with a password; `passkeySignUp` is creating an account with a passkey, which stays open while password sign-in is off as long as passkeys are on. A hint, not a control: both sign-up requests re-check and refuse with 403 regardless of whether this was called.

AuthNone - public
StatusMeaning
200The current state, plus the sentence to show when it is closed.
{
  "signUpsEnabled": false,
  "passkeySignUp": false,
  "message": "We are not accepting new accounts at the moment. If you were invited to a workspace, your invite link still works."
}
Try it out
/v1/auth/signup-availability
As curl
curl -X GET '/v1/auth/signup-availability' \
  -H 'Authorization: Bearer <your API key>'

POST /v1/auth/waitlist

Leaves an email address to be contacted when self-serve sign-up reopens. Only accepted while sign-up is closed. The response is the same whether or not the address was already on the list.

AuthNone - public
Request bodyThe email address to add.
Joinapplication/json
{
  "email": "[email protected]"
}
StatusMeaning
202The address is on the waitlist.
400The email address is missing or malformed.
409Sign-up is open, so there is no waitlist to join. Create an account instead.
Try it out
/v1/auth/waitlist
As curl
curl -X POST '/v1/auth/waitlist' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"email": "[email protected]"}'

POST /v1/auth/signin

Authenticates an existing identity. If the identity belongs to more than one workspace, `workspaceId` selects which one the session is scoped to; omitted, the most recently active workspace is used.

AuthNone - public
Request bodyEmail, password, and an optional workspace id.
Sign inapplication/json
{
  "email": "[email protected]",
  "password": "correct-horse-battery-staple"
}
StatusMeaning
200Signed in; a session cookie is set.
401Wrong email or password.
Try it out
/v1/auth/signin
As curl
curl -X POST '/v1/auth/signin' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"email": "[email protected]","password": "correct-horse-battery-staple"}'

GET /v1/auth/login-options

Read by the sign-in screen. Lists the sign-in providers a platform admin has enabled, by name, with the path that starts a sign-in through each, whether email and password sign-in is allowed, and whether passkey sign-in is. The same answer for every visitor.

AuthNone - public
StatusMeaning
200The enabled providers and whether the password form shows.
{
  "passwordSignIn": false,
  "passkeySignIn": true,
  "providers": [
    {
      "id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
      "name": "Okta",
      "startPath": "/v1/auth/providers/aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa/start"
    }
  ]
}
Try it out
/v1/auth/login-options
As curl
curl -X GET '/v1/auth/login-options' \
  -H 'Authorization: Bearer <your API key>'

GET /v1/auth/providers/{id}/start

A browser navigation, not an API call. Redirects to the provider's sign-in page using the authorization code flow with PKCE, and sets a short-lived cookie that ties the attempt to this browser. `returnTo` is a path on the console to land on afterwards.

AuthNone - public
StatusMeaning
302Redirect to the provider, or back to the sign-in page if the provider is unavailable.
Try it out
/v1/auth/providers/%7Bid%7D/start

Fill in id.

As curl
curl -X GET '/v1/auth/providers/%7Bid%7D/start' \
  -H 'Authorization: Bearer <your API key>'

GET /v1/auth/providers/{id}/callback

Where the provider sends the browser back. Checks the attempt belongs to this browser, trades the code for a token, verifies the token's signature and claims, and signs in to the existing account with the email address the provider vouches for. No account is created for an unknown address.

AuthNone - public
StatusMeaning
302Signed in, with a session cookie set, and redirected to the requested page; or redirected to the sign-in page with a reason it can explain.
Try it out
/v1/auth/providers/%7Bid%7D/callback

Fill in id.

As curl
curl -X GET '/v1/auth/providers/%7Bid%7D/callback' \
  -H 'Authorization: Bearer <your API key>'

POST /v1/auth/passkey/options

Returns WebAuthn request options with a fresh challenge, for the browser to pass to `navigator.credentials.get()`, and sets a short-lived cookie that ties the challenge to this browser. The options name no account: the browser offers whichever passkeys it holds for this site. Refused with 403 while a platform admin has turned passkey sign-in off.

AuthNone - public
StatusMeaning
200The WebAuthn request options, under `options`.
403Passkey sign-in is turned off on this deployment.
Try it out
/v1/auth/passkey/options
As curl
curl -X POST '/v1/auth/passkey/options' \
  -H 'Authorization: Bearer <your API key>'

POST /v1/auth/passkey/verify

Checks the browser's signed answer to the challenge from `POST /v1/auth/passkey/options` and opens a session on the account the passkey belongs to, in that account's default workspace. The challenge is single-use and expires after five minutes.

AuthNone - public
Request bodyThe credential the browser returned, as WebAuthn JSON, under `response`.
StatusMeaning
200Signed in; a session cookie is set.
400The challenge expired or was already used, or the answer is malformed.
401The passkey is not on any account, or its signature did not verify.
403Passkey sign-in is turned off, or the account cannot sign in yet.
Try it out
/v1/auth/passkey/verify
As curl
curl -X POST '/v1/auth/passkey/verify' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{}'

POST /v1/auth/signup/passkey/options

Takes the same details as a password sign-up, without the password, and returns WebAuthn creation options for the browser to pass to `navigator.credentials.create()`, with a short-lived cookie that ties the challenge to this browser. Nothing is created yet: the account is made when `POST /v1/auth/signup/passkey` returns a verified passkey.

AuthNone - public
Request body`email`, and optionally `displayName` and `workspaceName`.
StatusMeaning
200The WebAuthn creation options, under `options`.
400The email address or workspace name is not valid.
403Sign-ups are closed, or passkeys are turned off on this deployment.
409An account with that email already exists.
Try it out
/v1/auth/signup/passkey/options
As curl
curl -X POST '/v1/auth/signup/passkey/options' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{}'

POST /v1/auth/signup/passkey

Checks the browser's new passkey against the challenge from `POST /v1/auth/signup/passkey/options`, then creates the account and its workspace with the passkey on it, and emails a verification link. Like a password sign-up, it opens no session: the passkey signs in once the email address is verified.

AuthNone - public
Request bodyThe credential the browser created, as WebAuthn JSON, under `response`.
StatusMeaning
201Account created; a verification email is on its way.
400The challenge expired or was already used, or the answer did not verify.
403Sign-ups are closed, or passkeys are turned off on this deployment.
409The email address was taken meanwhile, or the passkey is already on an account.
Try it out
/v1/auth/signup/passkey
As curl
curl -X POST '/v1/auth/signup/passkey' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{}'

POST /v1/auth/signout

Revokes the session backing the request's session cookie.

AuthSession cookie
StatusMeaning
204Signed out.
Try it out
/v1/auth/signout

Paste an API key above to send this request.

As curl
curl -X POST '/v1/auth/signout' \
  -H 'Authorization: Bearer <your API key>'

GET /v1/auth/cli-login

The console page where a person signs in and authorizes the obi command line, or creates a token to paste when obi cannot be reached from the browser. `obi login` opens it.

AuthNone - public
StatusMeaning
200The page's address, as `url`.
Try it out
/v1/auth/cli-login
As curl
curl -X GET '/v1/auth/cli-login' \
  -H 'Authorization: Bearer <your API key>'

POST /v1/auth/cli-session

Creates a second session for the signed-in person in the current workspace and returns its token, for pasting into `obi login`. The calling session stays signed in. Only a browser session can call this; an API key cannot. The new session lasts 30 days, and signing out of the command line or changing the account password ends it.

AuthSession cookie
StatusMeaning
201The new session's `id`, and its token as `token`. The token is shown once.
401No session, or the credential is an API key.
Try it out
/v1/auth/cli-session

Paste an API key above to send this request.

As curl
curl -X POST '/v1/auth/cli-session' \
  -H 'Authorization: Bearer <your API key>'

GET /v1/auth/cli-session/{id}

Whether `obi login` has used a command line session the signed-in person created, so the sign-in page can tell them to go back to their terminal. Only the person who created the session can ask.

AuthSession cookie
StatusMeaning
200`claimed` is true once the command line has used the session.
404No such session for this person, or it has ended.
Try it out
/v1/auth/cli-session/%7Bid%7D

Paste an API key above to send this request. Fill in id.

As curl
curl -X GET '/v1/auth/cli-session/%7Bid%7D' \
  -H 'Authorization: Bearer <your API key>'

POST /v1/auth/cli-session/claim

Called by `obi login` with the token that was pasted in, after checking it works. Marks only the session that made the request.

AuthSession cookie
StatusMeaning
204The session is now marked as in use by the command line.
Try it out
/v1/auth/cli-session/claim

Paste an API key above to send this request.

As curl
curl -X POST '/v1/auth/cli-session/claim' \
  -H 'Authorization: Bearer <your API key>'

POST /v1/auth/cli-login/approve

Called by the command line sign-in page when the signed-in person clicks Authorize. Returns a one-time code for the page to pass to `obi login`, which is waiting on this computer. The code works once, for two minutes, and only together with the secret `obi login` generated, so on its own it signs nobody in. `workspaceId` picks one of the person's workspaces and defaults to the current one. Only a browser session can call this; an API key cannot.

AuthSession cookie
Request bodyThe workspace to sign in to, and the PKCE challenge `obi login` generated (S256, base64url).
Authorizeapplication/json
{
  "workspaceId": "6f1c2a8e-0d0b-4a43-9a51-3b8d0c3f2b7e",
  "codeChallenge": "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM"
}
StatusMeaning
201The one-time code, as `code`.
400The challenge is missing or malformed.
401No session.
403The credential is an API key, or the account has no such workspace.
Try it out
/v1/auth/cli-login/approve

Paste an API key above to send this request.

As curl
curl -X POST '/v1/auth/cli-login/approve' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"workspaceId": "6f1c2a8e-0d0b-4a43-9a51-3b8d0c3f2b7e","codeChallenge": "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM"}'

POST /v1/auth/cli-login/token

Called by `obi login` with the one-time code the browser handed it and the PKCE verifier it generated. Returns a session token for the workspace the person authorized, with their role there. The session lasts 30 days, and signing out of the command line or changing the account password ends it. A code is spent by the first attempt to use it, whether or not the verifier matches.

AuthNone - public
Request bodyThe code and the PKCE verifier.
Exchangeapplication/json
{
  "code": "q3J0...",
  "codeVerifier": "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"
}
StatusMeaning
200The new session's token, as `token`.
400The code is unknown, expired or already used, or the verifier does not match it.
Try it out
/v1/auth/cli-login/token
As curl
curl -X POST '/v1/auth/cli-login/token' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"code": "q3J0...","codeVerifier": "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"}'

GET /v1/me

The identity, workspace, and role behind the current session - what the app shell uses to render the account menu.

AuthSession cookie or personal access token
StatusMeaning
200The current user, workspace, and role.
Try it out
/v1/me

Paste an API key above to send this request.

As curl
curl -X GET '/v1/me' \
  -H 'Authorization: Bearer <your API key>'

GET /v1/workspaces

Every workspace the signed-in identity has a membership in - what the workspace switcher renders. Each one says whether it is the default the identity signs in to.

AuthSession cookie
StatusMeaning
200The identity's workspaces.
Try it out
/v1/workspaces

Paste an API key above to send this request.

As curl
curl -X GET '/v1/workspaces' \
  -H 'Authorization: Bearer <your API key>'

PUT /v1/workspaces/default

Records which of the identity's workspaces a sign-in lands in. Send null to clear it, which puts sign-in back on the first workspace alphabetically. Does not move the current session - use the switch endpoint for that. Fails closed if the identity has no membership on the workspace named.

AuthSession cookie
Request bodyThe workspace id to sign in to, or null to clear.
StatusMeaning
204Preference recorded.
403No membership on that workspace.
Try it out
/v1/workspaces/default

Paste an API key above to send this request.

As curl
curl -X PUT '/v1/workspaces/default' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{}'

POST /v1/workspaces

Creates a new, empty workspace with the current identity as owner. Distinct data from every other workspace this identity belongs to.

AuthSession cookie
Request bodyThe new workspace's name.
StatusMeaning
201Workspace created.
Try it out
/v1/workspaces

Paste an API key above to send this request.

As curl
curl -X POST '/v1/workspaces' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{}'

POST /v1/workspaces/switch

Re-scopes the current session to a different workspace the identity is a member of. Fails closed if the identity has no membership on the target workspace.

AuthSession cookie
Request bodyThe workspace id to switch to.
StatusMeaning
200Session re-scoped.
403No membership on that workspace.
Try it out
/v1/workspaces/switch

Paste an API key above to send this request.

As curl
curl -X POST '/v1/workspaces/switch' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{}'

GET /v1/account/deletion

Returns the server-calculated consequences of deleting the signed-in identity, including workspaces that will be deleted, workspaces the identity will leave, and ownership blockers that must be resolved first.

AuthSession cookie
StatusMeaning
200The current account deletion plan.
403The credential is not a signed-in identity session.
Try it out
/v1/account/deletion

Paste an API key above to send this request.

As curl
curl -X GET '/v1/account/deletion' \
  -H 'Authorization: Bearer <your API key>'

DELETE /v1/account

Permanently deletes the signed-in identity and its workspace memberships. A workspace is also deleted when this identity is its only member. The account and any such workspace stop working as soon as the request is accepted, and their data is erased in the background shortly after. The request is refused when deleting the identity would leave a workspace or organization without an owner.

AuthSession cookie
Request bodyThe current password and the account email typed as confirmation.
Confirm account deletionapplication/json
{
  "currentPassword": "correct-horse-battery-staple",
  "confirmation": "[email protected]"
}
StatusMeaning
202Deletion has started: the account can no longer sign in, any sole-member workspaces are no longer reachable, and the session cookie was cleared. The data is erased in the background shortly after.
400The typed email does not match the account email.
401The current password is incorrect.
403The credential is not a signed-in identity session.
409The identity is the only owner of a workspace or organization that still has other members, or it holds a platform staff role.
Try it out
/v1/account

Paste an API key above to send this request.

As curl
curl -X DELETE '/v1/account' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"currentPassword": "correct-horse-battery-staple","confirmation": "[email protected]"}'

Organizations

GET /v1/organization

The organization that owns the workspace in scope, or `null` if the workspace is standalone - which is an ordinary, permanent answer rather than an error. Members of the organization also get its workspace inventory and member count; someone invited straight into this workspace gets the organization's name and nothing else, because knowing who governs the workspace you work in is not a disclosure about the organization's other workspaces.

AuthSession cookie
StatusMeaning
200The organization, or `null`.
Try it out
/v1/organization

Paste an API key above to send this request.

As curl
curl -X GET '/v1/organization' \
  -H 'Authorization: Bearer <your API key>'

GET /v1/organizations

Names, roles and workspace counts for every organization the signed-in identity is a member of - the picker behind "attach this workspace to an existing organization". Keyed on the session's own identity id, the same shape and the same argument as `GET /v1/workspaces`.

AuthSession cookie
StatusMeaning
200The identity's organizations.
Try it out
/v1/organizations

Paste an API key above to send this request.

As curl
curl -X GET '/v1/organizations' \
  -H 'Authorization: Bearer <your API key>'

POST /v1/organizations

Creates an organization, attaches the workspace in scope to it, and makes the caller its Owner. Requires Owner of that workspace. There is no organization-level check because there is no organization to hold a role against until this call creates one. With `createOrganizationWorkspace: true` it also creates an organization workspace, owned by the caller, for dashboards across the organization: it searches every workspace that shares with the organization workspace, which each workspace does unless an Admin switches it off. If the organization is created but its workspace cannot be, the response says why in `organizationWorkspaceError`.

AuthSession cookie
Request bodyThe organization's name, 2 to 80 characters, and optionally `createOrganizationWorkspace`.
Createapplication/json
{
  "name": "Acme Corp"
}
Create with an organization workspaceapplication/json
{
  "name": "Acme Corp",
  "createOrganizationWorkspace": true
}
StatusMeaning
201Organization created; the current workspace is attached. `organizationWorkspace` names the organization workspace when one was created.
403You already belong to as many workspaces as you can.
409This workspace already belongs to an organization.
Try it out
/v1/organizations

Paste an API key above to send this request.

As curl
curl -X POST '/v1/organizations' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"name": "Acme Corp"}'

POST /v1/organization/workspace

Creates the organization workspace for the organization the current workspace belongs to: a new workspace, owned by the caller and attached to the organization, intended for dashboards across it. It searches every workspace of the organization that shares with the organization workspace. Requires Admin or Owner of the organization. An organization has at most one.

AuthSession cookie
StatusMeaning
201The organization workspace was created.
403Your organization role cannot do that, or a workspace limit was reached.
409The organization already has an organization workspace.
Try it out
/v1/organization/workspace

Paste an API key above to send this request.

As curl
curl -X POST '/v1/organization/workspace' \
  -H 'Authorization: Bearer <your API key>'

PUT /v1/organization/workspaces/{id}/sharing

Sets one of the organization's workspaces to share its logs with nobody else (`none`), with the organization workspace (`organization_workspace`, the default) or with every workspace in the organization (`organization`), which includes the organization workspace. `{ "shared": true }` and `{ "shared": false }` still work and mean `organization` and `none`. Requires Admin or Owner of the organization. The `id` must be one of this organization's workspaces.

AuthSession cookie
Request bodyThe sharing level as `level`.
Share with every workspaceapplication/json
{
  "level": "organization"
}
StatusMeaning
200Sharing updated. Applies to the very next search.
400The level was not one of none, organization_workspace or organization.
403Your organization role cannot do that.
404No such workspace in this organization.
Try it out
/v1/organization/workspaces/%7Bid%7D/sharing

Paste an API key above to send this request. Fill in id.

As curl
curl -X PUT '/v1/organization/workspaces/%7Bid%7D/sharing' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"level": "organization"}'

PATCH /v1/organizations/{id}

Requires Admin or Owner of the organization. The `id` is not scope and never widens it - scope still arrives from the session - it is a statement of intent, so that a rename fired from a tab left open before a workspace switch is refused rather than landing on whichever organization the cookie now resolves to.

AuthSession cookie
Request bodyThe new name.
StatusMeaning
200Organization renamed.
403Your organization role cannot do that.
409That is not the organization your current workspace belongs to.
Try it out
/v1/organizations/%7Bid%7D

Paste an API key above to send this request. Fill in id.

As curl
curl -X PATCH '/v1/organizations/%7Bid%7D' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{}'

DELETE /v1/organizations/{id}

Requires Owner of the organization and Owner of the workspace the request is made from, plus the organization's exact name as `confirmation`. Destroys no log data: every workspace is detached and keeps everything in it. What it destroys is access - the seats the organization was issuing, and the sessions those seats supported.

AuthSession cookie
Request bodyThe organization's name, typed exactly, as `confirmation`.
StatusMeaning
200Organization deleted and its workspaces detached.
400The confirmation did not match the organization's name.
403Your organization role cannot do that.
Try it out
/v1/organizations/%7Bid%7D

Paste an API key above to send this request. Fill in id.

As curl
curl -X DELETE '/v1/organizations/%7Bid%7D' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{}'

POST /v1/organization/attach

Requires Owner of the workspace in scope and Admin or Owner of the target organization; the second is re-derived server-side from the caller's own memberships, so naming an organization you do not administer is a 403 with the same message as naming one that does not exist. Seats every organization member in this workspace. `organizationId` is the only identifier a client supplies anywhere in this tag, and it is not scope: the workspace is always the session's.

AuthSession cookie
Request bodyThe target organization's id.
StatusMeaning
200Workspace attached; organization members are now seated in it.
403You do not administer that organization, or it holds the maximum of 25 workspaces.
409This workspace already belongs to an organization.
Try it out
/v1/organization/attach

Paste an API key above to send this request.

As curl
curl -X POST '/v1/organization/attach' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{}'

POST /v1/organization/detach

Requires Owner of the workspace and Admin or Owner of the organization - both, because a workspace Owner should not be able to walk a workspace out of what may be the customer's billing and compliance boundary, and an organization Admin should not be able to cut one loose without its Owner. Withdraws every seat the organization was issuing here, which may include the caller's own: `stillAMember: false` means their session has been ended and the cookie cleared.

AuthSession cookie
StatusMeaning
200Workspace detached.
404This workspace does not belong to an organization.
Try it out
/v1/organization/detach

Paste an API key above to send this request.

As curl
curl -X POST '/v1/organization/detach' \
  -H 'Authorization: Bearer <your API key>'

GET /v1/organization/members

Gated on membership of the organization rather than on a workspace capability: an Admin of one workspace the organization happens to own is not thereby inside the organization, and this list carries the email addresses of people who may have nothing to do with their workspace.

AuthSession cookie
StatusMeaning
200The organization's members and their roles.
Try it out
/v1/organization/members

Paste an API key above to send this request.

As curl
curl -X GET '/v1/organization/members' \
  -H 'Authorization: Bearer <your API key>'

PATCH /v1/organization/members/{id}

Admin or Owner. Changes the workspace role that member's organization-issued seats carry, in every workspace the organization owns, at once. It does not touch a seat a workspace granted directly: a workspace that invited someone itself keeps the role it chose.

AuthSession cookie
Request bodyOne of `owner`, `admin`, `member`, `viewer`.
StatusMeaning
200Role changed and seats reconciled.
409That would leave the organization with no Owner.
Try it out
/v1/organization/members/%7Bid%7D

Paste an API key above to send this request. Fill in id.

As curl
curl -X PATCH '/v1/organization/members/%7Bid%7D' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{}'

DELETE /v1/organization/members/{id}

Admin or Owner. Withdraws every seat the organization was issuing on their behalf and kills the sessions those seats supported. Any workspace that invited them directly keeps them: removal is a statement about the organization, not an eviction from workspaces that made their own decision.

AuthSession cookie
StatusMeaning
200Member removed and seats withdrawn.
409That would leave the organization with no Owner.
Try it out
/v1/organization/members/%7Bid%7D

Paste an API key above to send this request. Fill in id.

As curl
curl -X DELETE '/v1/organization/members/%7Bid%7D' \
  -H 'Authorization: Bearer <your API key>'

GET /v1/organization/invitations

Admin or Owner, because who has been asked to join is administrative.

AuthSession cookie
StatusMeaning
200Pending invitations.
Try it out
/v1/organization/invitations

Paste an API key above to send this request.

As curl
curl -X GET '/v1/organization/invitations' \
  -H 'Authorization: Bearer <your API key>'

POST /v1/organization/invitations

Admin or Owner. An invitation rather than an add-by-email, and deliberately so: an add-by-email endpoint has to answer differently when the address has no account, and that difference is an account-enumeration oracle handed to every customer. Valid for 7 days. The response carries the accept link once, for the "copy invite link" fallback when mail delivery fails.

AuthSession cookie
Request bodyThe invitee's email and the organization role to grant.
Invite an adminapplication/json
{
  "email": "[email protected]",
  "role": "admin"
}
StatusMeaning
201Invitation issued and emailed.
409That person is already in this organization.
Try it out
/v1/organization/invitations

Paste an API key above to send this request.

As curl
curl -X POST '/v1/organization/invitations' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"email": "[email protected]","role": "admin"}'

DELETE /v1/organization/invitations/{id}

Admin or Owner. The link stops working immediately.

AuthSession cookie
StatusMeaning
200Invitation revoked.
404No such pending invitation.
Try it out
/v1/organization/invitations/%7Bid%7D

Paste an API key above to send this request. Fill in id.

As curl
curl -X DELETE '/v1/organization/invitations/%7Bid%7D' \
  -H 'Authorization: Bearer <your API key>'

GET /v1/organization-invitations/{token}

What the accept screen renders before anyone commits. Unauthenticated by design, because the invite token is the credential, and non-consuming, so opening the link twice does not burn it.

AuthNone - public
StatusMeaning
200The organization's name, the invited address, the role, and the expiry.
404Invalid, expired, or already used.
Try it out
/v1/organization-invitations/%7Btoken%7D

Fill in token.

As curl
curl -X GET '/v1/organization-invitations/%7Btoken%7D' \
  -H 'Authorization: Bearer <your API key>'

POST /v1/organization-invitations/accept

Unauthenticated by design: the token is the credential. The invited address comes from the invitation row and never from the request, and if that address already has an account its password is required - otherwise an invitation would be a way to take over an existing account by naming it. Ends in a session on one of the organization's workspaces, resolved from the memberships the server just created. An organization that owns no workspaces yet answers `signedIn: false`: the person really has joined, there is simply nowhere to open a session on.

AuthNone - public
Request bodyThe invite token, plus a password and display name for a new account.
StatusMeaning
201Invitation accepted.
401The password for that existing account is incorrect.
404Invalid, expired, or already used.
Try it out
/v1/organization-invitations/accept
As curl
curl -X POST '/v1/organization-invitations/accept' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{}'

Liveness Checks

GET /v1/checks

Every Liveness Check configured in the current workspace, paginated - the table `/checks` renders.

AuthSession cookie or personal access token
StatusMeaning
200A page of checks.
403The Liveness Checks add-on (Liveness Checks and the status page) is turned off for this workspace. An owner or admin can turn it on from Add-ons.
Try it out
/v1/checks

Paste an API key above to send this request.

As curl
curl -X GET '/v1/checks' \
  -H 'Authorization: Bearer <your API key>'

POST /v1/checks

Adds a check (`ping`, `http`, or `search`) and schedules its first run within seconds - the zero-code MVP ingestion door.

AuthSession cookie or personal access token
Request bodyThe check's type, target, method, and interval.
HTTP checkapplication/json
{
  "name": "Marketing site",
  "type": "http",
  "target": "https://obistack.com/",
  "method": "GET",
  "intervalSeconds": 60
}
StatusMeaning
201Check created.
403The Liveness Checks add-on (Liveness Checks and the status page) is turned off for this workspace. An owner or admin can turn it on from Add-ons.
Try it out
/v1/checks

Paste an API key above to send this request.

As curl
curl -X POST '/v1/checks' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"name": "Marketing site","type": "http","target": "https://obistack.com/","method": "GET","intervalSeconds": 60}'

GET /v1/checks/{id}

A single check's configuration plus its recent run history, for the check detail page.

AuthSession cookie or personal access token
StatusMeaning
200The check and its recent runs.
403The Liveness Checks add-on (Liveness Checks and the status page) is turned off for this workspace. An owner or admin can turn it on from Add-ons.
404No check with that id in this workspace.
Try it out
/v1/checks/%7Bid%7D

Paste an API key above to send this request. Fill in id.

As curl
curl -X GET '/v1/checks/%7Bid%7D' \
  -H 'Authorization: Bearer <your API key>'

PATCH /v1/checks/{id}

Partial update - only the fields present in the body change.

AuthSession cookie or personal access token
Request bodyAny subset of a check's editable fields.
StatusMeaning
200Check updated.
403The Liveness Checks add-on (Liveness Checks and the status page) is turned off for this workspace. An owner or admin can turn it on from Add-ons.
Try it out
/v1/checks/%7Bid%7D

Paste an API key above to send this request. Fill in id.

As curl
curl -X PATCH '/v1/checks/%7Bid%7D' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{}'

DELETE /v1/checks/{id}

Removes the check and stops scheduling further runs. Past run history is deleted with it.

AuthSession cookie or personal access token
StatusMeaning
204Check deleted.
403The Liveness Checks add-on (Liveness Checks and the status page) is turned off for this workspace. An owner or admin can turn it on from Add-ons.
Try it out
/v1/checks/%7Bid%7D

Paste an API key above to send this request. Fill in id.

As curl
curl -X DELETE '/v1/checks/%7Bid%7D' \
  -H 'Authorization: Bearer <your API key>'

GET /v1/checks/summary

Up/down/degraded counts across every check in the workspace - what the nav status indicator and checks list header render.

AuthSession cookie or personal access token
StatusMeaning
200Aggregate check health.
403The Liveness Checks add-on (Liveness Checks and the status page) is turned off for this workspace. An owner or admin can turn it on from Add-ons.
Try it out
/v1/checks/summary

Paste an API key above to send this request.

As curl
curl -X GET '/v1/checks/summary' \
  -H 'Authorization: Bearer <your API key>'

POST /v1/checks/test

Executes a check's target/method/query against a short-lived rate limit, without persisting a check row - the "Test" button on the check form.

AuthSession cookie or personal access token
Request bodyThe same shape as `createCheck`, but nothing is saved.
StatusMeaning
200The one-off run's result.
403The Liveness Checks add-on (Liveness Checks and the status page) is turned off for this workspace. An owner or admin can turn it on from Add-ons.
429Test rate limit exceeded for this workspace.
Try it out
/v1/checks/test

Paste an API key above to send this request.

As curl
curl -X POST '/v1/checks/test' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{}'

Query & Search

GET /v1/query/schema

Supported external read API. Send `Authorization: Bearer <personal-access-token>` to discover the fields, inferred types, and sampled values available within the token creator's workspace and Data Scopes.

AuthSession cookie or personal access token
StatusMeaning
200The token-visible workspace schema.
401The bearer token is missing or invalid.
403The credential is an ingest key or otherwise lacks a personal read scope.
429This personal access token exceeded the shared Query API allowance. Retry after the number of seconds in `Retry-After`.
Try it out
/v1/query/schema

Paste an API key above to send this request.

As curl
curl -X GET '/v1/query/schema' \
  -H 'Authorization: Bearer <your API key>'

POST /v1/query

Supported external read API. Send `Authorization: Bearer <personal-access-token>` with an ObiQL query. `read_only` and `full_access` tokens can read, subject to the creator's RBAC capabilities and Data Scopes; only `full_access` can request `| delete`, and it still needs the delete-events capability. A query ending in `| askObi` sends the results in front of it to the workspace's AI model and returns its findings as rows (`severity`, `finding`, `detail`, `evidence`), with the model's overall summary in `obi.summary`; it needs the Obi AI Assistant add-on and counts toward Obi's spending limits.

AuthSession cookie or personal access token
Request bodyAn ObiQL query string plus a time range.
Errors in the last hourapplication/json
{
  "query": "level=\"error\" | stats count() by service",
  "from": "now-1h",
  "to": "now"
}
Recent payment failuresapplication/json
{
  "query": "service:payments level:error \"payment failed\"",
  "from": "now-15m",
  "to": "now",
  "page": 1,
  "perPage": 50
}
StatusMeaning
200Query results.
400The query failed to parse or compile - see `error.message` for the ObiQL-specific reason.
401The bearer token is missing or invalid.
403The credential lacks a personal read scope, its Data Scope grants no data, `read_only` attempted `| delete`, or `| askObi` is not available to this member or at the workspace's Obi data level.
409`| askObi` was used but Obi has not been set up for this workspace.
429This personal access token exceeded the shared Query API allowance (retry after the number of seconds in `Retry-After`), or `| askObi` reached an Obi spending limit.
502`| askObi` could not get an answer from the workspace's AI provider.
Try it out
/v1/query

Paste an API key above to send this request.

As curl
curl -X POST '/v1/query' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"query": "level=\"error\" | stats count() by service","from": "now-1h","to": "now"}'

POST /v1/mcp

The Model Context Protocol endpoint (Streamable HTTP transport, stateless JSON responses) that lets an AI agent such as Claude Code, Claude Desktop, Cursor or VS Code query this workspace. Send one JSON-RPC 2.0 message per request with `Authorization: Bearer <personal-access-token>`; a cookie is not accepted. Supports `initialize`, `ping`, `tools/list` and `tools/call`. Every tool is read-only, runs with the token's own permissions and Data Scopes, and returns aggregates in full and up to 20 example log lines per query. Needs only the token: no add-on or AI provider, because the agent brings its own model. A notification gets 202 with no body. GET and DELETE answer 405.

AuthIngest key
Request bodyOne JSON-RPC 2.0 message.
List the toolsapplication/json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}
Run a queryapplication/json
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "run_query",
    "arguments": {
      "query": "level=\"error\" | stats count() by service",
      "from": "-1h",
      "to": "now"
    }
  }
}
StatusMeaning
200The JSON-RPC response. A tool that failed reports `result.isError: true` with the reason as text.
202A notification was accepted. No body.
400The body was not one JSON-RPC message.
401The bearer token is missing or invalid.
403The token is not a personal read token.
Try it out
/v1/mcp

Paste an ingest key above to send this request.

As curl
curl -X POST '/v1/mcp' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc": "2.0","id": 1,"method": "tools/list"}'

Onboarding

GET /v1/onboarding/status

Whether this workspace has received at least one event yet, and from which door - what routes a brand-new workspace to "Connect Your Data" instead of an empty Explorer.

AuthSession cookie or personal access token
StatusMeaning
200Onboarding status.
Try it out
/v1/onboarding/status

Paste an API key above to send this request.

As curl
curl -X GET '/v1/onboarding/status' \
  -H 'Authorization: Bearer <your API key>'

POST /v1/onboarding/fluent-bit/sessions

Records the deployment shape chosen and the ingest key minted for a Fluent Bit Onboarding Wizard run (Step 68), so the wizard panel can resume across a page refresh. The key itself is minted separately via `POST /v1/api-keys` with `door: "fluent_bit"`; this only stores which shape it goes with.

AuthSession cookie
Request bodyThe freshly minted ingest key's id and the chosen deployment shape.
A Kubernetes DaemonSet sessionapplication/json
{
  "apiKeyId": "b6b6b6b6-0000-4000-8000-000000000000",
  "deploymentShape": "k8s_daemonset"
}
StatusMeaning
201Session created.
400Missing or invalid apiKeyId or deploymentShape, or apiKeyId does not name an ingest key in this workspace.
Try it out
/v1/onboarding/fluent-bit/sessions

Paste an API key above to send this request.

As curl
curl -X POST '/v1/onboarding/fluent-bit/sessions' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"apiKeyId": "b6b6b6b6-0000-4000-8000-000000000000","deploymentShape": "k8s_daemonset"}'

GET /v1/onboarding/fluent-bit/sessions/current

The caller's own most recently created Fluent Bit wizard session that has not yet received its first event, or null if they have none in progress. Scoped per user, not per workspace, so one teammate's in-progress wizard never resumes into a colleague's browser tab.

AuthSession cookie or personal access token
StatusMeaning
200The current session, or null.
Try it out
/v1/onboarding/fluent-bit/sessions/current

Paste an API key above to send this request.

As curl
curl -X GET '/v1/onboarding/fluent-bit/sessions/current' \
  -H 'Authorization: Bearer <your API key>'

Data Inputs

GET /v1/sources

Every data input feeding this workspace - Liveness Checks and ingest keys today, other ingestion doors as later steps land. Each carries a `kind` saying which door it is.

AuthSession cookie or personal access token
StatusMeaning
200The workspace's data inputs.
Try it out
/v1/sources

Paste an API key above to send this request.

As curl
curl -X GET '/v1/sources' \
  -H 'Authorization: Bearer <your API key>'

Ingest

POST /v1/events

The raw HTTP door. Accepts one event, an array of events, or `text/plain` with one event per line. Requires an **ingest** key, not a personal access token: the key is the data input, and every event sent with it is filed under that key's id as its `source_id`. The workspace is derived from the key alone - a `tenant_id` in the payload is dropped and the attempt logged.

AuthIngest key
Request bodyA single event, an array of events, or raw text. Every field is optional. `timestamp` defaults to receipt time; `level`, `service`, and `message` are left empty when omitted rather than filled with a placeholder like `info` or `unknown`. A `message` that is present must be non-empty.
One eventapplication/json
{
  "level": "info",
  "message": "hello from obistack",
  "service": "my-script",
  "fields": {
    "order_id": "ord_123",
    "attempt": 3
  }
}
A batch - a top-level array, not an {"events": [...]} wrapperapplication/json
[
  {
    "level": "info",
    "message": "checkout started",
    "service": "checkout",
    "fields": {
      "order_id": "ord_123"
    }
  },
  {
    "level": "warn",
    "message": "payment retry",
    "service": "payment",
    "fields": {
      "attempt": 2
    }
  },
  {
    "level": "error",
    "message": "payment failed after 3 attempts",
    "service": "payment",
    "timestamp": "2026-08-06T10:15:30.000Z"
  }
]
Raw text - one line, one eventtext/plain
2026-08-06T10:15:30Z INFO  checkout  cart loaded in 42ms
2026-08-06T10:15:31Z WARN  payment   gateway slow (1.2s)
2026-08-06T10:15:33Z ERROR payment   gateway timeout after 3 retries
StatusMeaning
202Accepted and durably queued. Not yet queryable - the pipeline runs next, with a p99 indexing latency target under 10 seconds. `accepted` is the event count, and `sourceId` is the ingest key's own id - the data input everything sent with this key is filed under.
{
  "accepted": 3,
  "sourceId": "28b335a4-d235-402f-9718-5816071a1087"
}
400The payload was malformed. The response names the offending field, and `index` says which element of a batch it was.
{
  "error": "invalid_event",
  "message": "Event at index 1: \"message\" must be a non-empty string.",
  "field": "message",
  "index": 1
}
401No credential, or an unrecognised one.
403A valid key, but not an ingest key.
413Body over the size cap.
429This key exceeded its rate limit. See `retry-after`.
Try it out
/v1/events

Paste an ingest key above to send this request.

As curl
curl -X POST '/v1/events' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"level": "info","message": "hello from obistack","service": "my-script","fields": {"order_id": "ord_123","attempt": 3}}'

POST /ingest/otel/v1/logs

The OpenTelemetry Collector logs door (Path B). Same credential model as `POST /v1/events` - an **ingest** key, never a personal access token - and the same pipeline underneath; only the wire format differs. Point an OTLP/HTTP exporter's generic `endpoint` at your API origin followed by `/ingest/otel`, and it appends `/v1/logs` itself. Accepts `Content-Type: application/json` and `application/x-protobuf` (a Collector's default). Answers with OTLP's own response contract, not this API's usual one: `200` on success, and `429`/`503` are the only retryable failures.

AuthIngest key
Request bodyAn OTLP `ExportLogsServiceRequest` (`resourceLogs` to `scopeLogs` to `logRecords`). `body` is preserved with its decoded type and is also mapped to the existing `message` compatibility field. `severity_text` maps to `level`, while `severity_number` is preserved as `otel.severity_number`. Resource and log record attributes remain fields under their literal (dotted) keys, so `service.name` promotes to the `service` column through the ordinary alias table.
One log record, as a Collector's otlp receiver would forward itapplication/json
{
  "resourceLogs": [
    {
      "resource": {
        "attributes": [
          {
            "key": "service.name",
            "value": {
              "stringValue": "checkout"
            }
          }
        ]
      },
      "scopeLogs": [
        {
          "logRecords": [
            {
              "severityText": "ERROR",
              "body": {
                "stringValue": "payment webhook retry exhausted"
              },
              "attributes": [
                {
                  "key": "order_id",
                  "value": {
                    "stringValue": "ord_123"
                  }
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
StatusMeaning
200Accepted and durably queued - OTLP's own success contract, not this API's usual `202`. Body is an empty `ExportLogsServiceResponse` (`{}`).
{}
400The payload was not a well-formed OTLP export request, or was empty.
{
  "error": "invalid_event",
  "message": "The request body has no \"resourceLogs\" key. This endpoint accepts OTLP LogsData (ExportLogsServiceRequest)."
}
401No credential, or an unrecognised one.
403A valid key, but not an ingest key.
413Body over the size cap.
429This key exceeded its rate limit.
503The ingest pipeline is not available. Nothing was stored; retry.
Try it out
/ingest/otel/v1/logs

Paste an ingest key above to send this request.

As curl
curl -X POST '/ingest/otel/v1/logs' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"resourceLogs": [{"resource": {"attributes": [{"key": "service.name","value": {"stringValue": "checkout"}}]},"scopeLogs": [{"logRecords": [{"severityText": "ERROR","body": {"stringValue": "payment webhook retry exhausted"},"attributes": [{"key": "order_id","value": {"stringValue": "ord_123"}}]}]}]}]}'

POST /ingest/otel/v1/traces

The OTLP/HTTP traces path, under the `/ingest/otel` base path. An exporter whose generic `endpoint` is your API origin followed by `/ingest/otel` appends `/v1/traces` itself. It accepts OTLP JSON or protobuf with an ingest key and maps each span onto the normal tenant-scoped ingestion pipeline.

AuthIngest key
Request bodyAn OTLP `ExportTraceServiceRequest` containing `resourceSpans`. Each span retains its trace and parent ids, timing, status, resource attributes, and span attributes.
One server spanapplication/json
{
  "resourceSpans": [
    {
      "resource": {
        "attributes": [
          {
            "key": "service.name",
            "value": {
              "stringValue": "checkout"
            }
          }
        ]
      },
      "scopeSpans": [
        {
          "spans": [
            {
              "traceId": "5B8EFFF798038103D269B633813FC60C",
              "spanId": "EEE19B7EC3C1B174",
              "name": "POST /checkout",
              "kind": 2,
              "startTimeUnixNano": "1788948000000000000",
              "endTimeUnixNano": "1788948000120000000"
            }
          ]
        }
      ]
    }
  ]
}
StatusMeaning
200Accepted and durably queued. The JSON response is an empty `ExportTraceServiceResponse` (`{}`).
400The payload was not a well-formed OTLP trace export request, or was empty.
401No credential, or an unrecognised one.
403A valid key, but not an ingest key.
413Body over the size cap.
429This key exceeded its rate limit.
503The ingest pipeline is not available. Nothing was stored; retry.
Try it out
/ingest/otel/v1/traces

Paste an ingest key above to send this request.

As curl
curl -X POST '/ingest/otel/v1/traces' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"resourceSpans": [{"resource": {"attributes": [{"key": "service.name","value": {"stringValue": "checkout"}}]},"scopeSpans": [{"spans": [{"traceId": "5B8EFFF798038103D269B633813FC60C","spanId": "EEE19B7EC3C1B174","name": "POST /checkout","kind": 2,"startTimeUnixNano": "1788948000000000000","endTimeUnixNano": "1788948000120000000"}]}]}]}'

POST /ingest/otel/v1/metrics

The OTLP/HTTP metrics path, under the `/ingest/otel` base path. An exporter whose generic `endpoint` is your API origin followed by `/ingest/otel` appends `/v1/metrics` itself. It accepts OTLP JSON or protobuf with an ingest key and maps each gauge, sum, or histogram data point onto the normal tenant-scoped ingestion pipeline.

AuthIngest key
Request bodyAn OTLP `ExportMetricsServiceRequest` containing `resourceMetrics`. Metric identity, point values or buckets, temporality, monotonic flag, timestamps, and attributes are retained.
One gauge data pointapplication/json
{
  "resourceMetrics": [
    {
      "resource": {
        "attributes": [
          {
            "key": "service.name",
            "value": {
              "stringValue": "checkout"
            }
          }
        ]
      },
      "scopeMetrics": [
        {
          "metrics": [
            {
              "name": "process.runtime.memory",
              "unit": "By",
              "gauge": {
                "dataPoints": [
                  {
                    "timeUnixNano": "1788948000000000000",
                    "asDouble": 104857600
                  }
                ]
              }
            }
          ]
        }
      ]
    }
  ]
}
StatusMeaning
200Accepted and durably queued. The JSON response is an empty `ExportMetricsServiceResponse` (`{}`).
400The payload was not a well-formed OTLP metrics export request, or was empty.
401No credential, or an unrecognised one.
403A valid key, but not an ingest key.
413Body over the size cap.
429This key exceeded its rate limit.
503The ingest pipeline is not available. Nothing was stored; retry.
Try it out
/ingest/otel/v1/metrics

Paste an ingest key above to send this request.

As curl
curl -X POST '/ingest/otel/v1/metrics' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"resourceMetrics": [{"resource": {"attributes": [{"key": "service.name","value": {"stringValue": "checkout"}}]},"scopeMetrics": [{"metrics": [{"name": "process.runtime.memory","unit": "By","gauge": {"dataPoints": [{"timeUnixNano": "1788948000000000000","asDouble": 104857600}]}}]}]}]}'

GET /v1/hosts/os-hardening-setup.sh

Returns the static shell script used by the Hosts setup flow to install or remove scheduled Lynis hardening reporting. The script contains no workspace credential; its install mode accepts the ingest key as a command-line flag.

AuthNone - public
StatusMeaning
200The setup script as `text/x-shellscript`, with a short public cache lifetime.
Try it out
/v1/hosts/os-hardening-setup.sh
As curl
curl -X GET '/v1/hosts/os-hardening-setup.sh' \
  -H 'Authorization: Bearer <your API key>'

GET /v1/hosts/os-vulnerability-setup.sh

Returns the static shell script used by the Hosts setup flow to install or remove scheduled Trivy vulnerability reporting. The script contains no workspace credential; its install mode accepts the ingest key as a command-line flag.

AuthNone - public
StatusMeaning
200The setup script as `text/x-shellscript`, with a short public cache lifetime.
Try it out
/v1/hosts/os-vulnerability-setup.sh
As curl
curl -X GET '/v1/hosts/os-vulnerability-setup.sh' \
  -H 'Authorization: Bearer <your API key>'

API Keys

GET /v1/api-keys

Every API key this workspace has created, active or revoked - name, prefix, scope, and last-used time. Never the secret itself; see createApiKey for the one response that carries it.

AuthSession cookie
StatusMeaning
200The workspace's API keys.
Try it out
/v1/api-keys

Paste an API key above to send this request.

As curl
curl -X GET '/v1/api-keys' \
  -H 'Authorization: Bearer <your API key>'

POST /v1/api-keys

Mints a new key with the given name, scope (`read_only`, `full_access`, or `ingest`), and expiry. The full secret is returned in this response only - it is stored hashed and cannot be retrieved again.

AuthSession cookie
Request bodyThe key's name, scope, and expiry in days (or `null` for never).
A 90-day ingest keyapplication/json
{
  "name": "Log Shipper - prod",
  "scope": "ingest",
  "expiresInDays": 90
}
StatusMeaning
201Key created; the response body is the only time its secret is shown.
400Missing or invalid name, scope, or expiresInDays.
Try it out
/v1/api-keys

Paste an API key above to send this request.

As curl
curl -X POST '/v1/api-keys' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"name": "Log Shipper - prod","scope": "ingest","expiresInDays": 90}'

DELETE /v1/api-keys/{id}

Immediate and irreversible - the next request authenticated with this key returns 401. Rotation is create-then-revoke; there is no separate rotate operation.

AuthSession cookie
StatusMeaning
204Key revoked.
404No such key in this workspace, or it was already revoked.
Try it out
/v1/api-keys/%7Bid%7D

Paste an API key above to send this request. Fill in id.

As curl
curl -X DELETE '/v1/api-keys/%7Bid%7D' \
  -H 'Authorization: Bearer <your API key>'

Saved Queries

POST /v1/saved-searches

Persists an ObiQL query, its source (`logs` or `audit`), default time range, and visibility (`private` or `shared` workspace-wide) as a named, reusable saved query - what the Log Explorer's "Save query" drawer writes.

AuthSession cookie or personal access token
Request bodyA name, an ObiQL query, a source, a default time range, and a visibility. `source` defaults to `logs`.
Payments errors, shared with the workspaceapplication/json
{
  "name": "Payments errors, last hour",
  "query": "level:error service:payments",
  "defaultRange": "1h",
  "visibility": "shared",
  "source": "logs"
}
StatusMeaning
201The created saved query.
400Missing name, or a query that fails to compile - see `message` for the ObiQL-specific reason.
Try it out
/v1/saved-searches

Paste an API key above to send this request.

As curl
curl -X POST '/v1/saved-searches' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"name": "Payments errors, last hour","query": "level:error service:payments","defaultRange": "1h","visibility": "shared","source": "logs"}'

GET /v1/saved-searches

Every saved query visible to the caller in this workspace - their own (`private` or `shared`) plus every other member's `shared` ones - optionally narrowed with `?q=` to a case-insensitive substring of the name, what the Explorer sidebar panel's search box calls.

AuthSession cookie or personal access token
StatusMeaning
200The caller's visible saved queries.
Try it out
/v1/saved-searches

Paste an API key above to send this request.

As curl
curl -X GET '/v1/saved-searches' \
  -H 'Authorization: Bearer <your API key>'

GET /v1/saved-searches/{id}

One saved query by id - what the Explorer's stable `?saved=` link resolves on load, so the same URL always opens whatever the query currently contains rather than a snapshot frozen at share time. 404s a `private` query someone else owns exactly like it 404s one that does not exist, so its existence is never revealed to a non-owner.

AuthSession cookie or personal access token
StatusMeaning
200The saved query.
404No such saved query, or it exists but is private to someone else.
Try it out
/v1/saved-searches/%7Bid%7D

Paste an API key above to send this request. Fill in id.

As curl
curl -X GET '/v1/saved-searches/%7Bid%7D' \
  -H 'Authorization: Bearer <your API key>'

PATCH /v1/saved-searches/{id}

Renames a saved query, re-points its query/default range, or changes its visibility. Owner-only: every other member can load a `shared` query but not modify it.

AuthSession cookie or personal access token
Request bodyAny subset of name/query/defaultRange/visibility/source - only the fields present are changed.
Renameapplication/json
{
  "name": "Payments errors (last hour)"
}
StatusMeaning
200The updated saved query.
403The saved query exists and is visible to the caller, but they are not its owner.
404No such saved query.
Try it out
/v1/saved-searches/%7Bid%7D

Paste an API key above to send this request. Fill in id.

As curl
curl -X PATCH '/v1/saved-searches/%7Bid%7D' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"name": "Payments errors (last hour)"}'

DELETE /v1/saved-searches/{id}

Owner-only, same rule as renaming. A saved query linked to an alert rule cannot be deleted until the rule is unlinked or repointed.

AuthSession cookie or personal access token
StatusMeaning
204Deleted. No body.
403The saved query exists and is visible to the caller, but they are not its owner.
404No such saved query.
409The saved query is still linked to one or more alert rules.
Try it out
/v1/saved-searches/%7Bid%7D

Paste an API key above to send this request. Fill in id.

As curl
curl -X DELETE '/v1/saved-searches/%7Bid%7D' \
  -H 'Authorization: Bearer <your API key>'

POST /v1/background-searches

Starts an ObiQL search that keeps running after this call returns, and stores the first 1,000 rows of its result for 7 days. Takes the same `query`, `from`, `to` and `scope` as `POST /v1/query`. Background searches are private to the member who started them. Set `notifyByEmail` to email that member's verified address when the search finishes; the email carries the search's name, how many events matched and a link, never the results themselves. Activity searches, `| delete` and `| askObi` cannot run in the background.

AuthSession cookie or personal access token
Request bodyThe search to run, an optional name, and whether to email you when it finishes.
A week of payment errors, emailed when doneapplication/json
{
  "name": "Payment errors this week",
  "query": "level:error service:payments",
  "from": "now-7d",
  "to": "now",
  "notifyByEmail": true
}
StatusMeaning
202The background search, queued to run.
400The request or the query is not valid, or the query cannot run in the background.
403The credential has no member identity to own the search.
429You, or the workspace, already have the most background searches allowed running at once.
Try it out
/v1/background-searches

Paste an API key above to send this request.

As curl
curl -X POST '/v1/background-searches' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"name": "Payment errors this week","query": "level:error service:payments","from": "now-7d","to": "now","notifyByEmail": true}'

GET /v1/background-searches

Your own background searches in this workspace, newest first, with their status and match counts but without their results.

AuthSession cookie or personal access token
StatusMeaning
200Your background searches.
Try it out
/v1/background-searches

Paste an API key above to send this request.

As curl
curl -X GET '/v1/background-searches' \
  -H 'Authorization: Bearer <your API key>'

GET /v1/background-searches/{id}

One of your background searches. Once it has finished, `result` holds the stored rows in the same shape `POST /v1/query` returns.

AuthSession cookie or personal access token
StatusMeaning
200The background search.
404No such background search, it has expired, or it belongs to someone else.
Try it out
/v1/background-searches/%7Bid%7D

Paste an API key above to send this request. Fill in id.

As curl
curl -X GET '/v1/background-searches/%7Bid%7D' \
  -H 'Authorization: Bearer <your API key>'

DELETE /v1/background-searches/{id}

Deletes one of your background searches and its result. Deleting one that is still running discards its result when it finishes, and no email is sent.

AuthSession cookie or personal access token
StatusMeaning
204Deleted. No body.
404No such background search, or it belongs to someone else.
Try it out
/v1/background-searches/%7Bid%7D

Paste an API key above to send this request. Fill in id.

As curl
curl -X DELETE '/v1/background-searches/%7Bid%7D' \
  -H 'Authorization: Bearer <your API key>'

Search History

GET /v1/search-history

The last 20 distinct searches the caller has run, most recently run first - what the Log Explorer's History menu and the History tab on the Searches screen list. Page through it with `limit` (1 to 100, default 20) and `offset` (default 0); `total` in the response counts every entry, not just the page. Private to the caller: there is no parameter for reading another member's history, and no role that can. A credential with no person behind it has none and reads as an empty list.

AuthSession cookie or personal access token
StatusMeaning
200One page of the caller's recent searches, with the total.
400`limit` or `offset` is not a whole number in range.
Try it out
/v1/search-history

Paste an API key above to send this request.

As curl
curl -X GET '/v1/search-history' \
  -H 'Authorization: Bearer <your API key>'

POST /v1/search-history

Records a search in the caller's own history. Running the same query against the same source again updates that entry - moving it to the top and counting the run - rather than adding a second one, and only the 20 most recently run are kept. `range` is stored and handed back verbatim, never evaluated: a relative token such as `15m` or `all`, or an absolute `<from>/<to>` pair of ISO instants.

AuthSession cookie or personal access token
Request bodyThe ObiQL query as it was typed, including a `source=audit` chip if the search addressed Activity, and the time range it was run over.
A search over the last hourapplication/json
{
  "query": "level:error service:payments",
  "range": "1h"
}
StatusMeaning
204Recorded, or ignored for a credential with no personal identity. No body.
400The query or range is not a string, or is longer than the limit.
Try it out
/v1/search-history

Paste an API key above to send this request.

As curl
curl -X POST '/v1/search-history' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"query": "level:error service:payments","range": "1h"}'

DELETE /v1/search-history/{id}

Removes a single entry from the caller's own history. An id belonging to someone else is indistinguishable from one that never existed, and neither is reported as an error.

AuthSession cookie or personal access token
StatusMeaning
204Gone, whether or not it was there. No body.
Try it out
/v1/search-history/%7Bid%7D

Paste an API key above to send this request. Fill in id.

As curl
curl -X DELETE '/v1/search-history/%7Bid%7D' \
  -H 'Authorization: Bearer <your API key>'

DELETE /v1/search-history

Forgets every search in the caller's own history. Saved queries are not affected.

AuthSession cookie or personal access token
StatusMeaning
204Cleared. No body.
Try it out
/v1/search-history

Paste an API key above to send this request.

As curl
curl -X DELETE '/v1/search-history' \
  -H 'Authorization: Bearer <your API key>'

Settings

GET /v1/settings/retention

The workspace-level default retention window in days that applies to any input without its own override.

AuthSession cookie or personal access token
StatusMeaning
200Current retention setting.
Try it out
/v1/settings/retention

Paste an API key above to send this request.

As curl
curl -X GET '/v1/settings/retention' \
  -H 'Authorization: Bearer <your API key>'

PATCH /v1/settings/retention

Raising the retention window applies forward only; lowering it deletes the newly out-of-window data through one audited, tenant-scoped path.

AuthSession cookie or personal access token
Request bodyThe new retention window in days.
StatusMeaning
200Retention setting updated.
Try it out
/v1/settings/retention

Paste an API key above to send this request.

As curl
curl -X PATCH '/v1/settings/retention' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{}'

GET /v1/settings/add-ons

Every add-on and whether this workspace has it switched on. Each workspace decides for itself; switching one here never changes another workspace.

AuthSession cookie or personal access token
StatusMeaning
200Each add-on's key and whether it is on.
{
  "addOns": {
    "application-observability": false,
    "monitor": true,
    "hosts": true,
    "liveness-checks": true
  }
}
Try it out
/v1/settings/add-ons

Paste an API key above to send this request.

As curl
curl -X GET '/v1/settings/add-ons' \
  -H 'Authorization: Bearer <your API key>'

PUT /v1/settings/add-ons/{key}

Turns one add-on on or off for this workspace only, and takes effect on the next request. Turning one off keeps whatever was set up under it, which comes back when it is turned on again. Requires the owner or admin role.

AuthSession cookie or personal access token
Request bodyWhether the add-on should be on.
Turn OpenTelemetry onapplication/json
{
  "enabled": true
}
StatusMeaning
200Saved. The body is the same map the read returns.
400enabled is not true or false.
403The caller is not an owner or admin of this workspace.
404There is no add-on with that key.
Try it out
/v1/settings/add-ons/%7Bkey%7D

Paste an API key above to send this request. Fill in key.

As curl
curl -X PUT '/v1/settings/add-ons/%7Bkey%7D' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"enabled": true}'

GET /v1/settings/personas

Every persona this workspace offers: the five standard personas and the workspace's own, each with the sidebar items it shows, how many members use it, and whether it is hidden from the picker. A persona only changes which sidebar entries a member sees. It never restricts what they can open or do; roles decide that.

AuthSession cookie or personal access token
StatusMeaning
200Every persona, the workspace default for new members, and the custom persona count and limit.
Try it out
/v1/settings/personas

Paste an API key above to send this request.

As curl
curl -X GET '/v1/settings/personas' \
  -H 'Authorization: Bearer <your API key>'

POST /v1/settings/personas

Creates a persona with a name unique in this workspace, an optional one-line description and the sidebar items it shows. startFrom copies another persona; sidebar items added in a later release follow the standard persona it started from, and are hidden when it started from nothing. A workspace holds at most 25 custom personas. Requires the owner or admin role.

AuthSession cookie or personal access token
Request bodyName, description, the persona to start from (or null), and a map of sidebar item id to shown.
A Support persona started from Developerapplication/json
{
  "name": "Support",
  "description": "Helping customers with sessions and errors.",
  "startFrom": "developer",
  "items": {
    "code.repositories": false,
    "user-analytics.sessions": true
  }
}
StatusMeaning
201Created. The body is the new persona as the list returns it.
400The name, description or an item id is not valid.
403The caller is not an owner or admin of this workspace.
404startFrom names a persona this workspace does not have.
409The name is already used, or the workspace already has 25 custom personas.
Try it out
/v1/settings/personas

Paste an API key above to send this request.

As curl
curl -X POST '/v1/settings/personas' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"name": "Support","description": "Helping customers with sessions and errors.","startFrom": "developer","items": {"code.repositories": false,"user-analytics.sessions": true}}'

PATCH /v1/settings/personas/{id}

A custom persona takes a new name, description or items. A standard persona other than Admin takes items, stored as this workspace's changes to the standard sidebar, and hidden, which removes it from the picker without moving the members already on it. Admin always shows everything and cannot be edited. Requires the owner or admin role.

AuthSession cookie or personal access token
Request bodyThe fields to change.
Show Explorer to Marketingapplication/json
{
  "items": {
    "monitor.explorer": true
  }
}
StatusMeaning
200Saved. The body is the persona as the list returns it.
400The change is not valid for this persona.
403The caller is not an owner or admin of this workspace.
404There is no persona with that id in this workspace.
409Another persona in this workspace already uses that name.
Try it out
/v1/settings/personas/%7Bid%7D

Paste an API key above to send this request. Fill in id.

As curl
curl -X PATCH '/v1/settings/personas/%7Bid%7D' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"items": {"monitor.explorer": true}}'

POST /v1/settings/personas/{id}/reset

Drops this workspace's changes to a standard persona, so it shows the standard sidebar again. Requires the owner or admin role.

AuthSession cookie or personal access token
StatusMeaning
200Reset. The body is the persona as the list returns it.
400The persona is Admin or a custom persona.
403The caller is not an owner or admin of this workspace.
Try it out
/v1/settings/personas/%7Bid%7D/reset

Paste an API key above to send this request. Fill in id.

As curl
curl -X POST '/v1/settings/personas/%7Bid%7D/reset' \
  -H 'Authorization: Bearer <your API key>'

DELETE /v1/settings/personas/{id}

Deletes a custom persona. When members use it, or it is the workspace default, reassignTo names the persona they move to; the move and the delete happen together or not at all. Requires the owner or admin role.

AuthSession cookie or personal access token
StatusMeaning
200Deleted. The body says how many members moved and carries the updated list.
400The persona is a standard persona, or reassignTo is the persona being deleted.
403The caller is not an owner or admin of this workspace.
404The persona or reassignTo is not a persona in this workspace.
409Members use the persona and no reassignTo was given.
Try it out
/v1/settings/personas/%7Bid%7D

Paste an API key above to send this request. Fill in id.

As curl
curl -X DELETE '/v1/settings/personas/%7Bid%7D' \
  -H 'Authorization: Bearer <your API key>'

PUT /v1/settings/personas/default

The persona new members who are not owners or admins start on, and that members who never chose one follow. null returns to the standard default, Developer. Requires the owner or admin role.

AuthSession cookie or personal access token
Request bodyThe persona id, or null.
Default new members to SREapplication/json
{
  "persona": "sre"
}
StatusMeaning
200Saved. The body is the updated list.
400The persona is not valid, or is hidden from the picker.
403The caller is not an owner or admin of this workspace.
404There is no persona with that id in this workspace.
Try it out
/v1/settings/personas/default

Paste an API key above to send this request.

As curl
curl -X PUT '/v1/settings/personas/default' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"persona": "sre"}'

GET /v1/settings/personas/me

Your persona in this workspace, where it came from (your choice, your role, or the workspace default), and the sidebar item ids it hides.

AuthSession cookie or personal access token
StatusMeaning
200Your persona and the sidebar items it hides.
{
  "persona": {
    "id": "developer",
    "kind": "builtin",
    "name": "Developer",
    "description": "Building and debugging application code."
  },
  "source": "standard-default",
  "asked": false,
  "hiddenItemIds": [
    "monitor.hosts",
    "kubernetes.overview"
  ]
}
Try it out
/v1/settings/personas/me

Paste an API key above to send this request.

As curl
curl -X GET '/v1/settings/personas/me' \
  -H 'Authorization: Bearer <your API key>'

PUT /v1/settings/personas/me

Choose one of the personas this workspace offers, or null to follow the workspace default. Applies to this workspace only.

AuthSession cookie or personal access token
Request bodyThe persona id, or null.
Use the SRE personaapplication/json
{
  "persona": "sre"
}
StatusMeaning
200Saved. The body is the same shape the read returns.
400The persona is not valid, or this workspace no longer offers it.
403The caller is not a person who is a member of this workspace.
404There is no persona with that id in this workspace.
Try it out
/v1/settings/personas/me

Paste an API key above to send this request.

As curl
curl -X PUT '/v1/settings/personas/me' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"persona": "sre"}'

GET /v1/settings/personas/members

Each member's persona and where it came from. Requires the owner or admin role.

AuthSession cookie or personal access token
StatusMeaning
200One entry per member.
403The caller is not an owner or admin of this workspace.
Try it out
/v1/settings/personas/members

Paste an API key above to send this request.

As curl
curl -X GET '/v1/settings/personas/members' \
  -H 'Authorization: Bearer <your API key>'

PUT /v1/settings/personas/members/{userId}

Set any persona for a member of this workspace, or null to have them follow the workspace default. Requires the owner or admin role.

AuthSession cookie or personal access token
Request bodyThe persona id, or null.
Move a member to Marketingapplication/json
{
  "persona": "marketing"
}
StatusMeaning
200Saved. The body is the member's updated entry.
400The persona is not valid.
403The caller is not an owner or admin of this workspace.
404The member or the persona is not in this workspace.
Try it out
/v1/settings/personas/members/%7BuserId%7D

Paste an API key above to send this request. Fill in userId.

As curl
curl -X PUT '/v1/settings/personas/members/%7BuserId%7D' \
  -H 'Authorization: Bearer <your API key>' \
  -H 'Content-Type: application/json' \
  -d '{"persona": "marketing"}'

Status Pages

GET /v1/status-page

Which checks are published to this workspace's public status page, and its branding.

AuthSession cookie or personal access token
StatusMeaning
200Status page configuration.
403The Liveness Checks add-on (Liveness Checks and the status page) is turned off for this workspace. An owner or admin can turn it on from Add-ons.
Try it out
/v1/status-page

Paste an API key above to send this request.

As curl
curl -X GET '/v1/status-page' \
  -H 'Authorization: Bearer <your API key>'

GET /v1/public/status-page/{handle}

The one route in this API with no session or API key - a workspace's public status page, reachable by anyone with its handle. Only checks explicitly published to it (`isPublic: true`) are ever included.

AuthNone - public
StatusMeaning
200The published checks' current status.
404No status page with that handle, it has been unpublished, or its workspace has turned the Liveness Checks add-on off.
Try it out
/v1/public/status-page/%7Bhandle%7D

Fill in handle.

As curl
curl -X GET '/v1/public/status-page/%7Bhandle%7D' \
  -H 'Authorization: Bearer <your API key>'

System

GET /healthz

Liveness probe for the API process itself - always unauthenticated, always tenant-free. Used by the container orchestrator, not by product code.

AuthNone - public
StatusMeaning
200The process is up.
{
  "status": "ok"
}
Try it out
/healthz
As curl
curl -X GET '/healthz' \
  -H 'Authorization: Bearer <your API key>'

GET /openapi.json

This document. Generated from this same registry, so `/docs/api/*` and the schema a client's code generator would read from are always the same list of operations.

AuthNone - public
StatusMeaning
200The full OpenAPI 3.1 document.
Try it out
/openapi.json
As curl
curl -X GET '/openapi.json' \
  -H 'Authorization: Bearer <your API key>'