GRGlobalRouter Docs
Console

Task / GET

Stream task events

Subscribes to SSE events for one async task.

GET /v1/tasks/{task_id}/events

Used to listen for task status changes in the frontend or backend. Mobile shows only the endpoint list; use desktop for event fields.

Back to Task endpoint list

Request parameters

FieldTypeRequiredDescription
task_idpathYesTask ID.

Request examples

Stream task events request examples
curl -N "https://api.globalrouter.com/v1/tasks/task_01HV.../events" \
  -H "Authorization: Bearer $GR_API_KEY"

Response fields

FieldTypeRequiredDescription
eventstringNoSSE event name.
data.statusstringYesTask status.
data.progressnumberNoTask progress.

Response example

Response example
event: task.updated
data: {"id":"task_01HV...","status":"running","progress":40}

event: task.updated
data: {"id":"task_01HV...","status":"succeeded","progress":100}

Errors

HTTPCodeDescription
401UNAUTHORIZEDMissing or invalid Authorization Bearer token.
403FORBIDDENThe current API key is not allowed to call this scope or model.
429RATE_LIMITEDRequests are too frequent or the asynchronous task queue is full; reduce concurrency or retry later.