Skip to content
Proud to collaborate with Microsoft for Startups

bling.oauth-start ​

Produces the Bling OAuth2 authorize URL and a signed state token. Front-end redirects the user to authorize_url; bling.oauth-callback validates the returned state.

Generate the Bling authorize URL plus a signed state token.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-bling
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Organization initiating the Bling connection
connection_namestringNo—Human label for the resulting CloudConnection row
redirect_uristringYes—OAuth redirect URI; must match the Bling app config
actorstringNo—Caller identity (defaults to context.actor)

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Organization initiating the Bling connection
connection_namestringNo—Human label for the resulting CloudConnection row
redirect_uristringYes—OAuth redirect URI; must match the Bling app config
actorstringNo—Caller identity (defaults to context.actor)
authorize_urlstringNo—URL to redirect the end-user to
statestringNo—Signed opaque token; pass back unchanged to oauth-callback
initiated_atstringNo—ISO-8601 timestamp the URL was generated
failure_reasonstringNo—Why this run failed (on the failed branch)
failed_atstringNo—ISO-8601 timestamp of failure
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepjsonNo——
failed_layerjsonNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—prepareRequest received
failedNoYesNo—OAuth start failed
readyNoYesYes—Authorize URL produced

State Diagram ​

Transitions ​

FromActionToDescription
initiatedprepareready—
initiatedfailfailed—

Business Errors ​

CodeMessage Template
BLING_CLIENT_ID_MISSINGBLING_CLIENT_ID is not configured on the platform
BLING_REDIRECT_URI_MISSINGredirect_uri is required for Bling OAuth start

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "bling.oauth-start",
  "initial_data": {
    "organization_uuid": "value",
    "redirect_uri": "value"
  }
}