PermuteDocs
Go to Permute

Operations · operationsRunOutput

Inspect a completed run before publishing

Returns up to 1,000 rows per output table with schemas and display names from the exact run. This is a preview, not a complete dataset.

GET/v1/operations/{operationId}/runs/{runId}/output
betaapiKeyworkspace

When to use

Inspect exact completed run output before publishing.

For agents

The preview contains at most 1,000 rows per table. A preview is not a complete dataset. The run must belong to the requested operation and workspace.

Example

typescript
import { PermuteClient } from '@permute/sdk';

const orgClient = new PermuteClient({
  apiKey: process.env.PERMUTE_API_KEY!,
});

const client = orgClient.withWorkspace(process.env.PERMUTE_WORKSPACE_ID!);

const result = await client.operations.getRunOutput('oper_revenue123', 'oprn_run123');

Response

json
{
  "data": {
    "runId": "oprn_run123",
    "revisionId": "rvsn_code123",
    "rowLimitPerTable": 1000,
    "tables": {
      "blok_revenue": [
        {
          "customer": "Example customer",
          "revenue": 1200
        }
      ]
    },
    "names": {
      "blok_revenue": "Revenue"
    },
    "schemas": {
      "blok_revenue": {
        "columns": [
          {
            "name": "customer",
            "type": "string"
          },
          {
            "name": "revenue",
            "type": "number"
          }
        ]
      }
    }
  }
}