API overview

The Verify REST API starts sessions and reads their results. Every request is authenticated with an API key.

Base URL

https://verify.mudbase.dev/api/v1

Authentication

Send your API key in one of two headers:

Authorization: Bearer <your-key>
x-api-key: <your-key>

Requests without a usable key are refused:

  • 401 with Missing API key when no key is sent.
  • 401 with Invalid API key when the key does not match an active key.
  • 401 with API key expired when the key has passed its expiry date.
  • 403 when the key exists but its scopes do not allow the request.

Keys are scoped to one project. A key can only see and change sessions in its own project. Revoke a key in the console if it leaks, and rotate it to issue a new secret.

Scopes

ScopeUsed for
sessions readList sessions (GET /api/v1/sessions).
sessions writeCreate sessions (POST /api/v1/sessions).
decisions readRead a session's decision (GET /api/v1/sessions/{sessionId}).

Give each key only the scopes its job needs. See Authentication and API keys.

Rate limits

Each client address can make 500 requests in any 15-minute window to each endpoint. When the limit is reached the API answers 429 with a Retry-After header, and an X-RateLimit-Reset header with the time the window resets. The count is per client address, and it is checked before the key. See Rate limits.

Endpoints

Method and pathScopePurpose
POST /api/v1/sessionssessions writeCreate a session
GET /api/v1/sessionssessions readList recent sessions
GET /api/v1/sessions/{sessionId}decisions readRead a decision

Every error response is a JSON object with an error message. See Errors.