Create or replay a persisted run
POST/api/powers/v1/runs
This host waits for execution to settle. A new record returns 201 even when its status reports a provider error or UNKNOWN. Repeating an identical Idempotency-Key returns the saved record with 200. An expectedEndpointRevision mismatch returns 409 before execution; describe again before deciding whether to submit. Authenticate with an organization API key. Native permission names describe runtime capabilities; x-sinecloud-scopes lists the customer key scopes required by Cloud. For a managed request, retain expectedEndpointRevision from endpoint discovery. An explicit binding requires a connection. Save and reuse the original Idempotency-Key and complete request envelope to recover; do not switch between managed and native envelopes. Without a key, a retry can start a new invocation. Read saved runs after uncertain responses; UNKNOWN and reconciliation states do not establish that execution failed.
组织 API Key 鉴权
Authorization: Bearer $SINECLOUD_API_KEY所需权限: toolRun
参数
idempotency-key· header · 可选- Strongly recommended for execution. Reuse the original key and full request body for recovery. Cloud binds it to the current actor and project scope.
X-Sinecloud-Project-Id· header · 可选- Select a currently accessible project. A project-restricted key cannot select another project. Omit to use the key restriction or organization scope as permitted.
请求体
必填
application/json
响应
200- Existing run replayed without another execution
201- Run record created; inspect its status
400- Invalid request
401- Bearer authentication required
402- Insufficient credits to reserve this capability call
403- Request is not authorized
404- Resource not found
405- Method not allowed; inspect Allow
409- Catalog cursor, Endpoint revision, idempotency, or run state conflict
412- Connection credentials are not configured
413- JSON request exceeds 64 KiB
415- Use uncompressed UTF-8 application/json
422- Execution admission rejected
429- Request rate or quota exceeded. Respect Retry-After when supplied.
500- Internal error; details are not disclosed
501- Required execution capability is not supported
502- Runtime response unavailable. Reuse the original Idempotency-Key and request envelope to recover the admitted invocation.
503- Runtime unavailable