Skip to navigation

Sample Records

Returns a sample of records from a model.

Synchronous requests must complete within 10 seconds. If the source query or enrichment step can exceed that budget, use the asynchronous option so the work runs as a background job.

Authentication

AuthorizationBearer
Bearer user API key
OR
AuthorizationBasic

Basic organization-scoped API key

Path parameters

idstringRequiredformat: "uuid"
Model ID

Headers

X-Polytomic-VersionstringOptional

Query parameters

asyncbooleanOptional
Run in the background and return a job instead of the result.

Response

OK
dataobjectOptional
The sampled records
jobobjectOptional
Background job running the request when async is true

Errors

400
Bad Request Error
404
Not Found Error
500
Internal Server Error