Register Tool Api V1 Workstreams Tools Post
post
/api/v1/workstreams/toolsRegister a versioned runtime tool
Register a tool at runtime that is callable from a workstream step WITHOUT a PR, merge, or deploy. The tool is scoped to the request's workspace β no other workspace can see or dispatch it.
Request bodyapplication/json
| Field | Type | Description |
|---|---|---|
namerequired | string | Unique tool name within the workspace |
display_namerequired | string | Human-readable name |
description | string | What the tool does |
category | string | Tool category |
endpoint_path | string | null | HTTP path (e.g. /api/v1/integrations/data/invoices) |
http_method | string | HTTP method (GET, POST, PUT, PATCH, DELETE) |
parameters | object | JSON Schema for tool input parametersshow nestedEmpty object. |
auth_config | object | null | Optional auth configuration. {"type": "bearer", "token": "..."} for bearer auth, {"type": "api_key", "api_key": "...", "header_name": "X-API-Key"} for API keys. NOTE: e2e_bypass is NOT available via the API β it is operator-only. |
body | string | null | Python source defining run(params) -> dict; executed in the sandbox. |
body_language | string | null | Currently only 'python'. |
Responses
201Successful Response
| Field | Type | Description |
|---|---|---|
idrequired | string (uuid) | β |
namerequired | string | β |
display_namerequired | string | β |
descriptionrequired | string | β |
categoryrequired | string | β |
endpoint_pathrequired | string | null | β |
http_methodrequired | string | β |
parametersrequired | object | βshow nestedEmpty object. |
auth_configrequired | object | null | β |
workspace_idrequired | string (uuid) | β |
is_enabledrequired | boolean | β |
body | string | null | β |
body_language | string | null | β |
version | integer | β |
body_sha256 | string | null | β |
tool_versionrequired | string | β |
executorrequired | string | β |
provenance | string | β |
deprecated_at | string (date-time) | null | β |
422Validation Error
| Field | Type | Description |
|---|---|---|
detail | ValidationError[] | βitem shape |
curl https://api.dev.arch.ie/api/v1/workstreams/tools \
-X POST \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"display_name": "string",
"description": "string",
"category": "string",
"endpoint_path": null,
"http_method": "string",
"parameters": {},
"auth_config": null,
"body": null,
"body_language": null
}'