Skip to main content
GET
/
runs
/
{runId}
Get run status and metadata
curl --request GET \
  --url https://api.superglue.ai/v1/runs/{runId} \
  --header 'Authorization: Bearer <token>'
{
  "runId": "7f3e9c1a-2b4d-4e8f-9a3b-1c5d7e9f2a4b",
  "toolId": "550e8400-e29b-41d4-a716-446655440000",
  "status": "success",
  "metadata": {
    "startedAt": "2023-11-07T05:31:56Z",
    "completedAt": "2023-11-07T05:31:56Z",
    "durationMs": 5234
  },
  "tool": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "steps": [
      {
        "id": "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
        "config": {
          "url": "https://api.example.com/search",
          "method": "GET",
          "type": "request",
          "queryParams": {
            "q": "<<(sourceData) => sourceData.query>>",
            "limit": 10
          },
          "headers": {
            "Content-Type": "application/json",
            "Authorization": "Bearer <<(sourceData) => sourceData.credentials.apiKey>>"
          },
          "body": "{\"query\": \"<<(sourceData) => sourceData.query>>\"}",
          "pagination": {
            "type": "cursorBased",
            "pageSize": "50",
            "cursorPath": "meta.next_cursor",
            "stopCondition": "(response, pageInfo) => !response.data.pagination.has_more"
          },
          "systemId": "3f7c8d9e-1a2b-4c5d-8e9f-0a1b2c3d4e5f"
        },
        "instruction": "Fetch user details from the API",
        "modify": false,
        "dataSelector": "(sourceData) => sourceData.data.items",
        "failureBehavior": "fail"
      }
    ],
    "name": "Web Search",
    "version": "2.1.0",
    "instruction": "Search the web for the given query and return relevant results",
    "inputSchema": {
      "type": "object",
      "properties": {
        "query": {
          "type": "string"
        },
        "maxResults": {
          "type": "integer",
          "default": 10
        }
      },
      "required": [
        "query"
      ]
    },
    "outputSchema": {},
    "outputTransform": "(sourceData) => sourceData.map(item => ({ id: item.id, title: item.name }))",
    "folder": "integrations/payments",
    "archived": false,
    "responseFilters": [
      {
        "id": "<string>",
        "enabled": true,
        "target": "KEYS",
        "pattern": "<string>",
        "action": "REMOVE",
        "name": "<string>",
        "maskValue": "<string>",
        "scope": "FIELD"
      }
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  },
  "toolPayload": {},
  "data": {},
  "error": "Connection timeout after 30000 milliseconds",
  "stepResults": [
    {
      "stepId": "<string>",
      "success": true,
      "data": {},
      "error": "<string>"
    }
  ],
  "options": {},
  "requestSource": "api",
  "traceId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "resultStorageUri": "s3://superglue-results/org123/runs/7f3e9c1a.json",
  "userId": "<string>",
  "executionMode": "prod"
}

Authorizations

Authorization
string
header
required

Static API key authentication using Bearer token scheme. Include your API key in the Authorization header: Authorization: Bearer YOUR_API_KEY

Alternatively, you can use the token query parameter to authenticate.

API keys can be generated in your superglue dashboard.

Path Parameters

runId
string
required

Response

Run details

runId
string
required

Unique identifier for this run

Example:

"7f3e9c1a-2b4d-4e8f-9a3b-1c5d7e9f2a4b"

toolId
string
required

ID of the tool that was executed

Example:

"550e8400-e29b-41d4-a716-446655440000"

status
enum<string>
required

Execution status:

  • running: Execution in progress
  • success: Completed successfully
  • failed: Failed due to error
  • aborted: Cancelled by user or system
Available options:
running,
success,
failed,
aborted
Example:

"success"

metadata
object
required
tool
object

Full tool configuration that was executed

toolPayload
object

The inputs provided when running the tool

data
object

Tool execution result data. Only present in the sync response from POST /tools/{toolId}/run (200). Not stored in the run record — for async runs, use GET /runs/{runId}/results to fetch results from storage.

error
string

Error message (only present when status is failed or aborted)

Example:

"Connection timeout after 30000 milliseconds"

stepResults
object[]

Per-step execution results for multi-step tools. Only present in the sync response from POST /tools/{toolId}/run (200). For async runs, use GET /runs/{runId}/results.

options
object

Execution options that were used for this run

requestSource
enum<string>

Source identifier for where the run was initiated

Available options:
api,
frontend,
scheduler,
mcp,
tool-chain,
webhook,
cli
Example:

"api"

traceId
string

Trace ID for this run (for debugging and log correlation)

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

resultStorageUri
string

Storage URI where full results are stored (enterprise feature). Present when the result was too large for the run record. Use GET /runs/{runId}/results to fetch the full data.

Example:

"s3://superglue-results/org123/runs/7f3e9c1a.json"

userId
string

User or end user who triggered this run

executionMode
enum<string>

The execution mode used for this run (which system credentials were used)

Available options:
prod,
dev
Example:

"prod"