List judge classes
const url = 'https://example.com/v1/judge-classes?limit=25&scopeKind=tenant';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/v1/judge-classes?limit=25&scopeKind=tenant' \ --header 'Authorization: Bearer <token>'Live classes, newest first, cursor-paginated. ?scopeKind=tenant|project|agent (with projectId / agentId) narrows to one scope.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”1..100. Default 25.
Where the previous page ended: its nextCursor, as it came. A runtime that seals cursors takes one only for the same list, filters and caller, within a day; otherwise 400 bad-input, and the list starts again without it. Absent → first page.
Only classes of this scope kind. project and agent need projectId; agent also needs agentId.
Project of the scope, for scopeKind=project|agent.
Agent of the scope, for scopeKind=agent.
Responses
Section titled “Responses”Page of judge classes.
object
object
The deployment’s own word for the class: “expert”, “user”, “arbitrator”.
How much a judgment of this class counts, relative to the others.
Who may assert the class, as the caller sees it: every part that is set must hold. principalIds is sent only to an admin on the class’s scope; principalCount to everyone who reads it.
object
The caller’s reviewer role is at least this (its token’s, or the roster’s).
Users, service tokens, or both.
Only these principals: user ids, or service token ids. Sent only to an admin on the class’s scope.
How many principals the class is restricted to (principalIds), for every reader. Absent when it names none.
Set when the class was retired.
Opaque cursor. Treat as opaque on the client.
Example
{ "data": [ { "scope": { "kind": "tenant" }, "assertableBy": { "minReviewerRole": "standard", "principalKinds": [ "user" ] } } ]}Malformed scope parameters.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Missing / malformed / expired / revoked bearer token.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}