Skip to content

Get a flow definition as TypeScript

GET
/organizations/{organizationId}/flows/{flowId}/versions/{versionId}/definition
curl --request GET \
--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>'

Returns canonical Workflow SDK TypeScript for one version of the flow. The source is printed the same way every time, so reading twice gives the same text, and saving it unchanged changes nothing.

Pass a version id to read a saved version, including versions saved from the canvas. Pass the literal latest to read the live canvas: the working copy that Studio edits and that deployments tracking latest run. With latest, the response also carries revision. Send that value as baseRevision on your next replace.

findings lists warnings about stored values the definition leaves out: values the engine ignores, and values set in Studio that the SDK cannot express (decompile.reset, for example an operation’s server variables), which a save would reset.

404 when the flow or version is missing. 409 NO_LATEST_DEPLOYMENT when you pass latest and the flow has no live canvas yet. 400 FLOW_DECOMPILATION_FAILED when the stored workflow cannot be expressed in the SDK; with latest, that response still carries revision. 502 BAD_GATEWAY when the integration catalog cannot be read.

organizationId
required
Organization id

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.

string
default: $CURRENT_ORGANIZATION_ID >= 1 characters <= 128 characters /^[^\p{C}]+$/
Example
ORGA-57b858ed-ec60-4507-b2ef-ea58244ac742

Organization that owns the flow. Pass the value unchanged.

flowId
required
Flow id

Opaque id of a flow. Use it on get, update, delete, versions, and when deploying the flow.

string
>= 1 characters <= 128 characters /^[^\p{C}]+$/
Example
PLAY-17a64601-40bb-4304-90f8-08ebf6ae3c19

Flow id. Pass the value unchanged.

versionId
required
Flow version id

Opaque id of one saved snapshot of a flow. Deploy this id to run that snapshot. It does not include the canvas.

string
>= 1 characters <= 128 characters /^[^\p{C}]+$/

Version id to read, passed unchanged. Or the literal latest to read the live canvas and receive its revision.

Example
latest

Workflow SDK TypeScript for the requested version. Includes revision only when versionId is latest.

Media typeapplication/json
Get flow definition response

Canonical Workflow SDK TypeScript for one version. Reading latest also returns the live canvas revision.

object
source
required

Workflow SDK TypeScript source for the requested version.

string
<= 524288 characters
revision

Revision of the live canvas at read time. Present only when versionId is latest. Send it as baseRevision on the next replace.

string
>= 64 characters <= 64 characters /^[0-9a-f]{64}$/
sdkVersion
required
Workflow SDK version

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.

string
<= 32 characters /^[0-9]+\.[0-9]+\.[0-9]+$/
findings
required

Warnings about stored values the definition leaves out because the engine ignores them.

Array<object>
<= 512 items
Flow definition finding

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
ruleId
required

Stable rule identifier for the finding, grouped by layer (for example syntax.parse, structure.reference, catalog.operation, save.renamed).

string
>= 1 characters <= 128 characters /^[^\p{C}]+$/
severity
required

error blocks the request; warning is advice.

string
Allowed values: error warning
message
required

What is wrong, in one sentence.

string
>= 1 characters <= 2048 characters /^[^\p{C}]+$/
hint

How to fix it, when the rule knows.

string
>= 1 characters <= 2048 characters /^[^\p{C}]+$/
filePath
required

Relative path of the TypeScript file the finding is about.

string
>= 1 characters <= 512 characters /^[^\p{C}]+$/
line

1-based line where the construct starts.

integer
>= 1
column

1-based column where the construct starts.

integer
>= 1
endLine

1-based line where the construct ends.

integer
>= 1
endColumn

1-based column where the construct ends.

integer
>= 1
stepId

Step id from the definition when the finding is about one step.

string
>= 1 characters <= 128 characters /^[^\p{C}]+$/
fieldPath

Dotted option path inside the step (for example fields.channel) when the finding is about one option.

string
>= 1 characters <= 256 characters /^[^\p{C}]+$/
Examples

Saved version

Request GET …/versions/VERS-9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d/definition for one saved version.

{
"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": []
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
Example
*

CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.

The stored workflow cannot be expressed in the Workflow SDK (code is FLOW_DECOMPILATION_FAILED).

Media typeapplication/json
Flow definition decompile failed

Problem Details when a stored workflow cannot be expressed as Workflow SDK TypeScript.

object
type

URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.

string format: uri-reference
default: about:blank <= 2048 characters
title
required

Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).

string
<= 256 characters /^[^\p{C}]+$/
status
required

HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).

integer format: int32
>= 100 <= 599
detail

Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).

string
<= 500 characters
instance

URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).

