GET
/v1/operations/{operationId}/runs/{runId}/outputbetaapiKeyworkspace
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
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
{
"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"
}
]
}
}
}
}