Social Post
Overview ¶
Resource Group ¶
Get Social posts of brand ¶
Get Social posts of brandGET/brands/:brand/social-posts
brand (uuid) ID of the brand
user (uuid) ID of the user (optional)
status (‘executed’ | ‘scheduled’ | ‘draft’ | ‘any’) string (optional)
start (number) number of rows to skip before starting to return rows
limit (number) limited number of records
video (boolean) if the template was video
mediums (Email’ | ‘Social’ | ‘CrmOpenHouse’ | ‘FacebookCover’ | ‘InstagramStory’ | ‘LinkedInCover’ | ‘Letter’ | ‘Website’ | ‘RealtorCover’ | ‘YouTubeCover’ | ‘TwitterCover’)[] array of medium
order (string) eg: -created_at (optional)
Example URI
- brand
string(required) Example: 7370a7ee-c1c9-4109-b290-20bd3319ba65- status
string(required) Example: executed- associations
string(required) Example: social_post.template_instance,social_post.asset,social_post.owner
200Body
{
"code": "OK",
"data": [
{
"id": "db29e945-e7e6-4bd2-83d9-3dde795ea349",
"brand": "7370a7ee-c1c9-4109-b290-20bd3319ba65",
"created_by": "d16c1adc-68bf-4c5d-ac31-556f0cae1257",
"caption": "test",
"facebook_page": "83fff4ac-d774-4bc9-8b4b-a03af93b0a5d",
"template_instance": {
"id": "33d5d381-11ea-4260-b324-cab11d86717e",
"created_at": 1791656546.452848,
"html": "<div>fakeTemplateInstance</div>",
"file": {
"id": "03f1e4da-2e46-4528-adac-35e43c3af370",
"created_at": 1791656547.03665,
"updated_at": 1791656547.03665,
"deleted_at": null,
"created_by": "d16c1adc-68bf-4c5d-ac31-556f0cae1257",
"path": "templates/instances/8bf5cab0-c4d7-11f1-89da-fb554657817f.png",
"name": "image.png",
"public": true,
"type": "file",
"url": "https://test.cloudfront.net/templates/instances/8bf5cab0-c4d7-11f1-89da-fb554657817f.png",
"preview_url": "https://test.cloudfront.net/templates/instances/8bf5cab0-c4d7-11f1-89da-fb554657817f.png",
"mime": "image/png"
},
"created_by": "d16c1adc-68bf-4c5d-ac31-556f0cae1257",
"branch": "http://mock-branch-url",
"updated_at": 1791656546.452848,
"deleted_at": null,
"type": "template_instance"
},
"asset": null,
"post_link": "http://test.com",
"failed_at": null,
"failure": null,
"media_container_id": "test",
"type": "social_post",
"created_at": 1791656547.067958,
"updated_at": 1791656547.067958,
"deleted_at": null,
"due_at": 1791655947.057,
"executed_at": 1791656546.452848,
"owner": {
"type": "user",
"username": null,
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"phone_number": "+17349445880",
"created_at": 1791656546.460403,
"id": "d16c1adc-68bf-4c5d-ac31-556f0cae1257",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1791656546.460421,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Agent",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": null,
"personal_room": "728a22e5-e7fe-4f1c-aaab-3a35a4612d17",
"brand": null,
"fake_email": null,
"features": null,
"last_seen_at": null,
"email_signature": "This is my signature.",
"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,
"bio": "This is my bio.",
"current_time": "1:22 PM - Saturday Oct 10, 2026",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": "7370a7ee-c1c9-4109-b290-20bd3319ba65",
"display_name": "John Doe",
"abbreviated_display_name": "John",
"online_state": "Offline",
"has_password": true
}
},
{
"id": "b28b62d1-f947-4d6d-93b8-916c0f2edf14",
"brand": "7370a7ee-c1c9-4109-b290-20bd3319ba65",
"created_by": "d16c1adc-68bf-4c5d-ac31-556f0cae1257",
"caption": "testAsset",
"facebook_page": "83fff4ac-d774-4bc9-8b4b-a03af93b0a5d",
"template_instance": null,
"asset": {
"id": "f1202c7b-1ded-43b8-941b-adaa566e1076",
"created_at": 1791656546.654996,
"updated_at": null,
"deleted_at": null,
"created_by": "d16c1adc-68bf-4c5d-ac31-556f0cae1257",
"brand": "7370a7ee-c1c9-4109-b290-20bd3319ba65",
"file": {
"id": "f8379f4b-36f5-4b25-b524-f1f621a67878",
"created_at": 1791656546.653285,
"updated_at": 1791656546.653285,
"deleted_at": null,
"created_by": "d16c1adc-68bf-4c5d-ac31-556f0cae1257",
"path": "brands/assets/8bbb59c0-c4d7-11f1-89da-fb554657817f.png",
"name": "logo.png",
"public": true,
"type": "file",
"url": "https://test.cloudfront.net/brands/assets/8bbb59c0-c4d7-11f1-89da-fb554657817f.png",
"preview_url": "https://test.cloudfront.net/brands/assets/8bbb59c0-c4d7-11f1-89da-fb554657817f.png",
"mime": "image/png"
},
"label": "Asset Label",
"template_type": "Christmas",
"medium": "Email",
"branch": null,
"type": "brand_asset"
},
"post_link": "http://test.com",
"failed_at": null,
"failure": null,
"media_container_id": "test",
"type": "social_post",
"created_at": 1791656547.109218,
"updated_at": 1791656547.109218,
"deleted_at": null,
"due_at": 1791655947.099,
"executed_at": 1791656546.452848,
"owner": {
"type": "user",
"username": null,
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"phone_number": "+17349445880",
"created_at": 1791656546.460403,
"id": "d16c1adc-68bf-4c5d-ac31-556f0cae1257",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1791656546.460421,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Agent",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": null,
"personal_room": "728a22e5-e7fe-4f1c-aaab-3a35a4612d17",
"brand": null,
"fake_email": null,
"features": null,
"last_seen_at": null,
"email_signature": "This is my signature.",
"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,
"bio": "This is my bio.",
"current_time": "1:22 PM - Saturday Oct 10, 2026",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": "7370a7ee-c1c9-4109-b290-20bd3319ba65",
"display_name": "John Doe",
"abbreviated_display_name": "John",
"online_state": "Offline",
"has_password": true
}
},
{
"id": "6325db42-88b3-47a8-a7c9-290e62d62493",
"brand": "7370a7ee-c1c9-4109-b290-20bd3319ba65",
"created_by": "d16c1adc-68bf-4c5d-ac31-556f0cae1257",
"caption": "this post should be failed in job",
"facebook_page": "f3f2e639-221d-4214-831d-1a2867b1cf00",
"template_instance": {
"id": "33d5d381-11ea-4260-b324-cab11d86717e",
"created_at": 1791656546.452848,
"html": "<div>fakeTemplateInstance</div>",
"file": {
"id": "03f1e4da-2e46-4528-adac-35e43c3af370",
"created_at": 1791656547.03665,
"updated_at": 1791656547.03665,
"deleted_at": null,
"created_by": "d16c1adc-68bf-4c5d-ac31-556f0cae1257",
"path": "templates/instances/8bf5cab0-c4d7-11f1-89da-fb554657817f.png",
"name": "image.png",
"public": true,
"type": "file",
"url": "https://test.cloudfront.net/templates/instances/8bf5cab0-c4d7-11f1-89da-fb554657817f.png",
"preview_url": "https://test.cloudfront.net/templates/instances/8bf5cab0-c4d7-11f1-89da-fb554657817f.png",
"mime": "image/png"
},
"created_by": "d16c1adc-68bf-4c5d-ac31-556f0cae1257",
"branch": "http://mock-branch-url",
"updated_at": 1791656546.452848,
"deleted_at": null,
"type": "template_instance"
},
"asset": null,
"post_link": null,
"failed_at": "2026-10-10T18:22:26.452Z",
"failure": "Internal Server Error",
"media_container_id": "test",
"type": "social_post",
"created_at": 1791656547.132097,
"updated_at": 1791656547.132097,
"deleted_at": null,
"due_at": 1791655947.119,
"executed_at": 1791656546.452848,
"owner": {
"type": "user",
"username": null,
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"phone_number": "+17349445880",
"created_at": 1791656546.460403,
"id": "d16c1adc-68bf-4c5d-ac31-556f0cae1257",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1791656546.460421,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Agent",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": null,
"personal_room": "728a22e5-e7fe-4f1c-aaab-3a35a4612d17",
"brand": null,
"fake_email": null,
"features": null,
"last_seen_at": null,
"email_signature": "This is my signature.",
"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,
"bio": "This is my bio.",
"current_time": "1:22 PM - Saturday Oct 10, 2026",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": "7370a7ee-c1c9-4109-b290-20bd3319ba65",
"display_name": "John Doe",
"abbreviated_display_name": "John",
"online_state": "Offline",
"has_password": true
}
}
],
"info": {
"count": 3,
"total": 3
}
}Get Social posts stats of brand ¶
Get Social posts stats of brandGET/brands/:brand/social-posts/stats{?status}
brand (uuid) ID of the brand
user (uuid) ID of the user (optional)
status (‘executed’ | ‘scheduled’ | ‘draft’ | ‘any’) string (optional)
Example URI
- brand
string(required) Example: 7370a7ee-c1c9-4109-b290-20bd3319ba65- status
string(required) Example: executed
200Body
{
"type": "social_post_stats",
"Email": "1",
"Social": "2"
}Create a social post with templateInstance ¶
Create a social post with templateInstancePOST/brands/:brand/social-posts
Example URI
- brand
string(required) Example: 7370a7ee-c1c9-4109-b290-20bd3319ba65- associations
string(required) Example: social_post.template_instance,social_post.owner
Body
{
"facebook_page": "83fff4ac-d774-4bc9-8b4b-a03af93b0a5d",
"template_instance": "33d5d381-11ea-4260-b324-cab11d86717e",
"due_at": 1791655947.057,
"caption": "test"
}200Body
{
"code": "OK",
"data": {
"id": "db29e945-e7e6-4bd2-83d9-3dde795ea349",
"brand": "7370a7ee-c1c9-4109-b290-20bd3319ba65",
"created_by": "d16c1adc-68bf-4c5d-ac31-556f0cae1257",
"caption": "test",
"facebook_page": "83fff4ac-d774-4bc9-8b4b-a03af93b0a5d",
"template_instance": {
"id": "33d5d381-11ea-4260-b324-cab11d86717e",
"created_at": 1791656546.452848,
"html": "<div>fakeTemplateInstance</div>",
"file": {
"id": "03f1e4da-2e46-4528-adac-35e43c3af370",
"created_at": 1791656547.03665,
"updated_at": 1791656547.03665,
"deleted_at": null,
"created_by": "d16c1adc-68bf-4c5d-ac31-556f0cae1257",
"path": "templates/instances/8bf5cab0-c4d7-11f1-89da-fb554657817f.png",
"name": "image.png",
"public": true,
"type": "file",
"url": "https://test.cloudfront.net/templates/instances/8bf5cab0-c4d7-11f1-89da-fb554657817f.png",
"preview_url": "https://test.cloudfront.net/templates/instances/8bf5cab0-c4d7-11f1-89da-fb554657817f.png",
"mime": "image/png"
},
"created_by": "d16c1adc-68bf-4c5d-ac31-556f0cae1257",
"branch": "http://mock-branch-url",
"updated_at": 1791656546.452848,
"deleted_at": null,
"type": "template_instance"
},
"post_link": null,
"failed_at": null,
"failure": null,
"media_container_id": null,
"type": "social_post",
"created_at": 1791656547.067958,
"updated_at": 1791656547.067958,
"deleted_at": null,
"due_at": 1791655947.057,
"executed_at": null,
"owner": {
"type": "user",
"username": null,
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"phone_number": "+17349445880",
"created_at": 1791656546.460403,
"id": "d16c1adc-68bf-4c5d-ac31-556f0cae1257",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1791656546.460421,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Agent",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": null,
"personal_room": "728a22e5-e7fe-4f1c-aaab-3a35a4612d17",
"brand": null,
"fake_email": null,
"features": null,
"last_seen_at": null,
"email_signature": "This is my signature.",
"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,
"bio": "This is my bio.",
"current_time": "1:22 PM - Saturday Oct 10, 2026",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": "7370a7ee-c1c9-4109-b290-20bd3319ba65",
"display_name": "John Doe",
"abbreviated_display_name": "John",
"online_state": "Offline",
"has_password": true
}
}
}Create a social post with asset ¶
Create a social post with assetPOST/brands/:brand/social-posts
Example URI
- brand
string(required) Example: 7370a7ee-c1c9-4109-b290-20bd3319ba65
Body
{
"facebook_page": "83fff4ac-d774-4bc9-8b4b-a03af93b0a5d",
"asset": "f1202c7b-1ded-43b8-941b-adaa566e1076",
"due_at": 1791655947.099,
"caption": "testAsset"
}200Body
{
"code": "OK",
"data": {
"id": "b28b62d1-f947-4d6d-93b8-916c0f2edf14",
"brand": "7370a7ee-c1c9-4109-b290-20bd3319ba65",
"created_by": "d16c1adc-68bf-4c5d-ac31-556f0cae1257",
"caption": "testAsset",
"facebook_page": "83fff4ac-d774-4bc9-8b4b-a03af93b0a5d",
"post_link": null,
"failed_at": null,
"failure": null,
"media_container_id": null,
"type": "social_post",
"created_at": 1791656547.109218,
"updated_at": 1791656547.109218,
"deleted_at": null,
"due_at": 1791655947.099,
"executed_at": null
}
}Generate an AI caption recommendation ¶
Generate an AI caption recommendationPOST/brands/:brand/social-posts/:id/caption
Generates an AI recommendation for an Instagram caption for the social post. This only returns a recommendation; it does not modify the post.
When the post is tied to a listing (resolved from its template instance, or via
the optional listing body param) the listing details and a sample of its photos
are sent to the model so it can write a caption grounded in the actual property.
For posts that are not tied to a listing (e.g. holiday/celebration templates or
static assets) the post’s rendered creative image and template metadata are sent
instead, so a caption is still generated.
brand (uuid) ID of the brand
id (uuid) ID of the social post
listing (uuid, optional) listing id to use as an override/fallback when the
post is not linked to a listing
Example URI
Update social post ¶
Update social postPUT/brands/:brand/social-posts/:socialPostId
Example URI
- brand
string(required) Example: 7370a7ee-c1c9-4109-b290-20bd3319ba65- socialPostId
string(required) Example: b535fa9d-b0f4-4a06-ad5a-fc8c6897fa79
Body
{
"due_at": 1791657147.139,
"template_instance": "33d5d381-11ea-4260-b324-cab11d86717e",
"facebook_page": "f3f2e639-221d-4214-831d-1a2867b1cf00",
"asset": null,
"caption": "test"
}200Body
{
"code": "OK",
"data": {
"id": "b535fa9d-b0f4-4a06-ad5a-fc8c6897fa79",
"brand": "7370a7ee-c1c9-4109-b290-20bd3319ba65",
"created_by": "d16c1adc-68bf-4c5d-ac31-556f0cae1257",
"caption": "test",
"facebook_page": "f3f2e639-221d-4214-831d-1a2867b1cf00",
"post_link": null,
"failed_at": null,
"failure": null,
"media_container_id": null,
"type": "social_post",
"created_at": 1791656547.088809,
"updated_at": 1791656546.452848,
"deleted_at": null,
"due_at": 1791657147.139,
"executed_at": null
}
}Delete a social post ¶
Delete a social postDELETE/brands/:brand/social-posts/:socialPostId
Example URI
- brand
string(required) Example: 7370a7ee-c1c9-4109-b290-20bd3319ba65- socialPostId
string(required) Example: a1dbd34d-10f0-45b1-a5df-76deeba77b2e
204