curl --request GET \
--url https://{organization}.rescueconsole.com/api/organizations/organizations/export \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/organizations/organizations/export', 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/export"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)"<string>"{
"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)"
}Export organizations as CSV
The organizations matching the same filters as the list, as a CSV file named organizations.csv, by name, 5,000 at most. The columns are id, name, kind, email, phone, website, address (lines 1 and 2 together), city, region, postal_code, country, relationship, relationship_since, industry_code, industry_label, is_active, is_emergency, is_primary_vet, notes and created_at: the columns the import reads. Needs read on Organizations.
curl --request GET \
--url https://{organization}.rescueconsole.com/api/organizations/organizations/export \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/organizations/organizations/export', 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/export"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)"<string>"{
"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
Organizations of this kind. What the organization is.
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.
prospect, active_client, past_client, partner, supplier, competitor The name contains this.
true to include archived organizations, which are left out otherwise.
Response
The CSV file.
The response is of type string.