List organizations
curl --request GET \
--url https://{organization}.rescueconsole.com/api/organizations/organizations \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/organizations/organizations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/organizations/organizations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"name": "<string>",
"kind": "veterinary_practice",
"email": "<string>",
"phone": "<string>",
"website": "<string>",
"address": {
"country": "<string>",
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"administrative_area": "<string>",
"postal_code": "<string>"
},
"notes": "<string>",
"is_active": true,
"is_emergency": true,
"is_primary_vet": true,
"relationship": "prospect",
"relationship_since": "2023-12-25",
"industry_code": "<string>",
"industry_label": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"limit": 123,
"offset": 123,
"has_more": true
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Organizations
List organizations
One page of the directory. Archived organizations are left out unless you ask for them. The primary veterinary practice comes first, then the rest by name. There is no total here: Count organizations gives one. Needs read on Organizations.
GET
/
api
/
organizations
/
organizations
List organizations
curl --request GET \
--url https://{organization}.rescueconsole.com/api/organizations/organizations \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/organizations/organizations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/organizations/organizations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"name": "<string>",
"kind": "veterinary_practice",
"email": "<string>",
"phone": "<string>",
"website": "<string>",
"address": {
"country": "<string>",
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"administrative_area": "<string>",
"postal_code": "<string>"
},
"notes": "<string>",
"is_active": true,
"is_emergency": true,
"is_primary_vet": true,
"relationship": "prospect",
"relationship_since": "2023-12-25",
"industry_code": "<string>",
"industry_label": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"limit": 123,
"offset": 123,
"has_more": true
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Authorizations
An API key from Settings, API keys. It starts with rc_live_.
Query Parameters
How many to return. 50 unless you say, 200 at most.
Required range:
1 <= x <= 200How many to skip, for the next page.
Required range:
x >= 0Organizations of this kind. What the organization is.
Available options:
veterinary_practice, rescue, shelter, supplier, employer, government, other Organizations with this relationship to you. What the organization is to you. Separate from its kind: a past client can be a veterinary practice.
Available options:
prospect, active_client, past_client, partner, supplier, competitor The name contains this.
true to include archived organizations, which are left out otherwise.