curl --request GET \
--url https://{organization}.rescueconsole.com/api/communications/threads/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/communications/threads/{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/threads/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"messages": [
{
"id": "<string>",
"direction": "inbound",
"from_address": "<string>",
"from_name": "<string>",
"to_addresses": [
"<string>"
],
"cc_addresses": [
"<string>"
],
"subject": "<string>",
"body_text": "<string>",
"body_html": "<string>",
"has_html": true,
"authentication": {
"spf": "<string>",
"dkim": "<string>",
"dmarc": "<string>"
},
"attachments": [
{
"file_id": "<string>",
"filename": "<string>",
"content_type": "<string>",
"size": 123
}
],
"received_at": "2023-11-07T05:31:56Z"
}
],
"links": [
{
"id": "<string>",
"entity_type": "person",
"entity_id": "<string>",
"source": "<string>",
"is_confirmed": true,
"confirmed_at": "<string>",
"confirmed_by_person_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"entity_label": "<string>"
}
],
"id": "<string>",
"inbox_id": "<string>",
"inbox_name": "<string>",
"inbox_display_name": "<string>",
"subject": "<string>",
"status": "open",
"assigned_person_id": "<string>",
"assigned_person_name": "<string>",
"is_archived": true,
"archived_at": "<string>",
"is_unread": true,
"message_count": 123,
"last_message_at": "2023-11-07T05:31:56Z",
"last_from": "<string>",
"last_direction": "<string>",
"last_snippet": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"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 one conversation
A conversation with every message in it, and every record it is linked to. Reading it does not mark it read. A key sees the inboxes that the person who made the key may read, as that person’s access stands at the moment of the request; a conversation in any other inbox answers 404, the same as one that does not exist. Needs read on Communications.
curl --request GET \
--url https://{organization}.rescueconsole.com/api/communications/threads/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/communications/threads/{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/threads/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"messages": [
{
"id": "<string>",
"direction": "inbound",
"from_address": "<string>",
"from_name": "<string>",
"to_addresses": [
"<string>"
],
"cc_addresses": [
"<string>"
],
"subject": "<string>",
"body_text": "<string>",
"body_html": "<string>",
"has_html": true,
"authentication": {
"spf": "<string>",
"dkim": "<string>",
"dmarc": "<string>"
},
"attachments": [
{
"file_id": "<string>",
"filename": "<string>",
"content_type": "<string>",
"size": 123
}
],
"received_at": "2023-11-07T05:31:56Z"
}
],
"links": [
{
"id": "<string>",
"entity_type": "person",
"entity_id": "<string>",
"source": "<string>",
"is_confirmed": true,
"confirmed_at": "<string>",
"confirmed_by_person_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"entity_label": "<string>"
}
],
"id": "<string>",
"inbox_id": "<string>",
"inbox_name": "<string>",
"inbox_display_name": "<string>",
"subject": "<string>",
"status": "open",
"assigned_person_id": "<string>",
"assigned_person_name": "<string>",
"is_archived": true,
"archived_at": "<string>",
"is_unread": true,
"message_count": 123,
"last_message_at": "2023-11-07T05:31:56Z",
"last_from": "<string>",
"last_direction": "<string>",
"last_snippet": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"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 conversation's ID.
Response
The conversation.
Oldest first.
Show child attributes
Show child attributes
Every record the conversation is linked to, confirmed or not.
Show child attributes
Show child attributes
The inbox's name, the part of its address that is its own.
open, closed, spam Who is handling it.
Put away. An archived conversation keeps its status and is left out of every list but the archived one.
When it was archived.
Who sent the latest message. In the list only; null elsewhere.
inbound or outbound, for the latest message. In the list only; null elsewhere.
The first 200 characters of the latest message. In the list only; null elsewhere.