Get Worker Input Schema
Method: GET
Endpoint: /api/v2/workers/{workerId}/input-schema
Authentication: No API token required
Try it
Section titled “Try it”GET
/api/v2/workers/{workerId}/input-schemaGet worker input schemaAuthorizationNot required
This is a public endpoint and does not require an API token.
Parameters
Required
Worker slug or path. You may paste `owner/name`; the playground sends it as `owner~name` for path values.
Request BodyNot applicable
No JSON request body. Fill the path or query parameters above.
When to use this endpoint
Section titled “When to use this endpoint”Use this endpoint to read a Worker input schema and build the input payload.
Identifier Notes
Section titled “Identifier Notes”workerId/worker_idaccepts a Worker slug or a path encoded asowner~namefromowner/name.
Path Parameters
Section titled “Path Parameters”| Parameter | Required | Type | Description |
|---|---|---|---|
workerId | Yes | string | Worker slug or path. You may paste owner/name; the playground sends it as owner~name for path values. |
Request Example
Section titled “Request Example”curl -X GET "https://openapi.coreclaw.com/api/v2/workers/YOUR_WORKER_ID/input-schema"Response Example
Section titled “Response Example”{ "code": 0, "data": { "input_schema": { "properties": { "keyword": { "type": "string" } }, "type": "object" } }, "message": "success", "request_id": "req-123"}- This endpoint does not require an API token.
HTTP Responses
Section titled “HTTP Responses”| HTTP Status | Application Code | Meaning |
|---|---|---|
200 | 0 | OK |
400 | 11000 | Bad Request |
401 | 12001 | Unauthorized |
404 | 11004 | Not Found |
422 | 11000 | Unprocessable Entity |
429 | 13000 | Too Many Requests |
500 | 10000 | Internal Server Error |