Skip to main content
GET
List Background Tasks

Authorizations

Authorization
string
header
required

Every request authenticates with an API key: Authorization: Bearer {API_KEY}. App endpoints take an app API key; knowledge endpoints take a knowledge base API key (Get Started).

Keep keys server-side; never embed them in client code. Requests with a missing or invalid key fail with HTTP 401 (unauthorized).

Path Parameters

knowledge_base_id
string<uuid>
required

Knowledge base ID: the last segment of the Service API endpoint shown in the knowledge base's API Access dialog (…/knowledge-fs/spaces/<knowledge base ID>), and the segment after /datasets/new/ in the address bar.

Query Parameters

task_ids
string

Comma-separated indexing task or bulk task IDs to look up, up to 100. Cannot be combined with cursor.

Maximum string length: 3699
Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}(,[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}){0,99}$
cursor
string

Cursor from the previous page's next_cursor. Not accepted together with task_ids.

Required string length: 1 - 8192
limit
integer
default:50

Tasks per page. Ignored with task_ids.

Required range: 1 <= x <= 100

Response

One page of tasks, or the tasks looked up.

data
object[]

Tasks, newest first. With task_ids, the indexing tasks found, then the bulk tasks found.

next_cursor
string | null

Cursor for older tasks, or null on the last page and with task_ids. Send it back as cursor.