Back to top

Social Post

Overview

Resource Group

Get Social posts of brand

Get Social posts of brand
GET/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: 34143167-e1c1-4d15-9027-a15f97110a8d
status
string (required) Example: executed
associations
string (required) Example: social_post.template_instance,social_post.asset,social_post.owner
Response  200
HideShow
Body
{
  "code": "OK",
  "data": [
    {
      "id": "b5681bf2-f01c-4a35-8d89-1746498e1545",
      "brand": "34143167-e1c1-4d15-9027-a15f97110a8d",
      "created_by": "ddf86b9b-0c5f-4ecc-a991-30031f3918c6",
      "caption": "test",
      "facebook_page": "625e74af-6c54-4bf5-8db4-ddbedd9c1f59",
      "template_instance": {
        "id": "e6a4395a-104a-48f0-aa5f-abfa083e85bd",
        "created_at": 1783014973.625282,
        "html": "<div>fakeTemplateInstance</div>",
        "file": {
          "id": "dffeea26-d61a-4722-8511-70708d1add74",
          "created_at": 1783014974.485298,
          "updated_at": 1783014974.485298,
          "deleted_at": null,
          "created_by": "ddf86b9b-0c5f-4ecc-a991-30031f3918c6",
          "path": "templates/instances/51566630-763f-11f1-94b5-7519f45a456b.png",
          "name": "image.png",
          "public": true,
          "type": "file",
          "url": "https://test.cloudfront.net/templates/instances/51566630-763f-11f1-94b5-7519f45a456b.png",
          "preview_url": "https://test.cloudfront.net/templates/instances/51566630-763f-11f1-94b5-7519f45a456b.png",
          "mime": "image/png"
        },
        "created_by": "ddf86b9b-0c5f-4ecc-a991-30031f3918c6",
        "branch": "http://mock-branch-url",
        "updated_at": 1783014973.625282,
        "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": 1783014974.546728,
      "updated_at": 1783014974.546729,
      "deleted_at": null,
      "due_at": 1783014374.523,
      "executed_at": 1783014973.625282,
      "owner": {
        "type": "user",
        "username": null,
        "first_name": "John",
        "last_name": "Doe",
        "email": "[email protected]",
        "phone_number": "+18598254118",
        "created_at": 1783014973.644084,
        "id": "ddf86b9b-0c5f-4ecc-a991-30031f3918c6",
        "address_id": null,
        "cover_image_url": null,
        "profile_image_url": null,
        "updated_at": 1783014973.644106,
        "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": "219b5144-c21d-4d98-be0c-9737cb6dc48a",
        "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": "12:56 PM - Thursday Jul 02, 2026",
        "push_allowed": true,
        "agents": null,
        "last_seen_type": null,
        "active_brand": "34143167-e1c1-4d15-9027-a15f97110a8d",
        "display_name": "John Doe",
        "abbreviated_display_name": "John",
        "online_state": "Offline",
        "has_password": true
      }
    },
    {
      "id": "b51ea092-b3d9-4fac-983c-c5d54a90a20d",
      "brand": "34143167-e1c1-4d15-9027-a15f97110a8d",
      "created_by": "ddf86b9b-0c5f-4ecc-a991-30031f3918c6",
      "caption": "testAsset",
      "facebook_page": "625e74af-6c54-4bf5-8db4-ddbedd9c1f59",
      "template_instance": null,
      "asset": {
        "id": "c7356f09-bb6c-4fd8-8e79-c55ff3814524",
        "created_at": 1783014974.075739,
        "updated_at": null,
        "deleted_at": null,
        "created_by": "ddf86b9b-0c5f-4ecc-a991-30031f3918c6",
        "brand": "34143167-e1c1-4d15-9027-a15f97110a8d",
        "file": {
          "id": "4051fdec-5e53-4972-89ee-fb9b7c5c80ac",
          "created_at": 1783014974.071282,
          "updated_at": 1783014974.071282,
          "deleted_at": null,
          "created_by": "ddf86b9b-0c5f-4ecc-a991-30031f3918c6",
          "path": "brands/assets/51171340-763f-11f1-94b5-7519f45a456b.png",
          "name": "logo.png",
          "public": true,
          "type": "file",
          "url": "https://test.cloudfront.net/brands/assets/51171340-763f-11f1-94b5-7519f45a456b.png",
          "preview_url": "https://test.cloudfront.net/brands/assets/51171340-763f-11f1-94b5-7519f45a456b.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": 1783014974.633868,
      "updated_at": 1783014974.633868,
      "deleted_at": null,
      "due_at": 1783014374.607,
      "executed_at": 1783014973.625282,
      "owner": {
        "type": "user",
        "username": null,
        "first_name": "John",
        "last_name": "Doe",
        "email": "[email protected]",
        "phone_number": "+18598254118",
        "created_at": 1783014973.644084,
        "id": "ddf86b9b-0c5f-4ecc-a991-30031f3918c6",
        "address_id": null,
        "cover_image_url": null,
        "profile_image_url": null,
        "updated_at": 1783014973.644106,
        "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": "219b5144-c21d-4d98-be0c-9737cb6dc48a",
        "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": "12:56 PM - Thursday Jul 02, 2026",
        "push_allowed": true,
        "agents": null,
        "last_seen_type": null,
        "active_brand": "34143167-e1c1-4d15-9027-a15f97110a8d",
        "display_name": "John Doe",
        "abbreviated_display_name": "John",
        "online_state": "Offline",
        "has_password": true
      }
    },
    {
      "id": "9de4b6bf-6054-4269-a271-53c1d8da24de",
      "brand": "34143167-e1c1-4d15-9027-a15f97110a8d",
      "created_by": "ddf86b9b-0c5f-4ecc-a991-30031f3918c6",
      "caption": "this post should be failed in job",
      "facebook_page": "d9c1c4b7-2fc6-4e85-89df-ed3186517939",
      "template_instance": {
        "id": "e6a4395a-104a-48f0-aa5f-abfa083e85bd",
        "created_at": 1783014973.625282,
        "html": "<div>fakeTemplateInstance</div>",
        "file": {
          "id": "dffeea26-d61a-4722-8511-70708d1add74",
          "created_at": 1783014974.485298,
          "updated_at": 1783014974.485298,
          "deleted_at": null,
          "created_by": "ddf86b9b-0c5f-4ecc-a991-30031f3918c6",
          "path": "templates/instances/51566630-763f-11f1-94b5-7519f45a456b.png",
          "name": "image.png",
          "public": true,
          "type": "file",
          "url": "https://test.cloudfront.net/templates/instances/51566630-763f-11f1-94b5-7519f45a456b.png",
          "preview_url": "https://test.cloudfront.net/templates/instances/51566630-763f-11f1-94b5-7519f45a456b.png",
          "mime": "image/png"
        },
        "created_by": "ddf86b9b-0c5f-4ecc-a991-30031f3918c6",
        "branch": "http://mock-branch-url",
        "updated_at": 1783014973.625282,
        "deleted_at": null,
        "type": "template_instance"
      },
      "asset": null,
      "post_link": null,
      "failed_at": "2026-07-02T17:56:13.625Z",
      "failure": "Internal Server Error",
      "media_container_id": "test",
      "type": "social_post",
      "created_at": 1783014974.676971,
      "updated_at": 1783014974.676972,
      "deleted_at": null,
      "due_at": 1783014374.648,
      "executed_at": 1783014973.625282,
      "owner": {
        "type": "user",
        "username": null,
        "first_name": "John",
        "last_name": "Doe",
        "email": "[email protected]",
        "phone_number": "+18598254118",
        "created_at": 1783014973.644084,
        "id": "ddf86b9b-0c5f-4ecc-a991-30031f3918c6",
        "address_id": null,
        "cover_image_url": null,
        "profile_image_url": null,
        "updated_at": 1783014973.644106,
        "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": "219b5144-c21d-4d98-be0c-9737cb6dc48a",
        "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": "12:56 PM - Thursday Jul 02, 2026",
        "push_allowed": true,
        "agents": null,
        "last_seen_type": null,
        "active_brand": "34143167-e1c1-4d15-9027-a15f97110a8d",
        "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 brand
GET/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: 34143167-e1c1-4d15-9027-a15f97110a8d
status
string (required) Example: executed
Response  200
HideShow
Body
{
  "type": "social_post_stats",
  "Email": "1",
  "Social": "2"
}

Create a social post with templateInstance

Create a social post with templateInstance
POST/brands/:brand/social-posts

Example URI

POST /brands/:brand/social-posts
URI Parameters
HideShow
brand
string (required) Example: 34143167-e1c1-4d15-9027-a15f97110a8d
associations
string (required) Example: social_post.template_instance,social_post.owner
Request
HideShow
Body
{
  "facebook_page": "625e74af-6c54-4bf5-8db4-ddbedd9c1f59",
  "template_instance": "e6a4395a-104a-48f0-aa5f-abfa083e85bd",
  "due_at": 1783014374.523,
  "caption": "test"
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "b5681bf2-f01c-4a35-8d89-1746498e1545",
    "brand": "34143167-e1c1-4d15-9027-a15f97110a8d",
    "created_by": "ddf86b9b-0c5f-4ecc-a991-30031f3918c6",
    "caption": "test",
    "facebook_page": "625e74af-6c54-4bf5-8db4-ddbedd9c1f59",
    "template_instance": {
      "id": "e6a4395a-104a-48f0-aa5f-abfa083e85bd",
      "created_at": 1783014973.625282,
      "html": "<div>fakeTemplateInstance</div>",
      "file": {
        "id": "dffeea26-d61a-4722-8511-70708d1add74",
        "created_at": 1783014974.485298,
        "updated_at": 1783014974.485298,
        "deleted_at": null,
        "created_by": "ddf86b9b-0c5f-4ecc-a991-30031f3918c6",
        "path": "templates/instances/51566630-763f-11f1-94b5-7519f45a456b.png",
        "name": "image.png",
        "public": true,
        "type": "file",
        "url": "https://test.cloudfront.net/templates/instances/51566630-763f-11f1-94b5-7519f45a456b.png",
        "preview_url": "https://test.cloudfront.net/templates/instances/51566630-763f-11f1-94b5-7519f45a456b.png",
        "mime": "image/png"
      },
      "created_by": "ddf86b9b-0c5f-4ecc-a991-30031f3918c6",
      "branch": "http://mock-branch-url",
      "updated_at": 1783014973.625282,
      "deleted_at": null,
      "type": "template_instance"
    },
    "post_link": null,
    "failed_at": null,
    "failure": null,
    "media_container_id": null,
    "type": "social_post",
    "created_at": 1783014974.546728,
    "updated_at": 1783014974.546729,
    "deleted_at": null,
    "due_at": 1783014374.523,
    "executed_at": null,
    "owner": {
      "type": "user",
      "username": null,
      "first_name": "John",
      "last_name": "Doe",
      "email": "[email protected]",
      "phone_number": "+18598254118",
      "created_at": 1783014973.644084,
      "id": "ddf86b9b-0c5f-4ecc-a991-30031f3918c6",
      "address_id": null,
      "cover_image_url": null,
      "profile_image_url": null,
      "updated_at": 1783014973.644106,
      "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": "219b5144-c21d-4d98-be0c-9737cb6dc48a",
      "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": "12:56 PM - Thursday Jul 02, 2026",
      "push_allowed": true,
      "agents": null,
      "last_seen_type": null,
      "active_brand": "34143167-e1c1-4d15-9027-a15f97110a8d",
      "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 asset
POST/brands/:brand/social-posts

Example URI

POST /brands/:brand/social-posts
URI Parameters
HideShow
brand
string (required) Example: 34143167-e1c1-4d15-9027-a15f97110a8d
Request
HideShow
Body
{
  "facebook_page": "625e74af-6c54-4bf5-8db4-ddbedd9c1f59",
  "asset": "c7356f09-bb6c-4fd8-8e79-c55ff3814524",
  "due_at": 1783014374.607,
  "caption": "testAsset"
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "b51ea092-b3d9-4fac-983c-c5d54a90a20d",
    "brand": "34143167-e1c1-4d15-9027-a15f97110a8d",
    "created_by": "ddf86b9b-0c5f-4ecc-a991-30031f3918c6",
    "caption": "testAsset",
    "facebook_page": "625e74af-6c54-4bf5-8db4-ddbedd9c1f59",
    "post_link": null,
    "failed_at": null,
    "failure": null,
    "media_container_id": null,
    "type": "social_post",
    "created_at": 1783014974.633868,
    "updated_at": 1783014974.633868,
    "deleted_at": null,
    "due_at": 1783014374.607,
    "executed_at": null
  }
}

Generate an AI caption recommendation

Generate an AI caption recommendation
POST/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

POST /brands/:brand/social-posts/:id/caption

Update social post

Update social post
PUT/brands/:brand/social-posts/:socialPostId

Example URI

PUT /brands/:brand/social-posts/:socialPostId
URI Parameters
HideShow
brand
string (required) Example: 34143167-e1c1-4d15-9027-a15f97110a8d
socialPostId
string (required) Example: e366b99f-e38b-4207-9fe3-e0b2c9b9549b
Request
HideShow
Body
{
  "due_at": 1783015574.688,
  "template_instance": "e6a4395a-104a-48f0-aa5f-abfa083e85bd",
  "facebook_page": "d9c1c4b7-2fc6-4e85-89df-ed3186517939",
  "asset": null,
  "caption": "test"
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "e366b99f-e38b-4207-9fe3-e0b2c9b9549b",
    "brand": "34143167-e1c1-4d15-9027-a15f97110a8d",
    "created_by": "ddf86b9b-0c5f-4ecc-a991-30031f3918c6",
    "caption": "test",
    "facebook_page": "d9c1c4b7-2fc6-4e85-89df-ed3186517939",
    "post_link": null,
    "failed_at": null,
    "failure": null,
    "media_container_id": null,
    "type": "social_post",
    "created_at": 1783014974.596492,
    "updated_at": 1783014973.625282,
    "deleted_at": null,
    "due_at": 1783015574.688,
    "executed_at": null
  }
}

Delete a social post

Delete a social post
DELETE/brands/:brand/social-posts/:socialPostId

Example URI

DELETE /brands/:brand/social-posts/:socialPostId
URI Parameters
HideShow
brand
string (required) Example: 34143167-e1c1-4d15-9027-a15f97110a8d
socialPostId
string (required) Example: 110088aa-1a41-499b-8be5-a027842eb4a2
Response  204

Generated by aglio on 02 Jul 2026