Skip to navigation

List all animals

Returns a list of the animals in your colony, whether or not they are on a study. To list only the animals on one study, use the study's own animals endpoint instead.

Authentication

AuthorizationBearer

OAuth authentication of the form <token>.

Headers

X-Studies-Api-VersionstringOptional

Query parameters

perPageintegerOptional1-100Defaults to 10
The number of results to return per page, up to a maximum of 100.
pageintegerOptional>=1Defaults to 1
The page of results to return. The first page is 1.
namestringOptional

Filter resources to return by name, matching case-insensitively on any part of the name.

cage_idstringOptionalformat: "^cge_[a-zA-Z0-9]{10,22}$"
Filter animals to return to those housed in a single cage.
catalogstringOptional

Filter resources to return by catalog number, matching case-insensitively on any part of the number.

sexenumOptional
Filter animals to return by sex. A value outside the enumeration is rejected with 400 rather than treated as a metadata slug filter.
Allowed values:
metadatastringOptional

Filter results by metadata value, matching against any metadata key. To filter on a specific key instead, pass the metadata slug itself as a query parameter, e.g. ?study-internal-id=STUDY-1234. Those slug parameters vary by team glossary and so cannot be enumerated here.

Response headers

X-RateLimit-LimitintegerOptional
The number of requests permitted in the current rate limit window.
X-RateLimit-RemainingintegerOptional

The number of requests still available in the current rate limit window. When several limits apply, this reflects the per-API-key limit, so a request can be rejected while this value is above zero.

X-RateLimit-ResetintegerOptional
The number of seconds until the current rate limit window resets.

Response

A page of animals.
datalist of objects
The animals on this page of results.
metaobject
Pagination counters describing the returned page of results.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error