List all shelters
GET
/shelters
const url = 'https://example.com/api/shelters';const options = {method: 'GET', headers: {cookie: 'api_key=<api_key>'}};
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://example.com/api/shelters \ --cookie api_key=<api_key>Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”An array of shelters
Media typeapplication/json
Array<object>
object
id
required
integer format: int64
name
required
string
Examplegenerated
[ { "id": 1, "name": "example" }]default
Section titled “default”Unexpected error
Media typeapplication/json
object
code
required
integer format: int32
message
required
string
Examplegenerated
{ "code": 1, "message": "example"}