List Schema Versions

GET /workspaces/{slug}/schemas/{schemaKey}/versions

List versions of a schema family

Path Parameters

slug string required
schemaKey string required

Query Parameters

page integer
pageSize integer
curl -X GET \
-H "x-api-key: dsk_your_api_key" \
https://api.tracore.io/workspaces/my-workspace/schemas/invoice/versions
import { TracoreClient } from '@tracore/sdk';

const client = new TracoreClient({ apiKey: 'dsk_your_api_key' });

const { data } = await client.schemas.listVersions('my-workspace', 'invoice');
console.log(data);
200 Response
{
  "total": 1,
  "page": 1,
  "pageSize": 20,
  "data": [
    {
      "id": "ws_abc123",
      "familyId": "sf_abc123",
      "versionNumber": 1,
      "definitionHash": "sha256:a1b2c3d4e5f6...",
      "definition": {
        "key": "value"
      },
      "createdAt": "2024-03-15T10:30:00Z"
    }
  ]
}