GET /search/tasks/{task_id}
Read a search task
Read the result of a document batch. Use when following up on search_add_documents or search_delete_documents. Before: a task id from those tools. Returns the task status and counts. Scope: search:write.
API key (Bearer), on the public API endpoint.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
task_id | path | string · required | Task id (tsk_...). |
Responses
| Status | Description | Body |
|---|---|---|
2XX | Success: the JSON body the route returns (see the description for its fields). | object |
401 | Key missing or invalid | Error |
4XX | Refused: act on detail.code, then follow detail.next_action (404 not_found while the service is not open to the account). | Error |
Examples
curl
curl -X GET "$GALON_API_BASE/search/tasks/<task_id>" \
-H "Authorization: Bearer $GALON_API_KEY"