curl --request GET \
--url https://{organization}.rescueconsole.com/api/communications/preferences/{person_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/communications/preferences/{person_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/communications/preferences/{person_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"person_id": "<string>",
"channel": "email",
"opted_in": true,
"categories": {},
"id": "<string>",
"tenant_id": "<string>",
"updated_at": "<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)"
}Get a person's contact preferences
Whether a person has opted out of email from your organization, altogether or by category. A person with nothing saved is opted in to everything. What it stops: Send an email to this person by person_id (checked against the message’s category), and starting a conversation with them or copying them in one (checked against the category general). Mail sent to their address typed by hand, without naming the person, is not checked, and neither are the people a reply goes to. Needs read on Communications.
curl --request GET \
--url https://{organization}.rescueconsole.com/api/communications/preferences/{person_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/communications/preferences/{person_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/communications/preferences/{person_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"person_id": "<string>",
"channel": "email",
"opted_in": true,
"categories": {},
"id": "<string>",
"tenant_id": "<string>",
"updated_at": "<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_.
Path Parameters
The person's ID.
Response
The preferences.
email false means the person has opted out of email from your organization altogether.
Opt-outs by category. A category set to false is one the person does not want; a category not listed is allowed.
Show child attributes
Show child attributes
Null when nothing has been saved for this person.
Your organization's ID.
Null when nothing has been saved.