API Documentation
Basics ¶
Rechat’s responses follow a set of conventions which are described below.
-
All responses are JSON formatted.
-
All responses are Objects.
-
All responses have a
code. -
If the operation has been successfull then
code = 'OK'
Errors ¶
All errors will have a:
-
codethat explains the error, -
A
messagethat gives some information about the error
Example Error ¶
Example ErrorGET/rooms/:id
Example URI
- id
string(required) Example: e9196d40-d3e3-11f0-a3e3-6b9d9240de9f
404Body
{
"trace": false,
"http": 404,
"message": "Room e9196d40-d3e3-11f0-a3e3-6b9d9240de9f not found",
"code": "ResourceNotFound",
"slack": false
}Format ¶
Single Entities
If the called endpoint is supposed to provide a single entity, the entity will be stored in data key.
Collections
If the called endpoint is supposed to provide a collection of entities,
the data key will be an array of all retrieved entities.
An info object will also be provided that includes:
-
countThe number of retrieved entities that are present in thedata -
totalTotal number of matching entities which coule be fetched using pagination
Example single entity endpoint ¶
Example single entity endpointGET/rooms/:id
Example URI
- id
string(required) Example: 7c0c7439-baf5-4c0f-aaa1-134fceb44a26- associations
string(required) Example: room.owner,room.latest_message,room.users
200Body
{
"code": "OK",
"data": {
"type": "room",
"id": "7c0c7439-baf5-4c0f-aaa1-134fceb44a26",
"title": "sampleroom",
"owner": {
"type": "user",
"username": null,
"first_name": "Unit",
"last_name": "Test",
"email": "[email protected]",
"phone_number": "+4368120265807",
"created_at": 1493115498.770362,
"id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1493115498.770744,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": true,
"timezone": "America/Chicago",
"user_type": "Admin",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": false,
"personal_room": null,
"brand": null,
"fake_email": false,
"features": [
"Deals"
],
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "Unit Test",
"abbreviated_display_name": "Unit",
"online_state": "Offline",
"has_password": true
},
"created_at": 1765163626.204119,
"updated_at": 1765163626.409239,
"deleted_at": null,
"room_type": "Group",
"new_notifications": 0,
"latest_message": {
"type": "message",
"mid": "49b6ec4d-6f55-4fce-adaf-5f9d95ad10ee",
"id": "49b6ec4d-6f55-4fce-adaf-5f9d95ad10ee",
"comment": "Unit invited +18598161689 to join.",
"image_url": null,
"document_url": null,
"video_url": null,
"recommendation": null,
"author": null,
"created_at": 1765163626.409239,
"updated_at": 1765163626.409239,
"room": "7c0c7439-baf5-4c0f-aaa1-134fceb44a26",
"image_thumbnail_url": null,
"deleted_at": null,
"notification": {
"type": "notification",
"id": "a3bf839c-8220-4c64-8faf-61f6253eb826",
"object": "7c0c7439-baf5-4c0f-aaa1-134fceb44a26",
"message": "Unit invited +18598161689 to join.",
"created_at": 1765163626.395782,
"updated_at": 1765163626.395782,
"room": "7c0c7439-baf5-4c0f-aaa1-134fceb44a26",
"action": "Invited",
"object_class": "Room",
"subject": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"auxiliary_object_class": "User",
"auxiliary_object": {
"type": "user",
"username": null,
"first_name": "",
"last_name": "",
"email": "[email protected]",
"phone_number": "+18598161689",
"created_at": 1765163626.069971,
"id": "76eed142-acf0-43cb-9009-fc0e234f72c0",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1765163626.069978,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Client",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": true,
"personal_room": "8c16b1d1-1b37-4e25-9294-8de2af8d4017",
"brand": null,
"fake_email": true,
"features": null,
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": null,
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "+18598161689",
"abbreviated_display_name": "+18598161689",
"online_state": "Offline",
"has_password": false
},
"recommendation": null,
"auxiliary_subject": null,
"subject_class": "User",
"auxiliary_subject_class": null,
"extra_subject_class": null,
"extra_object_class": null,
"deleted_at": null,
"specific": null,
"title": null,
"data": null,
"sound": null,
"app": "rechat",
"transports": null,
"phone_number": null,
"notification_type": "UserInvitedRoom",
"seen": true,
"recommendations": null,
"objects": null,
"subjects": [
{
"type": "user",
"username": null,
"first_name": "Unit",
"last_name": "Test",
"email": "[email protected]",
"phone_number": "+4368120265807",
"created_at": 1493115498.770362,
"id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1493115498.770744,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": true,
"timezone": "America/Chicago",
"user_type": "Admin",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": false,
"personal_room": null,
"brand": null,
"fake_email": false,
"features": [
"Deals"
],
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "Unit Test",
"abbreviated_display_name": "Unit",
"online_state": "Offline",
"has_password": true
}
]
},
"reference": null,
"mentions": null,
"activity": null,
"role": null,
"attachments": [],
"files": null,
"email_campaigns": null,
"contacts": null,
"crm_tasks": null,
"compact_listings": null,
"input_forms": null,
"websites": null,
"social_posts": null,
"print_campaigns": null,
"template_instances": null,
"brand_assets": null,
"acked_by": null,
"deliveries": [
{
"user": "76eed142-acf0-43cb-9009-fc0e234f72c0",
"delivery_type": "sms",
"type": "notification_delivery",
"created_at": "2025-12-08T03:13:46.559027+00:00"
}
]
},
"notification_settings": {
"80a227b2-29a0-11e7-b636-e4a7a08e15d4": "N_ALL"
},
"users": [
{
"type": "user",
"username": null,
"first_name": "[email protected]",
"last_name": "",
"email": "[email protected]",
"phone_number": null,
"created_at": 1765163626.068701,
"id": "65ed748a-5b9a-400a-b541-9186349aaae3",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1765163626.068727,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Client",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": true,
"personal_room": "3369258f-5eb3-4d6f-9336-6ea43aae7019",
"brand": null,
"fake_email": null,
"features": null,
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": null,
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "[email protected] ",
"abbreviated_display_name": "[email protected]",
"online_state": "Offline",
"has_password": false
},
{
"type": "user",
"username": null,
"first_name": "",
"last_name": "",
"email": "[email protected]",
"phone_number": "+18598161689",
"created_at": 1765163626.069971,
"id": "76eed142-acf0-43cb-9009-fc0e234f72c0",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1765163626.069978,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Client",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": true,
"personal_room": "8c16b1d1-1b37-4e25-9294-8de2af8d4017",
"brand": null,
"fake_email": true,
"features": null,
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": null,
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "+18598161689",
"abbreviated_display_name": "+18598161689",
"online_state": "Offline",
"has_password": false
},
{
"type": "user",
"username": null,
"first_name": "Unit",
"last_name": "Test",
"email": "[email protected]",
"phone_number": "+4368120265807",
"created_at": 1493115498.770362,
"id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1493115498.770744,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": true,
"timezone": "America/Chicago",
"user_type": "Admin",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": false,
"personal_room": null,
"brand": null,
"fake_email": false,
"features": [
"Deals"
],
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "Unit Test",
"abbreviated_display_name": "Unit",
"online_state": "Offline",
"has_password": true
}
],
"total_alerts": null,
"total_favorites": null,
"proposed_title": "[email protected], +18598161689"
}
}Example collection endpoint ¶
Example collection endpointGET/rooms
Example URI
- associations
string(required) Example: room.owner,room.latest_message,room.users
200Body
{
"code": "OK",
"data": [
{
"type": "room",
"id": "f1978727-25ef-4711-b40a-619c0621be76",
"title": null,
"owner": null,
"created_at": 1765163626.718649,
"updated_at": 1765163626.759588,
"deleted_at": null,
"room_type": "Direct",
"new_notifications": 0,
"latest_message": {
"type": "message",
"mid": "d38d29d0-b6a5-4c49-9ac4-b576e2e4a23a",
"id": "d38d29d0-b6a5-4c49-9ac4-b576e2e4a23a",
"comment": "Unit invited [email protected] to join.",
"image_url": null,
"document_url": null,
"video_url": null,
"recommendation": null,
"author": null,
"created_at": 1765163626.759588,
"updated_at": 1765163626.759588,
"room": "f1978727-25ef-4711-b40a-619c0621be76",
"image_thumbnail_url": null,
"deleted_at": null,
"notification": {
"type": "notification",
"id": "5dbb100a-93e6-415c-9a30-1a76ccabd36d",
"object": "f1978727-25ef-4711-b40a-619c0621be76",
"message": "Unit invited [email protected] to join.",
"created_at": 1765163626.748232,
"updated_at": 1765163626.748232,
"room": "f1978727-25ef-4711-b40a-619c0621be76",
"action": "Invited",
"object_class": "Room",
"subject": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"auxiliary_object_class": "User",
"auxiliary_object": {
"type": "user",
"username": null,
"first_name": "[email protected]",
"last_name": "",
"email": "[email protected]",
"phone_number": null,
"created_at": 1765163626.650024,
"id": "ce106743-36b9-45e7-801b-fab68269fb8d",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1765163626.650045,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Client",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": true,
"personal_room": "b0f13719-0b8c-427a-ac64-944921692775",
"brand": null,
"fake_email": null,
"features": null,
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": null,
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "[email protected] ",
"abbreviated_display_name": "[email protected]",
"online_state": "Offline",
"has_password": false
},
"recommendation": null,
"auxiliary_subject": null,
"subject_class": "User",
"auxiliary_subject_class": null,
"extra_subject_class": null,
"extra_object_class": null,
"deleted_at": null,
"specific": null,
"title": null,
"data": null,
"sound": null,
"app": "rechat",
"transports": null,
"phone_number": null,
"notification_type": "UserInvitedRoom",
"seen": true,
"recommendations": null,
"objects": null,
"subjects": [
{
"type": "user",
"username": null,
"first_name": "Unit",
"last_name": "Test",
"email": "[email protected]",
"phone_number": "+4368120265807",
"created_at": 1493115498.770362,
"id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1493115498.770744,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": true,
"timezone": "America/Chicago",
"user_type": "Admin",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": false,
"personal_room": null,
"brand": null,
"fake_email": false,
"features": [
"Deals"
],
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "Unit Test",
"abbreviated_display_name": "Unit",
"online_state": "Offline",
"has_password": true
}
]
},
"reference": null,
"mentions": null,
"activity": null,
"role": null,
"attachments": [],
"files": null,
"email_campaigns": null,
"contacts": null,
"crm_tasks": null,
"compact_listings": null,
"input_forms": null,
"websites": null,
"social_posts": null,
"print_campaigns": null,
"template_instances": null,
"brand_assets": null,
"acked_by": null,
"deliveries": null
},
"notification_settings": {
"80a227b2-29a0-11e7-b636-e4a7a08e15d4": "N_ALL"
},
"users": [
{
"type": "user",
"username": null,
"first_name": "Unit",
"last_name": "Test",
"email": "[email protected]",
"phone_number": "+4368120265807",
"created_at": 1493115498.770362,
"id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1493115498.770744,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": true,
"timezone": "America/Chicago",
"user_type": "Admin",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": false,
"personal_room": null,
"brand": null,
"fake_email": false,
"features": [
"Deals"
],
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "Unit Test",
"abbreviated_display_name": "Unit",
"online_state": "Offline",
"has_password": true
},
{
"type": "user",
"username": null,
"first_name": "[email protected]",
"last_name": "",
"email": "[email protected]",
"phone_number": null,
"created_at": 1765163626.650024,
"id": "ce106743-36b9-45e7-801b-fab68269fb8d",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1765163626.650045,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Client",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": true,
"personal_room": "b0f13719-0b8c-427a-ac64-944921692775",
"brand": null,
"fake_email": null,
"features": null,
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": null,
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "[email protected] ",
"abbreviated_display_name": "[email protected]",
"online_state": "Offline",
"has_password": false
}
],
"total_alerts": null,
"total_favorites": null,
"proposed_title": "[email protected]"
},
{
"type": "room",
"id": "7c0c7439-baf5-4c0f-aaa1-134fceb44a26",
"title": "sampleroom",
"owner": {
"type": "user",
"username": null,
"first_name": "Unit",
"last_name": "Test",
"email": "[email protected]",
"phone_number": "+4368120265807",
"created_at": 1493115498.770362,
"id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1493115498.770744,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": true,
"timezone": "America/Chicago",
"user_type": "Admin",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": false,
"personal_room": null,
"brand": null,
"fake_email": false,
"features": [
"Deals"
],
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "Unit Test",
"abbreviated_display_name": "Unit",
"online_state": "Offline",
"has_password": true
},
"created_at": 1765163626.204119,
"updated_at": 1765163626.409239,
"deleted_at": null,
"room_type": "Group",
"new_notifications": 0,
"latest_message": {
"type": "message",
"mid": "49b6ec4d-6f55-4fce-adaf-5f9d95ad10ee",
"id": "49b6ec4d-6f55-4fce-adaf-5f9d95ad10ee",
"comment": "Unit invited +18598161689 to join.",
"image_url": null,
"document_url": null,
"video_url": null,
"recommendation": null,
"author": null,
"created_at": 1765163626.409239,
"updated_at": 1765163626.409239,
"room": "7c0c7439-baf5-4c0f-aaa1-134fceb44a26",
"image_thumbnail_url": null,
"deleted_at": null,
"notification": {
"type": "notification",
"id": "a3bf839c-8220-4c64-8faf-61f6253eb826",
"object": "7c0c7439-baf5-4c0f-aaa1-134fceb44a26",
"message": "Unit invited +18598161689 to join.",
"created_at": 1765163626.395782,
"updated_at": 1765163626.395782,
"room": "7c0c7439-baf5-4c0f-aaa1-134fceb44a26",
"action": "Invited",
"object_class": "Room",
"subject": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"auxiliary_object_class": "User",
"auxiliary_object": {
"type": "user",
"username": null,
"first_name": "",
"last_name": "",
"email": "[email protected]",
"phone_number": "+18598161689",
"created_at": 1765163626.069971,
"id": "76eed142-acf0-43cb-9009-fc0e234f72c0",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1765163626.069978,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Client",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": true,
"personal_room": "8c16b1d1-1b37-4e25-9294-8de2af8d4017",
"brand": null,
"fake_email": true,
"features": null,
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": null,
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "+18598161689",
"abbreviated_display_name": "+18598161689",
"online_state": "Offline",
"has_password": false
},
"recommendation": null,
"auxiliary_subject": null,
"subject_class": "User",
"auxiliary_subject_class": null,
"extra_subject_class": null,
"extra_object_class": null,
"deleted_at": null,
"specific": null,
"title": null,
"data": null,
"sound": null,
"app": "rechat",
"transports": null,
"phone_number": null,
"notification_type": "UserInvitedRoom",
"seen": true,
"recommendations": null,
"objects": null,
"subjects": [
{
"type": "user",
"username": null,
"first_name": "Unit",
"last_name": "Test",
"email": "[email protected]",
"phone_number": "+4368120265807",
"created_at": 1493115498.770362,
"id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1493115498.770744,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": true,
"timezone": "America/Chicago",
"user_type": "Admin",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": false,
"personal_room": null,
"brand": null,
"fake_email": false,
"features": [
"Deals"
],
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "Unit Test",
"abbreviated_display_name": "Unit",
"online_state": "Offline",
"has_password": true
}
]
},
"reference": null,
"mentions": null,
"activity": null,
"role": null,
"attachments": [],
"files": null,
"email_campaigns": null,
"contacts": null,
"crm_tasks": null,
"compact_listings": null,
"input_forms": null,
"websites": null,
"social_posts": null,
"print_campaigns": null,
"template_instances": null,
"brand_assets": null,
"acked_by": null,
"deliveries": [
{
"user": "76eed142-acf0-43cb-9009-fc0e234f72c0",
"delivery_type": "sms",
"type": "notification_delivery",
"created_at": "2025-12-08T03:13:46.559027+00:00"
}
]
},
"notification_settings": {
"80a227b2-29a0-11e7-b636-e4a7a08e15d4": "N_ALL"
},
"users": [
{
"type": "user",
"username": null,
"first_name": "[email protected]",
"last_name": "",
"email": "[email protected]",
"phone_number": null,
"created_at": 1765163626.068701,
"id": "65ed748a-5b9a-400a-b541-9186349aaae3",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1765163626.068727,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Client",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": true,
"personal_room": "3369258f-5eb3-4d6f-9336-6ea43aae7019",
"brand": null,
"fake_email": null,
"features": null,
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": null,
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "[email protected] ",
"abbreviated_display_name": "[email protected]",
"online_state": "Offline",
"has_password": false
},
{
"type": "user",
"username": null,
"first_name": "",
"last_name": "",
"email": "[email protected]",
"phone_number": "+18598161689",
"created_at": 1765163626.069971,
"id": "76eed142-acf0-43cb-9009-fc0e234f72c0",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1765163626.069978,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Client",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": true,
"personal_room": "8c16b1d1-1b37-4e25-9294-8de2af8d4017",
"brand": null,
"fake_email": true,
"features": null,
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": null,
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "+18598161689",
"abbreviated_display_name": "+18598161689",
"online_state": "Offline",
"has_password": false
},
{
"type": "user",
"username": null,
"first_name": "Unit",
"last_name": "Test",
"email": "[email protected]",
"phone_number": "+4368120265807",
"created_at": 1493115498.770362,
"id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1493115498.770744,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": true,
"timezone": "America/Chicago",
"user_type": "Admin",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": false,
"personal_room": null,
"brand": null,
"fake_email": false,
"features": [
"Deals"
],
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "Unit Test",
"abbreviated_display_name": "Unit",
"online_state": "Offline",
"has_password": true
}
],
"total_alerts": null,
"total_favorites": null,
"proposed_title": "[email protected], +18598161689"
}
],
"info": {
"count": 2,
"total": 2,
"new": 0
}
}Associations ¶
Rechat is heavily relational and the need to have access to the associations within an object.
There are two formats that are supported.
-
Nested (default, legacy). All entities are already deeply nested in this format. But the response size could be too big.
-
Referenced. (prefered). Data objects are not nested but the response is compact.
Nested responses
Nested responses are considered harmful. They are only being used for backward compatibility reasons.
A nested example looks like this:
{
code: 'OK',
data: {
id: 1,
type: 'room'
owner: {
id: 1,
type: 'user',
email: '[email protected]'
},
users: [
{
id: 1,
type: 'user',
email: '[email protected]'
},
{
id: 2,
type: 'user',
email: '[email protected]'
}
],
latest_message: {
id: 1,
comment: 'Hi',
author: {
id: 1,
type: 'user',
email: '[email protected]'
}
}
}
}
As you can see in the object above, User #1 is the owner of the room and author of the latest message. He is also one of the members of the room.
Therefore, his user object is repeated 3 times and thus, inflating the response.
Referenced
Provide the following header:
X-RECHAT-FORMAT: references
And the response format you’ll get the following format:
{
code: 'OK',
references: {
user: {
1: {
id: 1,
type: 'user',
email: '[email protected]'
},
2: {
id: 2,
type: 'user',
email: '[email protected]'
}
},
message: {
1: {
id: 1,
comment: 'Hi',
author: {
type: 'reference',
model: 'user',
id:1,
}
}
}
}
data: {
id: 1,
type: 'room'
owner: ,
users: [
{
type: 'reference',
model: 'user',
id:1,
},
{
type: 'reference',
model: 'user',
id:2,
}
]
latest_message: {
type: 'reference',
model: 'message',
id: 1
}
}
}
The advantage to this format is that no matter how many times we repeat user #1 (or any other entity)
the response size will not grow a lot.
Example nested responsed ¶
Example nested responsedGET/rooms
Example URI
- associations
string(required) Example: room.owner,room.latest_message,room.users
200Body
{
"code": "OK",
"data": [
{
"type": "room",
"id": "f1978727-25ef-4711-b40a-619c0621be76",
"title": null,
"owner": null,
"created_at": 1765163626.718649,
"updated_at": 1765163626.759588,
"deleted_at": null,
"room_type": "Direct",
"new_notifications": 0,
"latest_message": {
"type": "message",
"mid": "d38d29d0-b6a5-4c49-9ac4-b576e2e4a23a",
"id": "d38d29d0-b6a5-4c49-9ac4-b576e2e4a23a",
"comment": "Unit invited [email protected] to join.",
"image_url": null,
"document_url": null,
"video_url": null,
"recommendation": null,
"author": null,
"created_at": 1765163626.759588,
"updated_at": 1765163626.759588,
"room": "f1978727-25ef-4711-b40a-619c0621be76",
"image_thumbnail_url": null,
"deleted_at": null,
"notification": {
"type": "notification",
"id": "5dbb100a-93e6-415c-9a30-1a76ccabd36d",
"object": "f1978727-25ef-4711-b40a-619c0621be76",
"message": "Unit invited [email protected] to join.",
"created_at": 1765163626.748232,
"updated_at": 1765163626.748232,
"room": "f1978727-25ef-4711-b40a-619c0621be76",
"action": "Invited",
"object_class": "Room",
"subject": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"auxiliary_object_class": "User",
"auxiliary_object": {
"type": "user",
"username": null,
"first_name": "[email protected]",
"last_name": "",
"email": "[email protected]",
"phone_number": null,
"created_at": 1765163626.650024,
"id": "ce106743-36b9-45e7-801b-fab68269fb8d",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1765163626.650045,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Client",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": true,
"personal_room": "b0f13719-0b8c-427a-ac64-944921692775",
"brand": null,
"fake_email": null,
"features": null,
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": null,
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "[email protected] ",
"abbreviated_display_name": "[email protected]",
"online_state": "Offline",
"has_password": false
},
"recommendation": null,
"auxiliary_subject": null,
"subject_class": "User",
"auxiliary_subject_class": null,
"extra_subject_class": null,
"extra_object_class": null,
"deleted_at": null,
"specific": null,
"title": null,
"data": null,
"sound": null,
"app": "rechat",
"transports": null,
"phone_number": null,
"notification_type": "UserInvitedRoom",
"seen": true,
"recommendations": null,
"objects": null,
"subjects": [
{
"type": "user",
"username": null,
"first_name": "Unit",
"last_name": "Test",
"email": "[email protected]",
"phone_number": "+4368120265807",
"created_at": 1493115498.770362,
"id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1493115498.770744,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": true,
"timezone": "America/Chicago",
"user_type": "Admin",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": false,
"personal_room": null,
"brand": null,
"fake_email": false,
"features": [
"Deals"
],
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "Unit Test",
"abbreviated_display_name": "Unit",
"online_state": "Offline",
"has_password": true
}
]
},
"reference": null,
"mentions": null,
"activity": null,
"role": null,
"attachments": [],
"files": null,
"email_campaigns": null,
"contacts": null,
"crm_tasks": null,
"compact_listings": null,
"input_forms": null,
"websites": null,
"social_posts": null,
"print_campaigns": null,
"template_instances": null,
"brand_assets": null,
"acked_by": null,
"deliveries": null
},
"notification_settings": {
"80a227b2-29a0-11e7-b636-e4a7a08e15d4": "N_ALL"
},
"users": [
{
"type": "user",
"username": null,
"first_name": "Unit",
"last_name": "Test",
"email": "[email protected]",
"phone_number": "+4368120265807",
"created_at": 1493115498.770362,
"id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1493115498.770744,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": true,
"timezone": "America/Chicago",
"user_type": "Admin",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": false,
"personal_room": null,
"brand": null,
"fake_email": false,
"features": [
"Deals"
],
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "Unit Test",
"abbreviated_display_name": "Unit",
"online_state": "Offline",
"has_password": true
},
{
"type": "user",
"username": null,
"first_name": "[email protected]",
"last_name": "",
"email": "[email protected]",
"phone_number": null,
"created_at": 1765163626.650024,
"id": "ce106743-36b9-45e7-801b-fab68269fb8d",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1765163626.650045,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Client",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": true,
"personal_room": "b0f13719-0b8c-427a-ac64-944921692775",
"brand": null,
"fake_email": null,
"features": null,
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": null,
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "[email protected] ",
"abbreviated_display_name": "[email protected]",
"online_state": "Offline",
"has_password": false
}
],
"total_alerts": null,
"total_favorites": null,
"proposed_title": "[email protected]"
},
{
"type": "room",
"id": "7c0c7439-baf5-4c0f-aaa1-134fceb44a26",
"title": "sampleroom",
"owner": {
"type": "user",
"username": null,
"first_name": "Unit",
"last_name": "Test",
"email": "[email protected]",
"phone_number": "+4368120265807",
"created_at": 1493115498.770362,
"id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1493115498.770744,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": true,
"timezone": "America/Chicago",
"user_type": "Admin",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": false,
"personal_room": null,
"brand": null,
"fake_email": false,
"features": [
"Deals"
],
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "Unit Test",
"abbreviated_display_name": "Unit",
"online_state": "Offline",
"has_password": true
},
"created_at": 1765163626.204119,
"updated_at": 1765163626.409239,
"deleted_at": null,
"room_type": "Group",
"new_notifications": 0,
"latest_message": {
"type": "message",
"mid": "49b6ec4d-6f55-4fce-adaf-5f9d95ad10ee",
"id": "49b6ec4d-6f55-4fce-adaf-5f9d95ad10ee",
"comment": "Unit invited +18598161689 to join.",
"image_url": null,
"document_url": null,
"video_url": null,
"recommendation": null,
"author": null,
"created_at": 1765163626.409239,
"updated_at": 1765163626.409239,
"room": "7c0c7439-baf5-4c0f-aaa1-134fceb44a26",
"image_thumbnail_url": null,
"deleted_at": null,
"notification": {
"type": "notification",
"id": "a3bf839c-8220-4c64-8faf-61f6253eb826",
"object": "7c0c7439-baf5-4c0f-aaa1-134fceb44a26",
"message": "Unit invited +18598161689 to join.",
"created_at": 1765163626.395782,
"updated_at": 1765163626.395782,
"room": "7c0c7439-baf5-4c0f-aaa1-134fceb44a26",
"action": "Invited",
"object_class": "Room",
"subject": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"auxiliary_object_class": "User",
"auxiliary_object": {
"type": "user",
"username": null,
"first_name": "",
"last_name": "",
"email": "[email protected]",
"phone_number": "+18598161689",
"created_at": 1765163626.069971,
"id": "76eed142-acf0-43cb-9009-fc0e234f72c0",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1765163626.069978,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Client",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": true,
"personal_room": "8c16b1d1-1b37-4e25-9294-8de2af8d4017",
"brand": null,
"fake_email": true,
"features": null,
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": null,
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "+18598161689",
"abbreviated_display_name": "+18598161689",
"online_state": "Offline",
"has_password": false
},
"recommendation": null,
"auxiliary_subject": null,
"subject_class": "User",
"auxiliary_subject_class": null,
"extra_subject_class": null,
"extra_object_class": null,
"deleted_at": null,
"specific": null,
"title": null,
"data": null,
"sound": null,
"app": "rechat",
"transports": null,
"phone_number": null,
"notification_type": "UserInvitedRoom",
"seen": true,
"recommendations": null,
"objects": null,
"subjects": [
{
"type": "user",
"username": null,
"first_name": "Unit",
"last_name": "Test",
"email": "[email protected]",
"phone_number": "+4368120265807",
"created_at": 1493115498.770362,
"id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1493115498.770744,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": true,
"timezone": "America/Chicago",
"user_type": "Admin",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": false,
"personal_room": null,
"brand": null,
"fake_email": false,
"features": [
"Deals"
],
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "Unit Test",
"abbreviated_display_name": "Unit",
"online_state": "Offline",
"has_password": true
}
]
},
"reference": null,
"mentions": null,
"activity": null,
"role": null,
"attachments": [],
"files": null,
"email_campaigns": null,
"contacts": null,
"crm_tasks": null,
"compact_listings": null,
"input_forms": null,
"websites": null,
"social_posts": null,
"print_campaigns": null,
"template_instances": null,
"brand_assets": null,
"acked_by": null,
"deliveries": [
{
"user": "76eed142-acf0-43cb-9009-fc0e234f72c0",
"delivery_type": "sms",
"type": "notification_delivery",
"created_at": "2025-12-08T03:13:46.559027+00:00"
}
]
},
"notification_settings": {
"80a227b2-29a0-11e7-b636-e4a7a08e15d4": "N_ALL"
},
"users": [
{
"type": "user",
"username": null,
"first_name": "[email protected]",
"last_name": "",
"email": "[email protected]",
"phone_number": null,
"created_at": 1765163626.068701,
"id": "65ed748a-5b9a-400a-b541-9186349aaae3",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1765163626.068727,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Client",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": true,
"personal_room": "3369258f-5eb3-4d6f-9336-6ea43aae7019",
"brand": null,
"fake_email": null,
"features": null,
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": null,
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "[email protected] ",
"abbreviated_display_name": "[email protected]",
"online_state": "Offline",
"has_password": false
},
{
"type": "user",
"username": null,
"first_name": "",
"last_name": "",
"email": "[email protected]",
"phone_number": "+18598161689",
"created_at": 1765163626.069971,
"id": "76eed142-acf0-43cb-9009-fc0e234f72c0",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1765163626.069978,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Client",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": true,
"personal_room": "8c16b1d1-1b37-4e25-9294-8de2af8d4017",
"brand": null,
"fake_email": true,
"features": null,
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": null,
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "+18598161689",
"abbreviated_display_name": "+18598161689",
"online_state": "Offline",
"has_password": false
},
{
"type": "user",
"username": null,
"first_name": "Unit",
"last_name": "Test",
"email": "[email protected]",
"phone_number": "+4368120265807",
"created_at": 1493115498.770362,
"id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1493115498.770744,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": true,
"timezone": "America/Chicago",
"user_type": "Admin",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": false,
"personal_room": null,
"brand": null,
"fake_email": false,
"features": [
"Deals"
],
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "Unit Test",
"abbreviated_display_name": "Unit",
"online_state": "Offline",
"has_password": true
}
],
"total_alerts": null,
"total_favorites": null,
"proposed_title": "[email protected], +18598161689"
}
],
"info": {
"count": 2,
"total": 2,
"new": 0
}
}Example referenced responsed ¶
Example referenced responsedGET/rooms
Example URI
- associations
string(required) Example: room.owner,room.latest_message,room.users
200Body
{
"code": "OK",
"data": [
{
"type": "room",
"id": "f1978727-25ef-4711-b40a-619c0621be76",
"title": null,
"owner": null,
"created_at": 1765163626.718649,
"updated_at": 1765163626.759588,
"deleted_at": null,
"room_type": "Direct",
"new_notifications": 0,
"latest_message": {
"type": "reference",
"object_type": "message",
"id": "d38d29d0-b6a5-4c49-9ac4-b576e2e4a23a"
},
"notification_settings": {
"80a227b2-29a0-11e7-b636-e4a7a08e15d4": "N_ALL"
},
"users": [
{
"type": "reference",
"object_type": "user",
"id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4"
},
{
"type": "reference",
"object_type": "user",
"id": "ce106743-36b9-45e7-801b-fab68269fb8d"
}
],
"total_alerts": null,
"total_favorites": null,
"proposed_title": "[email protected]"
},
{
"type": "room",
"id": "7c0c7439-baf5-4c0f-aaa1-134fceb44a26",
"title": "sampleroom",
"owner": {
"type": "reference",
"object_type": "user",
"id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4"
},
"created_at": 1765163626.204119,
"updated_at": 1765163626.409239,
"deleted_at": null,
"room_type": "Group",
"new_notifications": 0,
"latest_message": {
"type": "reference",
"object_type": "message",
"id": "49b6ec4d-6f55-4fce-adaf-5f9d95ad10ee"
},
"notification_settings": {
"80a227b2-29a0-11e7-b636-e4a7a08e15d4": "N_ALL"
},
"users": [
{
"type": "reference",
"object_type": "user",
"id": "65ed748a-5b9a-400a-b541-9186349aaae3"
},
{
"type": "reference",
"object_type": "user",
"id": "76eed142-acf0-43cb-9009-fc0e234f72c0"
},
{
"type": "reference",
"object_type": "user",
"id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4"
}
],
"total_alerts": null,
"total_favorites": null,
"proposed_title": "[email protected], +18598161689"
}
],
"references": {
"user": {
"80a227b2-29a0-11e7-b636-e4a7a08e15d4": {
"type": "user",
"username": null,
"first_name": "Unit",
"last_name": "Test",
"email": "[email protected]",
"phone_number": "+4368120265807",
"created_at": 1493115498.770362,
"id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1493115498.770744,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": true,
"timezone": "America/Chicago",
"user_type": "Admin",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": false,
"personal_room": null,
"brand": null,
"fake_email": false,
"features": [
"Deals"
],
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "Unit Test",
"abbreviated_display_name": "Unit",
"online_state": "Offline",
"has_password": true
},
"ce106743-36b9-45e7-801b-fab68269fb8d": {
"type": "user",
"username": null,
"first_name": "[email protected]",
"last_name": "",
"email": "[email protected]",
"phone_number": null,
"created_at": 1765163626.650024,
"id": "ce106743-36b9-45e7-801b-fab68269fb8d",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1765163626.650045,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Client",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": true,
"personal_room": "b0f13719-0b8c-427a-ac64-944921692775",
"brand": null,
"fake_email": null,
"features": null,
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": null,
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "[email protected] ",
"abbreviated_display_name": "[email protected]",
"online_state": "Offline",
"has_password": false
},
"65ed748a-5b9a-400a-b541-9186349aaae3": {
"type": "user",
"username": null,
"first_name": "[email protected]",
"last_name": "",
"email": "[email protected]",
"phone_number": null,
"created_at": 1765163626.068701,
"id": "65ed748a-5b9a-400a-b541-9186349aaae3",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1765163626.068727,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Client",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": true,
"personal_room": "3369258f-5eb3-4d6f-9336-6ea43aae7019",
"brand": null,
"fake_email": null,
"features": null,
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": null,
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "[email protected] ",
"abbreviated_display_name": "[email protected]",
"online_state": "Offline",
"has_password": false
},
"76eed142-acf0-43cb-9009-fc0e234f72c0": {
"type": "user",
"username": null,
"first_name": "",
"last_name": "",
"email": "[email protected]",
"phone_number": "+18598161689",
"created_at": 1765163626.069971,
"id": "76eed142-acf0-43cb-9009-fc0e234f72c0",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1765163626.069978,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Client",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": true,
"personal_room": "8c16b1d1-1b37-4e25-9294-8de2af8d4017",
"brand": null,
"fake_email": true,
"features": null,
"last_seen_at": null,
"email_signature": null,
"daily_enabled": false,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": null,
"current_time": "9:13 PM - Sunday Dec 07, 2025",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": null,
"display_name": "+18598161689",
"abbreviated_display_name": "+18598161689",
"online_state": "Offline",
"has_password": false
}
},
"message": {
"d38d29d0-b6a5-4c49-9ac4-b576e2e4a23a": {
"type": "message",
"mid": "d38d29d0-b6a5-4c49-9ac4-b576e2e4a23a",
"id": "d38d29d0-b6a5-4c49-9ac4-b576e2e4a23a",
"comment": "Unit invited [email protected] to join.",
"image_url": null,
"document_url": null,
"video_url": null,
"recommendation": null,
"author": null,
"created_at": 1765163626.759588,
"updated_at": 1765163626.759588,
"room": "f1978727-25ef-4711-b40a-619c0621be76",
"image_thumbnail_url": null,
"deleted_at": null,
"notification": {
"type": "reference",
"object_type": "notification",
"id": "5dbb100a-93e6-415c-9a30-1a76ccabd36d"
},
"reference": null,
"mentions": null,
"activity": null,
"role": null,
"attachments": [],
"files": null,
"email_campaigns": null,
"contacts": null,
"crm_tasks": null,
"compact_listings": null,
"input_forms": null,
"websites": null,
"social_posts": null,
"print_campaigns": null,
"template_instances": null,
"brand_assets": null,
"acked_by": null,
"deliveries": null
},
"49b6ec4d-6f55-4fce-adaf-5f9d95ad10ee": {
"type": "message",
"mid": "49b6ec4d-6f55-4fce-adaf-5f9d95ad10ee",
"id": "49b6ec4d-6f55-4fce-adaf-5f9d95ad10ee",
"comment": "Unit invited +18598161689 to join.",
"image_url": null,
"document_url": null,
"video_url": null,
"recommendation": null,
"author": null,
"created_at": 1765163626.409239,
"updated_at": 1765163626.409239,
"room": "7c0c7439-baf5-4c0f-aaa1-134fceb44a26",
"image_thumbnail_url": null,
"deleted_at": null,
"notification": {
"type": "reference",
"object_type": "notification",
"id": "a3bf839c-8220-4c64-8faf-61f6253eb826"
},
"reference": null,
"mentions": null,
"activity": null,
"role": null,
"attachments": [],
"files": null,
"email_campaigns": null,
"contacts": null,
"crm_tasks": null,
"compact_listings": null,
"input_forms": null,
"websites": null,
"social_posts": null,
"print_campaigns": null,
"template_instances": null,
"brand_assets": null,
"acked_by": null,
"deliveries": [
{
"user": "76eed142-acf0-43cb-9009-fc0e234f72c0",
"delivery_type": "sms",
"type": "notification_delivery",
"created_at": "2025-12-08T03:13:46.559027+00:00"
}
]
}
},
"notification": {
"5dbb100a-93e6-415c-9a30-1a76ccabd36d": {
"type": "notification",
"id": "5dbb100a-93e6-415c-9a30-1a76ccabd36d",
"object": "f1978727-25ef-4711-b40a-619c0621be76",
"message": "Unit invited [email protected] to join.",
"created_at": 1765163626.748232,
"updated_at": 1765163626.748232,
"room": "f1978727-25ef-4711-b40a-619c0621be76",
"action": "Invited",
"object_class": "Room",
"subject": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"auxiliary_object_class": "User",
"auxiliary_object": {
"type": "reference",
"object_type": "user",
"id": "ce106743-36b9-45e7-801b-fab68269fb8d"
},
"recommendation": null,
"auxiliary_subject": null,
"subject_class": "User",
"auxiliary_subject_class": null,
"extra_subject_class": null,
"extra_object_class": null,
"deleted_at": null,
"specific": null,
"title": null,
"data": null,
"sound": null,
"app": "rechat",
"transports": null,
"phone_number": null,
"notification_type": "UserInvitedRoom",
"seen": true,
"recommendations": null,
"objects": null,
"subjects": [
{
"type": "reference",
"object_type": "user",
"id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4"
}
]
},
"a3bf839c-8220-4c64-8faf-61f6253eb826": {
"type": "notification",
"id": "a3bf839c-8220-4c64-8faf-61f6253eb826",
"object": "7c0c7439-baf5-4c0f-aaa1-134fceb44a26",
"message": "Unit invited +18598161689 to join.",
"created_at": 1765163626.395782,
"updated_at": 1765163626.395782,
"room": "7c0c7439-baf5-4c0f-aaa1-134fceb44a26",
"action": "Invited",
"object_class": "Room",
"subject": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"auxiliary_object_class": "User",
"auxiliary_object": {
"type": "reference",
"object_type": "user",
"id": "76eed142-acf0-43cb-9009-fc0e234f72c0"
},
"recommendation": null,
"auxiliary_subject": null,
"subject_class": "User",
"auxiliary_subject_class": null,
"extra_subject_class": null,
"extra_object_class": null,
"deleted_at": null,
"specific": null,
"title": null,
"data": null,
"sound": null,
"app": "rechat",
"transports": null,
"phone_number": null,
"notification_type": "UserInvitedRoom",
"seen": true,
"recommendations": null,
"objects": null,
"subjects": [
{
"type": "reference",
"object_type": "user",
"id": "80a227b2-29a0-11e7-b636-e4a7a08e15d4"
}
]
}
}
},
"info": {
"count": 2,
"total": 2,
"new": 0
}
}