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/v1Authentication
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:
401withMissing API keywhen no key is sent.401withInvalid API keywhen the key does not match an active key.401withAPI key expiredwhen the key has passed its expiry date.403when 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
| Scope | Used for |
|---|---|
sessions read | List sessions (GET /api/v1/sessions). |
sessions write | Create sessions (POST /api/v1/sessions). |
decisions read | Read 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 path | Scope | Purpose |
|---|---|---|
POST /api/v1/sessions | sessions write | Create a session |
GET /api/v1/sessions | sessions read | List recent sessions |
GET /api/v1/sessions/{sessionId} | decisions read | Read a decision |
Every error response is a JSON object with an error message. See Errors.