Replace the live flow definition
const url = 'https://api-dev.mindflow.io/v1/organizations/%24CURRENT_ORGANIZATION_ID/flows/PLAY-17a64601-40bb-4304-90f8-08ebf6ae3c19/versions/latest/definition';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"source":"import { flow, http, success, trigger } from \"@mindflow-dev/ai-build-workflow-sdk\"\n\nexport const sdkVersion = \"1.0.0\"\n\nconst hook = trigger.webhook(\"Receive an IP\")\n\nexport default flow(\"ip-lookup\", { triggers: [hook], outputs: { country: { type: \"string\" } } }, () => [\n lookup,\n done,\n])\n\nconst lookup = http(\"Look up the IP\", { method: \"GET\", url: `https://ipinfo.io/${hook.body.value.ip}/json` })\n\nconst done = success(\"Return the country\", { country: lookup.body.country })\n","path":"src/ip-lookup.ts"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api-dev.mindflow.io/v1/organizations/%24CURRENT_ORGANIZATION_ID/flows/PLAY-17a64601-40bb-4304-90f8-08ebf6ae3c19/versions/latest/definition \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "source": "import { flow, http, success, trigger } from \"@mindflow-dev/ai-build-workflow-sdk\"\n\nexport const sdkVersion = \"1.0.0\"\n\nconst hook = trigger.webhook(\"Receive an IP\")\n\nexport default flow(\"ip-lookup\", { triggers: [hook], outputs: { country: { type: \"string\" } } }, () => [\n lookup,\n done,\n])\n\nconst lookup = http(\"Look up the IP\", { method: \"GET\", url: `https://ipinfo.io/${hook.body.value.ip}/json` })\n\nconst done = success(\"Return the country\", { country: lookup.body.country })\n", "path": "src/ip-lookup.ts" }'Compiles one Workflow SDK TypeScript definition and replaces the live canvas with it. The live canvas is the working
copy that Studio edits and that deployments tracking latest run, so the next run uses the new definition.
versionId must be the literal latest. This call does not save a named version: take a checkpoint first with
POST …/flows/{flowId}/versions when you want one you can restore.
The response carries source: the canonical TypeScript of what was saved, which the next read returns. Overwrite
your local file with it. Saving a definition that matches the live canvas changes nothing and keeps the revision.
A step’s id is the name of its const (ticketFields is stored as ticket-fields), or the id in its options.
A step keeps its canvas position when the new definition still contains its id. Steps and links that the new
definition no longer contains are deleted from the canvas. Step and link ids are scoped to this flow, so two flows
that reuse a step id never share rows.
Renamed steps: renaming a const gives the step a new id, so the save deletes the old step and creates a new
one. The new step does not keep the canvas position, the run history, or the credentials that deployments map to
the old step. The call still returns 200, and findings carries one save.renamed warning for each new step
or trigger that has the kind and title of a deleted one. To keep the old id, restore the name or set id in the
step’s options, then save again.
The definition owns the flow’s description, timeout, variables (names, order, and values), and declared outputs. The flow’s name, icon, notifications, data retention, and hidden execution data stay as set in Studio.
Unsupported constructs: when the live canvas holds constructs the Workflow SDK cannot express (for example a
jump between branches), or values set in Studio that this save would reset (for example an operation’s server
variables), the call returns 409 UNSUPPORTED_CONSTRUCTS with findings and changes nothing. To overwrite
them, take a checkpoint, then retry with discardUnsupported: true. Saving the definition the last read returned
changes nothing, so it never needs that consent.
Concurrency: read GET …/versions/latest/definition first and send its revision as baseRevision.
baseRevision is required once the canvas has any step or link. It is optional on an empty canvas.
When the canvas changed since that read, the call returns 409 REVISION_CONFLICT and changes nothing.
Re-read the latest definition, re-apply your change, and retry. Never retry with a revision you did not read.
Success is 200 with flowId, the new revision, source, sdkVersion, and warnings in findings. Compile
failures return 400 FLOW_COMPILATION_FAILED with findings. 409 NO_LATEST_DEPLOYMENT when the flow has
no live canvas yet: create a flow deployment with versionId: "latest" first. 502 BAD_GATEWAY when the
integration catalog cannot be read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Opaque id of the organization that owns the resource. In a playbook step this can be filled from the current organization when the caller leaves it unset.
Example
ORGA-57b858ed-ec60-4507-b2ef-ea58244ac742Organization that owns the flow. Pass the value unchanged.
Opaque id of a flow. Use it on get, update, delete, versions, and when deploying the flow.
Example
PLAY-17a64601-40bb-4304-90f8-08ebf6ae3c19Flow id. Pass the value unchanged.
The literal latest. In a version path it names the live canvas: the working copy that Studio edits and that flow
deployments tracking latest run.
Must be the literal latest. Only the live canvas can be replaced. Any other value returns 400.
Example
latestRequest Bodyrequired
Section titled “Request Bodyrequired”Request body for replacing the live canvas with one Workflow SDK TypeScript definition. Send baseRevision from the
last latest-definition read so a concurrent edit is detected instead of overwritten.
object
Workflow SDK TypeScript source to compile and write to the live canvas.
Relative path cited in findings. Defaults to workflow.ts when omitted.
Optional SHA-256 of source. A mismatch fails the request with compile findings.
revision from the last GET …/versions/latest/definition (or the last replace or restore). Required once the
live canvas has any step or link. A value that no longer matches returns 409 REVISION_CONFLICT.
Set to true to overwrite a live canvas that holds constructs the Workflow SDK cannot express, or Studio values
this save would reset (such as an operation’s server variables). Without it, such a canvas returns 409
UNSUPPORTED_CONSTRUCTS and stays unchanged. Take a checkpoint first: the overwritten constructs and values are
lost from the live canvas.
Examples
First write on an empty canvas
Omit baseRevision when the live canvas has no steps or links yet.
{ "source": "import { flow, http, success, trigger } from \"@mindflow-dev/ai-build-workflow-sdk\"\n\nexport const sdkVersion = \"1.0.0\"\n\nconst hook = trigger.webhook(\"Receive an IP\")\n\nexport default flow(\"ip-lookup\", { triggers: [hook], outputs: { country: { type: \"string\" } } }, () => [\n lookup,\n done,\n])\n\nconst lookup = http(\"Look up the IP\", { method: \"GET\", url: `https://ipinfo.io/${hook.body.value.ip}/json` })\n\nconst done = success(\"Return the country\", { country: lookup.body.country })\n", "path": "src/ip-lookup.ts"}Revise the live canvas
Send the revision from the last GET …/versions/latest/definition as baseRevision.
{ "source": "import { flow, http, success, trigger } from \"@mindflow-dev/ai-build-workflow-sdk\"\n\nexport const sdkVersion = \"1.0.0\"\n\nconst hook = trigger.webhook(\"Receive an IP\")\n\nexport default flow(\"ip-lookup\", { triggers: [hook], outputs: { country: { type: \"string\" } } }, () => [\n lookup,\n done,\n])\n\nconst lookup = http(\"Look up the IP\", { method: \"GET\", url: `https://ipinfo.io/${hook.body.value.ip}/json` })\n\nconst done = success(\"Return the country\", { country: lookup.body.country })\n", "path": "src/ip-lookup.ts", "baseRevision": "663bff12687e1377d81970ce143ba12b9d424a59edd7ab23e485594a8e9c8f79"}Responses
Section titled “Responses”Live canvas replaced (or already equal). Returns the new revision and the canonical source.
The live canvas after a replace: its new revision and the canonical TypeScript of the saved definition. Overwrite
your local file with source; it is what the next GET …/versions/latest/definition returns.
object
Flow whose live canvas changed. Same value as the flowId path parameter.
Revision of the live canvas after this change. Send it as baseRevision on the next replace.
Canonical Workflow SDK TypeScript of the saved definition.
Workflow SDK version of the server that handled the request. A definition whose sdkVersion has another major
version fails with an sdk.version finding: update the plugin, then rewrite the definition.
Warnings about the saved definition. Includes one save.renamed warning for each new step or trigger that has
the kind and title of a step the save deleted, which is what renaming a const does.
One compile, decompile or save finding. error findings block the request; warning findings are advice and
never block. When the finding comes from the TypeScript source, line and column locate it (1-based).
object
Stable rule identifier for the finding, grouped by layer (for example syntax.parse, structure.reference, catalog.operation, save.renamed).
error blocks the request; warning is advice.
What is wrong, in one sentence.
How to fix it, when the rule knows.
Relative path of the TypeScript file the finding is about.
1-based line where the construct starts.
1-based column where the construct starts.
1-based line where the construct ends.
1-based column where the construct ends.
Step id from the definition when the finding is about one step.
Dotted option path inside the step (for example fields.channel) when the finding is about one option.
Examples
Definition saved
The definition replaced the live canvas and raised no warning.
{ "flowId": "PLAY-17a64601-40bb-4304-90f8-08ebf6ae3c19", "revision": "ba78a5a43ca73898a4d85cb80dfee6483ea30fbf158ce13a2cc49ec901880088", "source": "import { flow, http, success, trigger } from \"@mindflow-dev/ai-build-workflow-sdk\"\n\nexport const sdkVersion = \"1.0.0\"\n\nconst hook = trigger.webhook(\"Receive an IP\")\n\nexport default flow(\"ip-lookup\", { triggers: [hook], outputs: { country: { type: \"string\" } } }, () => [\n lookup,\n done,\n])\n\nconst lookup = http(\"Look up the IP\", { method: \"GET\", url: `https://ipinfo.io/${hook.body.value.ip}/json` })\n\nconst done = success(\"Return the country\", { country: lookup.body.country })\n", "sdkVersion": "1.0.0", "findings": []}A renamed step was replaced
The lookup const was renamed to locate. The save deleted step lookup, created step locate, and
warns that it did so.
{ "flowId": "PLAY-17a64601-40bb-4304-90f8-08ebf6ae3c19", "revision": "d0f0a32881cc5c3461b01c2c4dd1c40d70b64b2c71f34c7664c5c745f07ab633", "source": "import { flow, http, success, trigger } from \"@mindflow-dev/ai-build-workflow-sdk\"\n\nexport const sdkVersion = \"1.0.0\"\n\nconst hook = trigger.webhook(\"Receive an IP\")\n\nexport default flow(\"ip-lookup\", { triggers: [hook], outputs: { country: { type: \"string\" } } }, () => [\n locate,\n done,\n])\n\nconst locate = http(\"Look up the IP\", { method: \"GET\", url: `https://ipinfo.io/${hook.body.value.ip}/json` })\n\nconst done = success(\"Return the country\", { country: locate.body.country })\n", "sdkVersion": "1.0.0", "findings": [ { "ruleId": "save.renamed", "severity": "warning", "message": "Step \"locate\" replaced step \"lookup\": same title (\"Look up the IP\"), new id. The canvas position, the run history and the deployment credentials of \"lookup\" did not follow.", "hint": "The const name is the stored id. To keep \"lookup\", name the const lookup again or set id: \"lookup\" in its options, then save again.", "filePath": "src/ip-lookup.ts", "line": 12, "column": 16, "endLine": 12, "endColumn": 110, "stepId": "locate" } ]}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.
Invalid request (code is BAD_REQUEST), such as a versionId other than latest or a missing baseRevision on a
canvas that has steps. Or the definition does not compile (code is FLOW_COMPILATION_FAILED with findings).
RFC 9457 Problem Details for HTTP APIs. All 4xx/5xx responses use this shape. Extension members (e.g. machine-readable code) are allowed.
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Problem Details when the definition does not compile (code: FLOW_COMPILATION_FAILED).
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Stable error code for a definition that does not compile.
Findings that blocked the request (at least one error), plus any warnings.
One compile, decompile or save finding. error findings block the request; warning findings are advice and
never block. When the finding comes from the TypeScript source, line and column locate it (1-based).
object
Stable rule identifier for the finding, grouped by layer (for example syntax.parse, structure.reference, catalog.operation, save.renamed).
error blocks the request; warning is advice.
What is wrong, in one sentence.
How to fix it, when the rule knows.
Relative path of the TypeScript file the finding is about.
1-based line where the construct starts.
1-based column where the construct starts.
1-based line where the construct ends.
1-based column where the construct ends.
Step id from the definition when the finding is about one step.
Dotted option path inside the step (for example fields.channel) when the finding is about one option.
Workflow SDK version of the server that handled the request. A definition whose sdkVersion has another major
version fails with an sdk.version finding: update the plugin, then rewrite the definition.
Example
{ "type": "about:blank", "code": "FLOW_COMPILATION_FAILED", "findings": [ { "severity": "error" } ], "sdkVersion": "1.0.0"}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.
Authentication failed. The request lacks valid credentials or the provided credentials are invalid.
Ensure you have:
- A valid API key or token.
- Proper authentication headers.
- Required permissions.
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Always MISSING_OR_INVALID_TOKEN on this response. Branch on this value, not on detail.
Example
{ "type": "about:blank", "title": "Unauthorized", "status": 401, "detail": "The bearer token is missing or invalid.", "code": "MISSING_OR_INVALID_TOKEN"}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.
Forbidden. The server understood the request but refuses to authorize it.
For connector APIs, this often indicates insufficient permissions on the remote system (for example SFTP write access denied).
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Always FORBIDDEN on this response. The token was accepted and the action is not allowed.
Example
{ "type": "about:blank", "title": "Forbidden", "status": 403, "detail": "You cannot perform this action.", "code": "FORBIDDEN"}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.
The requested resource was not found.
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Always NOT_FOUND on this response. The resource is not available to this caller.
Example
{ "type": "about:blank", "title": "Not Found", "status": 404, "detail": "The resource was not found.", "code": "NOT_FOUND"}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.
The canvas was not changed. REVISION_CONFLICT: the live canvas changed since baseRevision was read; re-read
the latest definition, re-apply your change, and retry with the new revision. NO_LATEST_DEPLOYMENT: the flow
has no live canvas yet; create a flow deployment with versionId: "latest" first. UNSUPPORTED_CONSTRUCTS: the
live canvas holds constructs the SDK cannot express; take a checkpoint, then retry with
discardUnsupported: true.
Problem Details for a 409 on the live canvas. code says why: NO_LATEST_DEPLOYMENT when the flow has no live canvas
yet (create a flow deployment with versionId: "latest"), REVISION_CONFLICT when the canvas changed since
baseRevision was read (re-read the latest definition and re-apply), or UNSUPPORTED_CONSTRUCTS when the live
canvas holds constructs the Workflow SDK cannot express (findings names them).
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Stable conflict code. NO_LATEST_DEPLOYMENT: no live canvas yet. REVISION_CONFLICT: the live canvas changed
since baseRevision. UNSUPPORTED_CONSTRUCTS: a replace would drop constructs the SDK cannot express.
Present with UNSUPPORTED_CONSTRUCTS. Each finding names a construct the SDK cannot express.
One compile, decompile or save finding. error findings block the request; warning findings are advice and
never block. When the finding comes from the TypeScript source, line and column locate it (1-based).
object
Stable rule identifier for the finding, grouped by layer (for example syntax.parse, structure.reference, catalog.operation, save.renamed).
error blocks the request; warning is advice.
What is wrong, in one sentence.
How to fix it, when the rule knows.
Relative path of the TypeScript file the finding is about.
1-based line where the construct starts.
1-based column where the construct starts.
1-based line where the construct ends.
1-based column where the construct ends.
Step id from the definition when the finding is about one step.
Dotted option path inside the step (for example fields.channel) when the finding is about one option.
Examples
Canvas changed since the read
Another editor changed the live canvas after the caller read revision.
{ "type": "about:blank", "status": 409, "title": "Conflict", "detail": "The live canvas changed since baseRevision. Re-read the latest definition, re-apply your change, and retry.", "code": "REVISION_CONFLICT"}No live canvas yet
The flow has no deployment that tracks latest.
{ "type": "about:blank", "status": 409, "title": "Conflict", "detail": "This flow has no live canvas yet. Create a flow deployment with versionId \"latest\", then retry.", "code": "NO_LATEST_DEPLOYMENT"}Live canvas holds unsupported constructs
The live canvas has a jump between branches, which the Workflow SDK cannot express.
{ "type": "about:blank", "status": 409, "title": "Conflict", "detail": "The live canvas holds constructs the Workflow SDK cannot express. Take a checkpoint, then retry with discardUnsupported set to true to overwrite them.", "code": "UNSUPPORTED_CONSTRUCTS", "findings": [ { "ruleId": "decompile.join", "severity": "error", "message": "Step 3b1c… is reached from inside a block that ends elsewhere (a jump out of its branch).", "filePath": "workflow.ts", "stepId": "3b1c2f0e-8f43-5c1e-9a57-0d1a2b3c4d5e" } ]}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.
Too many requests. The request rate limit has been exceeded.
Please wait until the rate limit window resets before making additional requests.
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Always RATE_LIMIT_EXCEEDED on this response. Wait Retry-After seconds before retrying.
Example
{ "type": "about:blank", "title": "Too Many Requests", "status": 429, "detail": "The request rate limit has been exceeded.", "code": "RATE_LIMIT_EXCEEDED"}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.
Internal server error. The server encountered an unexpected condition that prevented it from fulfilling the request.
Please try again later or contact support if the problem persists.
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Always INTERNAL_ERROR on this response. Retry later. Do not retry a create in a tight loop.
Example
{ "type": "about:blank", "title": "Internal Server Error", "status": 500, "detail": "The request could not be completed.", "code": "INTERNAL_ERROR"}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.
Bad gateway. The server received an invalid response from an upstream system (for example a connector or external API).
Verify upstream configuration and try again.
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Always BAD_GATEWAY on this response. The upstream system answered in a way this API could not use.
Example
{ "type": "about:blank", "title": "Bad Gateway", "status": 502, "detail": "The upstream system returned an unusable response.", "code": "BAD_GATEWAY"}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.