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: 76a700de-d94c-4a95-b825-b2f5b72d9a30- status
string(required) Example: executed- associations
string(required) Example: social_post.template_instance,social_post.asset,social_post.owner
200Body
{
"code": "OK",
"data": [
{
"id": "4fd0ab40-e5de-4f44-9633-417868c3a72f",
"brand": "76a700de-d94c-4a95-b825-b2f5b72d9a30",
"created_by": "3fc9443d-d2d2-426c-8aa9-c55f46361214",
"caption": "test",
"facebook_page": "77a5cdf2-7b87-4806-b36b-c6710bdb06fe",
"template_instance": {
"id": "130a3dad-6d5e-4770-82b1-aa95232cfe79",
"created_at": 1787792194.038158,
"html": "<div>fakeTemplateInstance</div>",
"file": {
"id": "9a8bbcbc-538b-4acc-b696-2e5545fd7edd",
"created_at": 1787792194.959831,
"updated_at": 1787792194.959831,
"deleted_at": null,
"created_by": "3fc9443d-d2d2-426c-8aa9-c55f46361214",
"path": "templates/instances/26a1bae0-a1b2-11f1-811e-f93126d9eb55.png",
"name": "image.png",
"public": true,
"type": "file",
"url": "https://test.cloudfront.net/templates/instances/26a1bae0-a1b2-11f1-811e-f93126d9eb55.png",
"preview_url": "https://test.cloudfront.net/templates/instances/26a1bae0-a1b2-11f1-811e-f93126d9eb55.png",
"mime": "image/png"
},
"created_by": "3fc9443d-d2d2-426c-8aa9-c55f46361214",
"branch": "http://mock-branch-url",
"updated_at": 1787792194.038158,
"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": 1787792195.029561,
"updated_at": 1787792195.029562,
"deleted_at": null,
"due_at": 1787791594.997,
"executed_at": 1787792194.038158,
"owner": {
"type": "user",
"username": null,
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"phone_number": "+15585412967",
"created_at": 1787792194.056663,
"id": "3fc9443d-d2d2-426c-8aa9-c55f46361214",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1787792194.056682,
"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": "2de86cdd-9adb-49de-9df3-64c9c65d2282",
"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": "7:56 PM - Wednesday Aug 26, 2026",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": "76a700de-d94c-4a95-b825-b2f5b72d9a30",
"display_name": "John Doe",
"abbreviated_display_name": "John",
"online_state": "Offline",
"has_password": true
}
},
{
"id": "91d8492a-2146-4455-a6e3-ccc381f110d8",
"brand": "76a700de-d94c-4a95-b825-b2f5b72d9a30",
"created_by": "3fc9443d-d2d2-426c-8aa9-c55f46361214",
"caption": "testAsset",
"facebook_page": "77a5cdf2-7b87-4806-b36b-c6710bdb06fe",
"template_instance": null,
"asset": {
"id": "ff9b4669-bdbd-45a4-b4bd-96e01b5d838a",
"created_at": 1787792194.532899,
"updated_at": null,
"deleted_at": null,
"created_by": "3fc9443d-d2d2-426c-8aa9-c55f46361214",
"brand": "76a700de-d94c-4a95-b825-b2f5b72d9a30",
"file": {
"id": "84b02532-73b6-4d95-8100-edb8310c3e17",
"created_at": 1787792194.526334,
"updated_at": 1787792194.526334,
"deleted_at": null,
"created_by": "3fc9443d-d2d2-426c-8aa9-c55f46361214",
"path": "brands/assets/265ee580-a1b2-11f1-811e-f93126d9eb55.png",
"name": "logo.png",
"public": true,
"type": "file",
"url": "https://test.cloudfront.net/brands/assets/265ee580-a1b2-11f1-811e-f93126d9eb55.png",
"preview_url": "https://test.cloudfront.net/brands/assets/265ee580-a1b2-11f1-811e-f93126d9eb55.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": 1787792195.11873,
"updated_at": 1787792195.11873,
"deleted_at": null,
"due_at": 1787791595.091,
"executed_at": 1787792194.038158,
"owner": {
"type": "user",
"username": null,
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"phone_number": "+15585412967",
"created_at": 1787792194.056663,
"id": "3fc9443d-d2d2-426c-8aa9-c55f46361214",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1787792194.056682,
"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": "2de86cdd-9adb-49de-9df3-64c9c65d2282",
"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": "7:56 PM - Wednesday Aug 26, 2026",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": "76a700de-d94c-4a95-b825-b2f5b72d9a30",
"display_name": "John Doe",
"abbreviated_display_name": "John",
"online_state": "Offline",
"has_password": true
}
},
{
"id": "c877896c-a3d3-480d-99bf-d041f70b7448",
"brand": "76a700de-d94c-4a95-b825-b2f5b72d9a30",
"created_by": "3fc9443d-d2d2-426c-8aa9-c55f46361214",
"caption": "this post should be failed in job",
"facebook_page": "2ef6397d-9ff1-4fa8-9629-17b405c6b895",
"template_instance": {
"id": "130a3dad-6d5e-4770-82b1-aa95232cfe79",
"created_at": 1787792194.038158,
"html": "<div>fakeTemplateInstance</div>",
"file": {
"id": "9a8bbcbc-538b-4acc-b696-2e5545fd7edd",
"created_at": 1787792194.959831,
"updated_at": 1787792194.959831,
"deleted_at": null,
"created_by": "3fc9443d-d2d2-426c-8aa9-c55f46361214",
"path": "templates/instances/26a1bae0-a1b2-11f1-811e-f93126d9eb55.png",
"name": "image.png",
"public": true,
"type": "file",
"url": "https://test.cloudfront.net/templates/instances/26a1bae0-a1b2-11f1-811e-f93126d9eb55.png",
"preview_url": "https://test.cloudfront.net/templates/instances/26a1bae0-a1b2-11f1-811e-f93126d9eb55.png",
"mime": "image/png"
},
"created_by": "3fc9443d-d2d2-426c-8aa9-c55f46361214",
"branch": "http://mock-branch-url",
"updated_at": 1787792194.038158,
"deleted_at": null,
"type": "template_instance"
},
"asset": null,
"post_link": null,
"failed_at": "2026-08-27T00:56:34.038Z",
"failure": "Internal Server Error",
"media_container_id": "test",
"type": "social_post",
"created_at": 1787792195.154033,
"updated_at": 1787792195.154034,
"deleted_at": null,
"due_at": 1787791595.123,
"executed_at": 1787792194.038158,
"owner": {
"type": "user",
"username": null,
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"phone_number": "+15585412967",
"created_at": 1787792194.056663,
"id": "3fc9443d-d2d2-426c-8aa9-c55f46361214",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1787792194.056682,
"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": "2de86cdd-9adb-49de-9df3-64c9c65d2282",
"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": "7:56 PM - Wednesday Aug 26, 2026",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": "76a700de-d94c-4a95-b825-b2f5b72d9a30",
"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: 76a700de-d94c-4a95-b825-b2f5b72d9a30- 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: 76a700de-d94c-4a95-b825-b2f5b72d9a30- associations
string(required) Example: social_post.template_instance,social_post.owner
Body
{
"facebook_page": "77a5cdf2-7b87-4806-b36b-c6710bdb06fe",
"template_instance": "130a3dad-6d5e-4770-82b1-aa95232cfe79",
"due_at": 1787791594.997,
"caption": "test"
}200Body
{
"code": "OK",
"data": {
"id": "4fd0ab40-e5de-4f44-9633-417868c3a72f",
"brand": "76a700de-d94c-4a95-b825-b2f5b72d9a30",
"created_by": "3fc9443d-d2d2-426c-8aa9-c55f46361214",
"caption": "test",
"facebook_page": "77a5cdf2-7b87-4806-b36b-c6710bdb06fe",
"template_instance": {
"id": "130a3dad-6d5e-4770-82b1-aa95232cfe79",
"created_at": 1787792194.038158,
"html": "<div>fakeTemplateInstance</div>",
"file": {
"id": "9a8bbcbc-538b-4acc-b696-2e5545fd7edd",
"created_at": 1787792194.959831,
"updated_at": 1787792194.959831,
"deleted_at": null,
"created_by": "3fc9443d-d2d2-426c-8aa9-c55f46361214",
"path": "templates/instances/26a1bae0-a1b2-11f1-811e-f93126d9eb55.png",
"name": "image.png",
"public": true,
"type": "file",
"url": "https://test.cloudfront.net/templates/instances/26a1bae0-a1b2-11f1-811e-f93126d9eb55.png",
"preview_url": "https://test.cloudfront.net/templates/instances/26a1bae0-a1b2-11f1-811e-f93126d9eb55.png",
"mime": "image/png"
},
"created_by": "3fc9443d-d2d2-426c-8aa9-c55f46361214",
"branch": "http://mock-branch-url",
"updated_at": 1787792194.038158,
"deleted_at": null,
"type": "template_instance"
},
"post_link": null,
"failed_at": null,
"failure": null,
"media_container_id": null,
"type": "social_post",
"created_at": 1787792195.029561,
"updated_at": 1787792195.029562,
"deleted_at": null,
"due_at": 1787791594.997,
"executed_at": null,
"owner": {
"type": "user",
"username": null,
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"phone_number": "+15585412967",
"created_at": 1787792194.056663,
"id": "3fc9443d-d2d2-426c-8aa9-c55f46361214",
"address_id": null,
"cover_image_url": null,
"profile_image_url": null,
"updated_at": 1787792194.056682,
"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": "2de86cdd-9adb-49de-9df3-64c9c65d2282",
"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": "7:56 PM - Wednesday Aug 26, 2026",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": "76a700de-d94c-4a95-b825-b2f5b72d9a30",
"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: 76a700de-d94c-4a95-b825-b2f5b72d9a30
Body
{
"facebook_page": "77a5cdf2-7b87-4806-b36b-c6710bdb06fe",
"asset": "ff9b4669-bdbd-45a4-b4bd-96e01b5d838a",
"due_at": 1787791595.091,
"caption": "testAsset"
}200Body
{
"code": "OK",
"data": {
"id": "91d8492a-2146-4455-a6e3-ccc381f110d8",
"brand": "76a700de-d94c-4a95-b825-b2f5b72d9a30",
"created_by": "3fc9443d-d2d2-426c-8aa9-c55f46361214",
"caption": "testAsset",
"facebook_page": "77a5cdf2-7b87-4806-b36b-c6710bdb06fe",
"post_link": null,
"failed_at": null,
"failure": null,
"media_container_id": null,
"type": "social_post",
"created_at": 1787792195.11873,
"updated_at": 1787792195.11873,
"deleted_at": null,
"due_at": 1787791595.091,
"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: 76a700de-d94c-4a95-b825-b2f5b72d9a30- socialPostId
string(required) Example: 116eb2a5-78e2-4926-967a-47effc4a2301
Body
{
"due_at": 1787792795.163,
"template_instance": "130a3dad-6d5e-4770-82b1-aa95232cfe79",
"facebook_page": "2ef6397d-9ff1-4fa8-9629-17b405c6b895",
"asset": null,
"caption": "test"
}200Body
{
"code": "OK",
"data": {
"id": "116eb2a5-78e2-4926-967a-47effc4a2301",
"brand": "76a700de-d94c-4a95-b825-b2f5b72d9a30",
"created_by": "3fc9443d-d2d2-426c-8aa9-c55f46361214",
"caption": "test",
"facebook_page": "2ef6397d-9ff1-4fa8-9629-17b405c6b895",
"post_link": null,
"failed_at": null,
"failure": null,
"media_container_id": null,
"type": "social_post",
"created_at": 1787792195.079237,
"updated_at": 1787792194.038158,
"deleted_at": null,
"due_at": 1787792795.163,
"executed_at": null
}
}Delete a social post ¶
Delete a social postDELETE/brands/:brand/social-posts/:socialPostId
Example URI
- brand
string(required) Example: 76a700de-d94c-4a95-b825-b2f5b72d9a30- socialPostId
string(required) Example: d5e59731-c50a-4b3f-b624-9636db6daba1
204