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
GET /brands/:brand/social-posts
URI Parameters
HideShow
- brand
string(required) Example: b3ad887b-a14e-4bff-b618-a2edb675d19b- status
string(required) Example: executed- associations
string(required) Example: social_post.template_instance,social_post.asset,social_post.owner
Response
200HideShow
Body
{
"code": "OK",
"data": [
{
"id": "07c6b52b-f216-4862-aa34-650d5ebbe2da",
"brand": "b3ad887b-a14e-4bff-b618-a2edb675d19b",
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"caption": "test",
"facebook_page": "5383b70e-bd8f-481f-a605-0664736def2d",
"template_instance": {
"id": "8e6b780b-ae31-4277-bdbd-42f0663ac8ff",
"created_at": 1769132599.587474,
"html": "<div>fakeTemplateInstance</div>",
"file": {
"id": "8c4a77c8-71d4-4d33-8bc4-04ac740293f9",
"created_at": 1769132600.245252,
"updated_at": 1769132600.245252,
"deleted_at": null,
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"path": "templates/instances/e57c4030-f7fc-11f0-8c7d-09c4c6e349ce.png",
"name": "image.png",
"public": true,
"type": "file",
"url": "https://test.cloudfront.net/templates/instances/e57c4030-f7fc-11f0-8c7d-09c4c6e349ce.png",
"preview_url": "https://test.cloudfront.net/templates/instances/e57c4030-f7fc-11f0-8c7d-09c4c6e349ce.png",
"mime": "image/png"
},
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"branch": "http://mock-branch-url",
"updated_at": 1769132599.587474,
"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": 1769132600.312378,
"updated_at": 1769132600.312378,
"deleted_at": null,
"due_at": 1769132000.291,
"executed_at": 1769132599.587474,
"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": "7:43 PM - Thursday Jan 22, 2026",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": "b3ad887b-a14e-4bff-b618-a2edb675d19b",
"display_name": "Unit Test",
"abbreviated_display_name": "Unit",
"online_state": "Offline",
"has_password": true
}
},
{
"id": "0feb4a88-15ba-4473-8025-6f9259cc064d",
"brand": "b3ad887b-a14e-4bff-b618-a2edb675d19b",
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"caption": "testAsset",
"facebook_page": "5383b70e-bd8f-481f-a605-0664736def2d",
"template_instance": null,
"asset": {
"id": "55f4cb8e-f8fc-414e-bffa-6dbcc8d919a4",
"created_at": 1769132599.875793,
"updated_at": null,
"deleted_at": null,
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"brand": "b3ad887b-a14e-4bff-b618-a2edb675d19b",
"file": {
"id": "fd063322-96a5-46e3-bc88-cb2518218a48",
"created_at": 1769132599.87163,
"updated_at": 1769132599.87163,
"deleted_at": null,
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"path": "brands/assets/e542b9a0-f7fc-11f0-8c7d-09c4c6e349ce.png",
"name": "logo.png",
"public": true,
"type": "file",
"url": "https://test.cloudfront.net/brands/assets/e542b9a0-f7fc-11f0-8c7d-09c4c6e349ce.png",
"preview_url": "https://test.cloudfront.net/brands/assets/e542b9a0-f7fc-11f0-8c7d-09c4c6e349ce.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": 1769132600.383054,
"updated_at": 1769132600.383054,
"deleted_at": null,
"due_at": 1769132000.364,
"executed_at": 1769132599.587474,
"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": "7:43 PM - Thursday Jan 22, 2026",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": "b3ad887b-a14e-4bff-b618-a2edb675d19b",
"display_name": "Unit Test",
"abbreviated_display_name": "Unit",
"online_state": "Offline",
"has_password": true
}
},
{
"id": "55372393-ccd2-46c1-bf39-02449a39b07b",
"brand": "b3ad887b-a14e-4bff-b618-a2edb675d19b",
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"caption": "this post should be failed in job",
"facebook_page": "618ecfc2-6346-435b-b9d0-6db86744a60b",
"template_instance": {
"id": "8e6b780b-ae31-4277-bdbd-42f0663ac8ff",
"created_at": 1769132599.587474,
"html": "<div>fakeTemplateInstance</div>",
"file": {
"id": "8c4a77c8-71d4-4d33-8bc4-04ac740293f9",
"created_at": 1769132600.245252,
"updated_at": 1769132600.245252,
"deleted_at": null,
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"path": "templates/instances/e57c4030-f7fc-11f0-8c7d-09c4c6e349ce.png",
"name": "image.png",
"public": true,
"type": "file",
"url": "https://test.cloudfront.net/templates/instances/e57c4030-f7fc-11f0-8c7d-09c4c6e349ce.png",
"preview_url": "https://test.cloudfront.net/templates/instances/e57c4030-f7fc-11f0-8c7d-09c4c6e349ce.png",
"mime": "image/png"
},
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"branch": "http://mock-branch-url",
"updated_at": 1769132599.587474,
"deleted_at": null,
"type": "template_instance"
},
"asset": null,
"post_link": null,
"failed_at": "2026-01-23T01:43:19.587Z",
"failure": "Internal Server Error",
"media_container_id": "test",
"type": "social_post",
"created_at": 1769132600.413857,
"updated_at": 1769132600.413857,
"deleted_at": null,
"due_at": 1769132000.394,
"executed_at": 1769132599.587474,
"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": "7:43 PM - Thursday Jan 22, 2026",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": "b3ad887b-a14e-4bff-b618-a2edb675d19b",
"display_name": "Unit Test",
"abbreviated_display_name": "Unit",
"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
GET /brands/:brand/social-posts/stats?status=executed
URI Parameters
HideShow
- brand
string(required) Example: b3ad887b-a14e-4bff-b618-a2edb675d19b- status
string(required) Example: executed
Response
200HideShow
Body
{
"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
POST /brands/:brand/social-posts
URI Parameters
HideShow
- brand
string(required) Example: b3ad887b-a14e-4bff-b618-a2edb675d19b- associations
string(required) Example: social_post.template_instance,social_post.owner
Request
HideShow
Body
{
"facebook_page": "5383b70e-bd8f-481f-a605-0664736def2d",
"template_instance": "8e6b780b-ae31-4277-bdbd-42f0663ac8ff",
"due_at": 1769132000.291,
"caption": "test"
}Response
200HideShow
Body
{
"code": "OK",
"data": {
"id": "07c6b52b-f216-4862-aa34-650d5ebbe2da",
"brand": "b3ad887b-a14e-4bff-b618-a2edb675d19b",
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"caption": "test",
"facebook_page": "5383b70e-bd8f-481f-a605-0664736def2d",
"template_instance": {
"id": "8e6b780b-ae31-4277-bdbd-42f0663ac8ff",
"created_at": 1769132599.587474,
"html": "<div>fakeTemplateInstance</div>",
"file": {
"id": "8c4a77c8-71d4-4d33-8bc4-04ac740293f9",
"created_at": 1769132600.245252,
"updated_at": 1769132600.245252,
"deleted_at": null,
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"path": "templates/instances/e57c4030-f7fc-11f0-8c7d-09c4c6e349ce.png",
"name": "image.png",
"public": true,
"type": "file",
"url": "https://test.cloudfront.net/templates/instances/e57c4030-f7fc-11f0-8c7d-09c4c6e349ce.png",
"preview_url": "https://test.cloudfront.net/templates/instances/e57c4030-f7fc-11f0-8c7d-09c4c6e349ce.png",
"mime": "image/png"
},
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"branch": "http://mock-branch-url",
"updated_at": 1769132599.587474,
"deleted_at": null,
"type": "template_instance"
},
"post_link": null,
"failed_at": null,
"failure": null,
"media_container_id": null,
"type": "social_post",
"created_at": 1769132600.312378,
"updated_at": 1769132600.312378,
"deleted_at": null,
"due_at": 1769132000.291,
"executed_at": null,
"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": "7:43 PM - Thursday Jan 22, 2026",
"push_allowed": true,
"agents": null,
"last_seen_type": null,
"active_brand": "b3ad887b-a14e-4bff-b618-a2edb675d19b",
"display_name": "Unit Test",
"abbreviated_display_name": "Unit",
"online_state": "Offline",
"has_password": true
}
}
}Create a social post with asset ¶
Create a social post with assetPOST/brands/:brand/social-posts
Example URI
POST /brands/:brand/social-posts
URI Parameters
HideShow
- brand
string(required) Example: b3ad887b-a14e-4bff-b618-a2edb675d19b
Request
HideShow
Body
{
"facebook_page": "5383b70e-bd8f-481f-a605-0664736def2d",
"asset": "55f4cb8e-f8fc-414e-bffa-6dbcc8d919a4",
"due_at": 1769132000.364,
"caption": "testAsset"
}Response
200HideShow
Body
{
"code": "OK",
"data": {
"id": "0feb4a88-15ba-4473-8025-6f9259cc064d",
"brand": "b3ad887b-a14e-4bff-b618-a2edb675d19b",
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"caption": "testAsset",
"facebook_page": "5383b70e-bd8f-481f-a605-0664736def2d",
"post_link": null,
"failed_at": null,
"failure": null,
"media_container_id": null,
"type": "social_post",
"created_at": 1769132600.383054,
"updated_at": 1769132600.383054,
"deleted_at": null,
"due_at": 1769132000.364,
"executed_at": null
}
}Update social post ¶
Update social postPUT/brands/:brand/social-posts/:socialPostId
Example URI
PUT /brands/:brand/social-posts/:socialPostId
URI Parameters
HideShow
- brand
string(required) Example: b3ad887b-a14e-4bff-b618-a2edb675d19b- socialPostId
string(required) Example: db5aa459-2ec6-4c1a-850a-ad5bf64f7159
Request
HideShow
Body
{
"due_at": 1769133200.424,
"template_instance": "8e6b780b-ae31-4277-bdbd-42f0663ac8ff",
"facebook_page": "618ecfc2-6346-435b-b9d0-6db86744a60b",
"asset": null,
"caption": "test"
}Response
200HideShow
Body
{
"code": "OK",
"data": {
"id": "db5aa459-2ec6-4c1a-850a-ad5bf64f7159",
"brand": "b3ad887b-a14e-4bff-b618-a2edb675d19b",
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"caption": "test",
"facebook_page": "618ecfc2-6346-435b-b9d0-6db86744a60b",
"post_link": null,
"failed_at": null,
"failure": null,
"media_container_id": null,
"type": "social_post",
"created_at": 1769132600.351173,
"updated_at": 1769132599.587474,
"deleted_at": null,
"due_at": 1769133200.424,
"executed_at": null
}
}Delete a social post ¶
Delete a social postDELETE/brands/:brand/social-posts/:socialPostId
Example URI
DELETE /brands/:brand/social-posts/:socialPostId
URI Parameters
HideShow
- brand
string(required) Example: b3ad887b-a14e-4bff-b618-a2edb675d19b- socialPostId
string(required) Example: c802583b-073f-4580-bb35-6ddca119f4c8
Response
204