List all bears
GET
/bears
const url = 'https://custom.example.com/api/bears?limit=20';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://custom.example.com/api/bears?limit=20' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”limit
integer
Example
20integer
Example
<limit>30</limit>How many birds to return at one time (max 100)
Responses
Section titled “Responses”A paged array of cats
Array<object>
object
id
required
integer format: int64
name
required
Name of the animal
A friendly name for the animal.
string
tag
string
Example
[ { "id": 1, "name": "dog", "tag": "pet" }]Array<object>
object
id
required
integer format: int64
name
required
Name of the animal
A friendly name for the animal.
string
tag
string
Example
{ "id": 1, "name": "dog", "tag": "pet"}Headers
Section titled “Headers”X-Rate-Limit-Limit
integer
The number of allowed requests in the current period
X-Rate-Limit-Reset
integer
The number of seconds left in the current period
default
Section titled “default”Unexpected error
Media typeapplication/json
object
code
required
integer format: int32
message
required
string
Examplegenerated
{ "code": 1, "message": "example"}