Get an operation
const url = 'https://api.deploybase.eu/api/v1/api/v1/operations/example';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.deploybase.eu/api/v1/api/v1/operations/example \ --header 'Authorization: <Authorization>'Returns one operation. With ?wait= (for example 25s; at most 25 s) the response is held until the status or step changes from what it was when the request arrived, or the wait runs out, and then returns the operation as it is; this replaces polling. A working operation carries poll_after_ms and a Retry-After header for clients that do not long-poll.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Operation ID (UUID)
Query Parameters
Section titled “ Query Parameters ”How long to wait for a change: a duration such as 25s, or seconds; at most 25 s
Responses
Section titled “ Responses ”OK
object
object
object
object
object
PollAfterMs is how long a client that does not long-poll should wait before reading again; absent once the operation is terminal.
object
object
object
Component is “static”, “ssr” or “function:
Error says why the component is not ok, when a status code alone does not.
Protected: the site is private and verify could not get past its access gate (DEP-967).
Example
{ "data": { "actor": { "kind": "user" }, "kind": "ship", "reason": "build_failed", "status": "working", "step": "upload", "who_acts": "agent" }}Bad Request
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Example generated
{ "code": "example", "details": "example", "docs_url": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }, "next_actions": [ { "action": "example", "cli": "example", "description": "example", "http": "example", "tool": "example" } ], "reason": "example", "who_acts": "example"}Operation not found, or OPERATIONS_API_DISABLED
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Example generated
{ "code": "example", "details": "example", "docs_url": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }, "next_actions": [ { "action": "example", "cli": "example", "description": "example", "http": "example", "tool": "example" } ], "reason": "example", "who_acts": "example"}Live 39b0b6ad built