string format: uri-reference
<= 2048 characters
code
required

Stable error code for decompile failure.

string
Allowed values: FLOW_DECOMPILATION_FAILED
findings
required

Findings that explain why the stored workflow cannot be expressed as TypeScript.

Array<object>
<= 512 items
Flow definition finding

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
ruleId
required

Stable rule identifier for the finding, grouped by layer (for example syntax.parse, structure.reference, catalog.operation, save.renamed).

string
>= 1 characters <= 128 characters /^[^\p{C}]+$/
severity
required

error blocks the request; warning is advice.

string
Allowed values: error warning
message
required

What is wrong, in one sentence.

string
>= 1 characters <= 2048 characters /^[^\p{C}]+$/
hint

How to fix it, when the rule knows.

string
>= 1 characters <= 2048 characters /^[^\p{C}]+$/
filePath
required

Relative path of the TypeScript file the finding is about.

string
>= 1 characters <= 512 characters /^[^\p{C}]+$/
line

1-based line where the construct starts.

integer
>= 1
column

1-based column where the construct starts.

integer
>= 1
endLine

1-based line where the construct ends.

integer
>= 1
endColumn

1-based column where the construct ends.

integer
>= 1
stepId

Step id from the definition when the finding is about one step.

string
>= 1 characters <= 128 characters /^[^\p{C}]+$/
fieldPath

Dotted option path inside the step (for example fields.channel) when the finding is about one option.

string
>= 1 characters <= 256 characters /^[^\p{C}]+$/
revision

Revision of the live canvas at read time. Present only when versionId is latest. A replace that sends it as baseRevision with discardUnsupported: true overwrites the canvas.

string
>= 64 characters <= 64 characters /^[0-9a-f]{64}$/
sdkVersion
required
Workflow SDK version

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.

string
<= 32 characters /^[0-9]+\.[0-9]+\.[0-9]+$/
Example
{
"type": "about:blank",
"status": 400,
"title": "Bad Request",
"detail": "Flow definition decompilation failed with 1 finding.",
"code": "FLOW_DECOMPILATION_FAILED",
"findings": [
{
"ruleId": "decompile.join",
"severity": "error",
"message": "Step 3b1c… is reached from inside a block that ends elsewhere (a jump out of its branch).",
"hint": "The Workflow SDK expresses joins only after a whole condition; restructure this path in Studio.",
"filePath": "workflow.ts",
"stepId": "3b1c2f0e-8f43-5c1e-9a57-0d1a2b3c4d5e"
}
],
"revision": "663bff12687e1377d81970ce143ba12b9d424a59edd7ab23e485594a8e9c8f79",
"sdkVersion": "1.0.0"
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
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.
Media typeapplication/json
object
type

URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.

string format: uri-reference
default: about:blank <= 2048 characters
title
required

Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).

string
<= 256 characters /^[^\p{C}]+$/
status
required

HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).

integer format: int32
>= 100 <= 599
detail

Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).

string
<= 500 characters
instance

URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).

string format: uri-reference
<= 2048 characters
code

Always MISSING_OR_INVALID_TOKEN on this response. Branch on this value, not on detail.

string
Allowed values: MISSING_OR_INVALID_TOKEN
Example
{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "The bearer token is missing or invalid.",
"code": "MISSING_OR_INVALID_TOKEN"
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
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).

Media typeapplication/json
object
type

URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.

string format: uri-reference
default: about:blank <= 2048 characters
title
required

Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).

string
<= 256 characters /^[^\p{C}]+$/
status
required

HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).

integer format: int32
>= 100 <= 599
detail

Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).

string
<= 500 characters
instance

URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).

string format: uri-reference
<= 2048 characters
code

Always FORBIDDEN on this response. The token was accepted and the action is not allowed.

string
Allowed values: FORBIDDEN
Example
{
"type": "about:blank",
"title": "Forbidden",
"status": 403,
"detail": "You cannot perform this action.",
"code": "FORBIDDEN"
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
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.

Media typeapplication/json
object
type

URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.

string format: uri-reference
default: about:blank <= 2048 characters
title
required

Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).

string
<= 256 characters /^[^\p{C}]+$/
status
required

HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).

integer format: int32
>= 100 <= 599
detail

Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).

string
<= 500 characters
instance

URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).

string format: uri-reference
<= 2048 characters
code

Always NOT_FOUND on this response. The resource is not available to this caller.

string
Allowed values: NOT_FOUND
Example
{
"type": "about:blank",
"title": "Not Found",
"status": 404,
"detail": "The resource was not found.",
"code": "NOT_FOUND"
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
Example
*

CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.

The flow has no live canvas yet (code is NO_LATEST_DEPLOYMENT). Create a flow deployment with versionId: "latest", then read again.

Media typeapplication/json
Flow live canvas conflict

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
type

URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.

string format: uri-reference
default: about:blank <= 2048 characters
title
required

Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).

