clay workflows snapshots get or roll back with clay workflows snapshots restore.
Arguments
| Argument | Description |
|---|---|
workflowId | Workflow id, e.g. wf_abc123. Required. |
Output
Results are returned newest-first, sodata[0] is the most recent snapshot.
| Field | Type | Description |
|---|---|---|
data[].id | string | Snapshot id. Pass to snapshots get or snapshots restore. |
data[].hash | string | Content-addressed hash of the captured graph. |
data[].createdAt | string | When the snapshot was taken. |
data[].nodeCount | number | Number of nodes in the captured graph. |
data[].edgeCount | number | Number of edges in the captured graph. |
Errors
| Code | Exit | Notes |
|---|---|---|
validation_error | 2 | workflowId argument is required. |
not_found | 6 | No workflow with that id. |
auth_forbidden | 3 | The API key lacks permission for this command. |

