Get Schema

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

Get a schema family by key

Path Parameters

slug string required
schemaKey string required
curl -X GET \
-H "x-api-key: dsk_your_api_key" \
https://api.tracore.io/workspaces/my-workspace/schemas/invoice
import { TracoreClient } from '@tracore/sdk';

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

const schema = await client.schemas.get('my-workspace', 'invoice');
console.log(schema);
200 Response
{
  "id": "ws_abc123",
  "workspaceId": "ws_abc123",
  "schemaKey": "invoice",
  "name": "My Workspace",
  "description": "Invoice processing workspace",
  "latestVersionNumber": 1,
  "createdAt": "2024-03-15T10:30:00Z",
  "updatedAt": "2024-03-15T10:30:00Z"
}