PermuteDocs
Go to Permute

Write syncs · writeSyncsListRuns

List write sync runs

Returns the latest 20 captures, newest first, including tests and real syncs. Execution identifies delivery; automatic records recurring approval. Publishing promotes the selected preview into a real run.

GET/v1/write-syncs/{writeSyncId}/runs
betaapiKeyworkspace

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

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.writeSyncs.listRuns('wsyn_contacts123');

Response

json
{
  "data": {
    "items": [
      {
        "id": "wsrn_abcdefghijklmnopqrstuvwx",
        "previewComplete": true,
        "recordCount": 1,
        "createdAt": "2026-09-30T12:01:00.000Z"
      }
    ]
  }
}