Skip to main content
GET
/
v1
/
challenges
List challenges
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://sandbox.api.enfinitos.com/v1/challenges', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "ok": true,
  "data": {
    "challenges": [
      {
        "id": "<string>",
        "rightId": "<string>",
        "challengerOrgId": "<string>",
        "reason": "<string>",
        "resolvedAt": "2023-11-07T05:31:56Z",
        "resolution": "<string>",
        "createdAt": "2023-11-07T05:31:56Z"
      }
    ],
    "nextCursor": 123,
    "total": 123
  },
  "contractVersion": "<string>"
}

Authorizations

Authorization
string
header
required

API key sent as Authorization: Bearer <api-key>.

Query Parameters

status
enum<string>

Filter by challenge status.

Available options:
OPEN,
RESOLVED_UPHELD,
RESOLVED_OVERTURNED,
WITHDRAWN
cursor
integer
default:0

Zero-indexed pagination cursor (slice start). Echo nextCursor from the previous page.

Required range: x >= 0
limit
integer
default:50

Max items per page, clamped to [1, 200]. Defaults to 50.

Required range: 1 <= x <= 200

Response

A page of challenges.

ok
boolean
required
data
object
required

Route-specific payload. Operation responses refine this.

contractVersion
string
required
Allowed value: "v1.0"