string
<= 256 characters /^[^\p{C}]+$/
status
required

HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).

integer format: int32
>= 100 <= 599
detail

Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).

string
<= 500 characters
instance

URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).

string format: uri-reference
<= 2048 characters
code
required

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.

string
Allowed values: NO_LATEST_DEPLOYMENT REVISION_CONFLICT UNSUPPORTED_CONSTRUCTS
findings

Present with UNSUPPORTED_CONSTRUCTS. Each finding names a construct the SDK cannot express.

Array<object>
<= 512 items
Flow definition finding

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
ruleId
required

Stable rule identifier for the finding, grouped by layer (for example syntax.parse, structure.reference, catalog.operation, save.renamed).

string
>= 1 characters <= 128 characters /^[^\p{C}]+$/
severity
required

error blocks the request; warning is advice.

string
Allowed values: error warning
message
required

What is wrong, in one sentence.

string
>= 1 characters <= 2048 characters /^[^\p{C}]+$/
hint

How to fix it, when the rule knows.

string
>= 1 characters <= 2048 characters /^[^\p{C}]+$/
filePath
required

Relative path of the TypeScript file the finding is about.

string
>= 1 characters <= 512 characters /^[^\p{C}]+$/
line

1-based line where the construct starts.

integer
>= 1
column

1-based column where the construct starts.

integer
>= 1
endLine

1-based line where the construct ends.

integer
>= 1
endColumn

1-based column where the construct ends.

integer
>= 1
stepId

Step id from the definition when the finding is about one step.

string
>= 1 characters <= 128 characters /^[^\p{C}]+$/
fieldPath

Dotted option path inside the step (for example fields.channel) when the finding is about one option.

string
>= 1 characters <= 256 characters /^[^\p{C}]+$/
Example
{
"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"
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
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.

Media typeapplication/json
object
type

URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.

string format: uri-reference
default: about:blank <= 2048 characters
title
required

Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).

string
<= 256 characters /^[^\p{C}]+$/
status
required

HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).

integer format: int32
>= 100 <= 599
detail

Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).

string
<= 500 characters
instance

URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).

string format: uri-reference
<= 2048 characters
code

Always RATE_LIMIT_EXCEEDED on this response. Wait Retry-After seconds before retrying.

string
Allowed values: RATE_LIMIT_EXCEEDED
Example
{
"type": "about:blank",
"title": "Too Many Requests",
"status": 429,
"detail": "The request rate limit has been exceeded.",
"code": "RATE_LIMIT_EXCEEDED"
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
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.

Media typeapplication/json
object
type

URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.

string format: uri-reference
default: about:blank <= 2048 characters
title
required

Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).

string
<= 256 characters /^[^\p{C}]+$/
status
required

HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).

integer format: int32
>= 100 <= 599
detail

Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).

string
<= 500 characters
instance

URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).

string format: uri-reference
<= 2048 characters
code

Always INTERNAL_ERROR on this response. Retry later. Do not retry a create in a tight loop.

string
Allowed values: INTERNAL_ERROR
Example
{
"type": "about:blank",
"title": "Internal Server Error",
"status": 500,
"detail": "The request could not be completed.",
"code": "INTERNAL_ERROR"
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
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.

Media typeapplication/json
object
type

URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.

string format: uri-reference
default: about:blank <= 2048 characters
title
required

Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).

string
<= 256 characters /^[^\p{C}]+$/
status
required

HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).

integer format: int32
>= 100 <= 599
detail

Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).

string
<= 500 characters
instance

URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).

string format: uri-reference
<= 2048 characters
code

Always BAD_GATEWAY on this response. The upstream system answered in a way this API could not use.

string
Allowed values: BAD_GATEWAY
Example
{
"type": "about:blank",
"title": "Bad Gateway",
"status": 502,
"detail": "The upstream system returned an unusable response.",
"code": "BAD_GATEWAY"
}
X-RateLimit-Limit
integer format: int32
>= 1 <= 1000
Example
1000

Maximum number of requests allowed in the current window. Present when this response is rate limited.

X-RateLimit-Remaining
integer format: int32
<= 1000
Example
42

Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.

X-RateLimit-Reset
string format: date-time
<= 29 characters
Example
2026-03-20T15:31:00.000Z

Time when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.

Retry-After
integer format: int32
>= 1 <= 3600
Example
30

HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.

Access-Control-Allow-Origin
string
Allowed values: *
Example
*

CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.