Skip to navigation

Count Generations

Count generations visible to your credentials. All provided filters are combined.

Authentication

x-api-keystring
API Key authentication via header

Query parameters

statuslist of enumsOptional

Filter by status, as a comma-separated list or repeated values.

Allowed values:
typeenumOptional

Filter by Studio (playground) or API generations.

Allowed values:
sourcelist of stringsOptional

Filter by source label, as a comma-separated list or repeated values.

generationSourceenumOptional
Filter by product surface. Older generations without a recorded surface are excluded when this filter is set.
currentUserOnlybooleanOptional
Count only generations owned by the current user. Defaults to false.

Response

This endpoint returns an object.
countinteger

Errors

400
Bad Request Error
401
Unauthorized Error