GoRunner docs
Search or askSearch⌘K

See which workflows use each connection

GET/api/connections/usage

Lists, for each connection, the workflows that use it.

Needs an API token with the Read permission for connections (connection:read).

Request

It takes no parameters.

Before you delete or replace

Each workflow is listed once, however many steps use the connection. inLive: the published version uses it, so production does. inDraft: the draft does. Triggers, branches, loops and error steps all count.

Then move those workflows before you delete it.

Responses

  • 200OK

    Workflows by connection ID. A connection no workflow uses is left out, not listed empty. A key can name a connection that is gone, while a workflow still names it.

  • The token lacks the Read permission for connections.

  • The use couldn’t be worked out. Try again.

Any call can also answer: 401 UNAUTHORIZED · 401 TOKEN_ENDED · 403 TOKEN_SURFACE_OFF · 403 FEATURE_OFF · 403 EMBED_NOT_ALLOWED · 403 EMBED_NOT_AVAILABLE · 403 ACCOUNT_SUSPENDED · 429 RATE_LIMITED · 503 BUSY · 503 PAUSED · 503 SERVICE_UNAVAILABLE. See Errors.

Request

GORUNNER="https://api.gorunner.io"
GORUNNER_TOKEN="grt_…"  # needs Read for connections

curl "$GORUNNER/api/connections/usage" \
  -H "Authorization: Bearer $GORUNNER_TOKEN"

Response · 200 OK

json
{
  "data": {
    "0f8b2c7e-4a51-4d3e-9b2a-6c1d2e3f4a5b": [
      {
        "id": "3b1e5c2a-7d4f-4e8b-a1c6-5f2d9b0e7a31",
        "name": "Order intake",
        "status": "active",
        "inLive": true,
        "inDraft": true
      }
    ]
  }
}
Every field

It takes no body.

Response · 200 OK

dataobject

Reverse index: connection id → the workflows referencing it. A connection with no usage is ABSENT from the map rather than mapped to an empty array; treat a missing key as zero usage.

{key}array of objects

Each key’s value.

idUUID

The referencing workflow’s id.

namestring

The referencing workflow’s name.

statusstring

The referencing workflow’s state. active is live, but only inLive says its production runs use the connection: a live workflow whose draft alone names it does not use it yet.

One of draft, active, paused.

inLiveboolean

The workflow’s published version (what production runs) names the connection. False for a workflow never published.

inDraftboolean

The workflow’s draft names the connection.