Skip to content
Go to Micro

Total record count for an object type

GET/v2/prism/{teamId}/organization/count

Returns the total number of records of this object type that the caller can see. Avoids the page-overshoot anti-pattern — clients no longer need to keep paging until has_more flips false to discover the total. Currently does not apply query filters; for a filtered total, pass include_total: true in a POST /query body.

Path ParametersExpand Collapse
teamId: optional string
formatuuid
Query ParametersExpand Collapse
list_id: optional string

Scope the count to a specific list/app.

formatuuid
ReturnsExpand Collapse
total: number

Number of records matching the access scope.

Total record count for an object type

curl https://developers.micro.so/v2/prism/$TEAM_ID/organization/count \
    -H "x-api-key: $MICRO_API_KEY"
{
  "total": 0
}
Returns Examples
{
  "total": 0
}