Skip to content

Get Worker Task

Method: GET

Endpoint: /api/v2/worker-tasks/{workerTaskId}

Authentication: Supports Authorization: Bearer <YOUR_API_KEY>, api-key: <YOUR_API_KEY>, and ?token=<YOUR_API_KEY>. Prefer Bearer token.

GET/api/v2/worker-tasks/{workerTaskId}Get worker task
AuthenticationRequired

Stored only in this browser tab. Sent only to https://openapi.coreclaw.com.

Parameters
path · stringRequired

Saved Worker task template slug. Get it from the `data.list[].slug` field of `GET /api/v2/worker-tasks`. The playground prefills a sample slug; replace it with your own.

Request BodyNot applicable
No JSON request body. Fill the path or query parameters above.

Use this endpoint to read the details of a saved task template.

  • workerTaskId is the saved task template slug.
ParameterRequiredTypeDescription
workerTaskIdYesstringSaved Worker task template slug. Get it from the data.list[].slug field of GET /api/v2/worker-tasks.
Terminal window
curl -X GET "https://openapi.coreclaw.com/api/v2/worker-tasks/YOUR_WORKER_TASK_ID" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"code": 0,
"data": {
"description": "Daily demo task",
"id": 2001,
"schedule_enabled": 1,
"schedule_time": "09:30",
"schedule_type": 1,
"slug": "demo-task",
"title": "Demo Task",
"version": "latest",
"worker_path": "owner~demo-worker",
"worker_slug": "demo-worker"
},
"message": "success",
"request_id": "req-123"
}
  • API v2 supports Bearer token, the legacy api-key header, and query token. Prefer Bearer token for new integrations.
HTTP StatusApplication CodeMeaning
2000OK
40011000Bad Request
40112001Unauthorized
40411004Not Found
42211000Unprocessable Entity
42913000Too Many Requests
50010000Internal Server Error