Skip to content

List judge classes

GET
/v1/judge-classes
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.

limit
integer
default: 25 >= 1 <= 100

1..100. Default 25.

cursor
string

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.

scopeKind
string
Allowed values: tenant project agent

Only classes of this scope kind. project and agent need projectId; agent also needs agentId.

projectId
string
>= 1 characters

Project of the scope, for scopeKind=project|agent.

agentId
string
>= 1 characters

Agent of the scope, for scopeKind=agent.

Page of judge classes.

Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
tenantId
required
string
scope
required
One of:
object
kind
required
string
Allowed value: tenant
name
required

The deployment’s own word for the class: “expert”, “user”, “arbitrator”.

string
weight
required

How much a judgment of this class counts, relative to the others.

number
description
string
assertableBy

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
>= 1 properties
minReviewerRole

The caller’s reviewer role is at least this (its token’s, or the roster’s).

string
Allowed values: standard senior admin
principalKinds

Users, service tokens, or both.

Array<string>
>= 1 items
Allowed values: user service
principalIds

Only these principals: user ids, or service token ids. Sent only to an admin on the class’s scope.

Array<string>
>= 1 items <= 100 items
principalCount

How many principals the class is restricted to (principalIds), for every reader. Absent when it names none.

integer
>= 1
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
unregisteredAt

Set when the class was retired.

string format: date-time
nextCursor

Opaque cursor. Treat as opaque on the client.

string
hasMore
required
boolean
Example
{
"data": [
{
"scope": {
"kind": "tenant"
},
"assertableBy": {
"minReviewerRole": "standard",
"principalKinds": [
"user"
]
}
}
]
}

Malformed scope parameters.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}

Missing / malformed / expired / revoked bearer token.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}