GET
/v1/write-syncs/{writeSyncId}/runsbetaapiKeyworkspace
When to use
Inspect the latest 20 captures, newest first.
For agents
Tests and delivered runs share this list. Check execution for delivery and automatic for recurring approval; publishing promotes the selected preview into a real run.
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.writeSyncs.listRuns('wsyn_contacts123');Response
{
"data": {
"items": [
{
"id": "wsrn_abcdefghijklmnopqrstuvwx",
"previewComplete": true,
"recordCount": 1,
"createdAt": "2026-09-30T12:01:00.000Z"
}
]
}
}