API ReferenceFrontiers, campaigns, tasks

Tasks, newest first

GET
/v1/tasks
/v1/tasks

Query Parameters

campaign_idstring

Restrict to one campaign.

Pattern: "^0[xX][0-9a-fA-F]{64}$"

owner_didstring

Restrict to one owner. Accepts any of the four DID request forms.

task_typeinteger

Restrict to 0 (SUBMISSION) or 1 (VALIDATION). Anything else is a 400 — a typo'd filter fails loudly rather than silently returning an empty page.

Value in: 0 | 1

limitinteger

Page size. Server-configured default and ceiling (API_DEFAULT_LIMIT / API_MAX_LIMIT; 50 and 200 unless overridden). A value above the ceiling is silently clamped, not rejected — check pagination.limit in the response rather than assuming the requested value was honoured. Values below 1, or non-integers, are a 400.

Minimum: 1

cursorstring

Opaque cursor from a previous response's pagination.nextCursor. Omit for the first page. A malformed cursor is a 400.

curl -X GET "http://lineage-api.xny-staging.svc.cluster.local:8001/v1/tasks?campaign_id=0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41&owner_did=string&task_type=0&limit=1&cursor=string"

A page of tasks.

{
  "items": [
    {
      "taskId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "campaignId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "frontierId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "taskType": 0,
      "ownerDidId": "00000000-0000-0000-0000-0000000007d1",
      "execution": 0,
      "metadataHash": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "metadataUri": "string",
      "blockNumber": 0,
      "name": "string"
    }
  ],
  "pagination": {
    "limit": 0,
    "nextCursor": "string",
    "hasMore": true
  }
}

Last updated