Skip to main content
get/knowledge-fs/spaces/{knowledge_base_id}/background-tasks
Request example
Response
get/knowledge-fs/spaces/{knowledge_base_id}/background-tasks

Authorization

Authorizationstringheaderrequired#

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_idstringrequired#
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_idsstring#
Comma-separated indexing task or bulk task IDs to look up, up to 100. Cannot be combined with cursor.

Length: max 3699Pattern: ^[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}$

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

Length: 1–8192

limitinteger#
Tasks per page. Ignored with task_ids.

Default: 50

Range: 1–100

Responses

application/json
One page of tasks, or the tasks looked up.
dataobject[]#
Tasks, newest first. With task_ids, the indexing tasks found, then the bulk tasks found.
next_cursorstring#
Cursor for older tasks, or null on the last page and with task_ids. Send it back as cursor.