curl --request GET \
--url https://{organization}.rescueconsole.com/api/registry/flags/facets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/registry/flags/facets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/registry/flags/facets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"facets": {
"status": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"flag_type": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"severity": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"subject_type": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"visibility": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
]
}
}{
"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)"
}Count your flags
How many of YOUR organization’s flags there are in each status, flag type, severity, subject type and visibility, for the same filters the list takes. Each group is counted with its own filter left out, so its counts say how many you would get by choosing that value instead. Every value appears, at zero when there are none. The status of your flags changes when other organizations review them, so these counts can move while nobody at your organization does anything. Needs read on Registry.
curl --request GET \
--url https://{organization}.rescueconsole.com/api/registry/flags/facets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/registry/flags/facets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/registry/flags/facets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"facets": {
"status": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"flag_type": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"severity": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"subject_type": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"visibility": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
]
}
}{
"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
Only flags in this status. pending_review until two other organizations corroborate it (then active), or two dispute it (then disputed). Nothing sets revoked at present.
pending_review, active, disputed, revoked Only flags of this type.
animal_abuse, neglect, fraud, abandonment, falsified_application, other Only flags of this severity.
advisory, moderate, severe Only flags about a person, or only flags about an animal. Whether the flag is about a person or an animal.
person, animal Only flags with this visibility. network: other organizations can see it once it is active. private: only your organization ever sees it.
network, private