List judgment records within the current authentication scope with pagination, optionally filtered by Session.
The Decision API is currently in Beta. Interface definitions, response structures, and behavior may change in subsequent versions. Follow documentation updates and verify compatibility before using it in production.
GET /api/v1/forward/decisions
Request headers
| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer <PAT or SAT>. Supports administrator and Identity-level SATs. |
Query parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| session_id | string | No | — | List only judgment records for this Session. The Session must be within the current authentication scope and not archived. |
| after_id | string | No | — | Page toward older records using the previous page's last_id. |
| before_id | string | No | — | Page toward newer records using the current page's first_id. |
| limit | integer | No | 20 | Records per page, from 1 to 100. |
after_id and before_id cannot be supplied together. ID parameters must be 1–256 bytes, with no leading or trailing whitespace, control characters, or /, \\, ?, #. Other query parameters such as identity_id, status, and order are not accepted.
Example request
Query records in the current scope:
last_id as after_id:
Example response
HTTP 200 OK (includes a running record)
Response fields and pagination
| Field | Type | Description |
|---|---|---|
| data | array | Decision objects on the current page. May include running, completed, and failed records. |
| has_more | boolean | Whether more records exist in the current query direction. The default and after_id query toward older records; before_id queries toward newer records. |
| first_id | string or null | ID of the first record on the current page; null for an empty page. |
| last_id | string or null | ID of the last record on the current page; null for an empty page. |
session_id filter; a mismatch returns 404.
When session_id is omitted, records produced from both explicit state input and Session input can be returned. An Identity-level SAT can list only records within its bound Identity's scope.
Errors
| HTTP | Code | Trigger |
|---|---|---|
| 400 | invalid_decision_input or no Code | Duplicate, empty, unknown, or malformed parameters; limit out of range; or both cursors supplied. |
| 401 | — | Credentials are missing, invalid, or expired. |
| 403 | — | The current credentials lack the required access permissions. |
| 404 | — | The filtered Session is inaccessible or archived, its Identity is unavailable, or the cursor is outside the current filter scope. |
| 500 | — | Internal service error. |