curl --request GET \
--url https://{organization}.rescueconsole.com/api/registry/flags \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/registry/flags', 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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"originating_tenant_id": "<string>",
"subject_type": "person",
"identifiers": {
"microchip_hash": "<string>",
"email_hash": "<string>",
"phone_hash": "<string>",
"phone_hash_national": "<string>",
"phone_country": "<string>",
"name_parts": {
"prefix": "<string>",
"first": "<string>",
"last": "<string>",
"suffix": "<string>"
},
"name_alias": "<string>",
"animal_name": "<string>",
"species": "<string>",
"breed": "<string>",
"color": "<string>",
"sex": "<string>",
"address_area": {
"city": "<string>",
"administrative_area": "<string>",
"country": "<string>"
},
"dob_year": "<string>",
"dob_hash": "<string>"
},
"flag_type": "animal_abuse",
"severity": "advisory",
"status": "pending_review",
"visibility": "network",
"narrative": "<string>",
"evidence_refs": [
"<unknown>"
],
"moderation_metadata": {
"corroborations": 123,
"disputes": 123,
"insufficient_evidence": 123,
"corroborating_tenant_ids": [
"<string>"
],
"disputing_tenant_ids": [
"<string>"
]
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"limit": 123,
"offset": 123,
"has_more": true,
"total": 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)"
}List your flags
The flags YOUR organization filed, in any status and any visibility, newest first. Flags other organizations filed are never in this list. Needs read on Registry.
curl --request GET \
--url https://{organization}.rescueconsole.com/api/registry/flags \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/registry/flags', 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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"originating_tenant_id": "<string>",
"subject_type": "person",
"identifiers": {
"microchip_hash": "<string>",
"email_hash": "<string>",
"phone_hash": "<string>",
"phone_hash_national": "<string>",
"phone_country": "<string>",
"name_parts": {
"prefix": "<string>",
"first": "<string>",
"last": "<string>",
"suffix": "<string>"
},
"name_alias": "<string>",
"animal_name": "<string>",
"species": "<string>",
"breed": "<string>",
"color": "<string>",
"sex": "<string>",
"address_area": {
"city": "<string>",
"administrative_area": "<string>",
"country": "<string>"
},
"dob_year": "<string>",
"dob_hash": "<string>"
},
"flag_type": "animal_abuse",
"severity": "advisory",
"status": "pending_review",
"visibility": "network",
"narrative": "<string>",
"evidence_refs": [
"<unknown>"
],
"moderation_metadata": {
"corroborations": 123,
"disputes": 123,
"insufficient_evidence": 123,
"corroborating_tenant_ids": [
"<string>"
],
"disputing_tenant_ids": [
"<string>"
]
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"limit": 123,
"offset": 123,
"has_more": true,
"total": 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
How many to return. 25 unless you say, 100 at most.
1 <= x <= 100How many to skip, for the next page.
x >= 0Only 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