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: cbd10c81-3fcb-4550-9402-13339854c5c9
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": "f64c4be9-92f2-49d6-b975-7dc33a98e3be",
      "brand": "cbd10c81-3fcb-4550-9402-13339854c5c9",
      "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
      "caption": "test",
      "facebook_page": "5a510e37-cbdc-4d44-b518-9f588ff634be",
      "template_instance": {
        "id": "4ed8f780-9bce-47aa-ba8c-551f4608eafd",
        "created_at": 1770151228.966175,
        "html": "<div>fakeTemplateInstance</div>",
        "file": {
          "id": "86bdd7b2-3cbf-46b6-9982-c68020c249f8",
          "created_at": 1770151229.665013,
          "updated_at": 1770151229.665013,
          "deleted_at": null,
          "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
          "path": "templates/instances/93eec6f0-0140-11f1-bb7b-c1ce1696c2c7.png",
          "name": "image.png",
          "public": true,
          "type": "file",
          "url": "https://test.cloudfront.net/templates/instances/93eec6f0-0140-11f1-bb7b-c1ce1696c2c7.png",
          "preview_url": "https://test.cloudfront.net/templates/instances/93eec6f0-0140-11f1-bb7b-c1ce1696c2c7.png",
          "mime": "image/png"
        },
        "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
        "branch": "http://mock-branch-url",
        "updated_at": 1770151228.966175,
        "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": 1770151229.725886,
      "updated_at": 1770151229.725886,
      "deleted_at": null,
      "due_at": 1770150629.703,
      "executed_at": 1770151228.966175,
      "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": "2:40 PM - Tuesday Feb 03, 2026",
        "push_allowed": true,
        "agents": null,
        "last_seen_type": null,
        "active_brand": "cbd10c81-3fcb-4550-9402-13339854c5c9",
        "display_name": "Unit Test",
        "abbreviated_display_name": "Unit",
        "online_state": "Offline",
        "has_password": true
      }
    },
    {
      "id": "2f057edc-b2a9-4157-b80a-c4cca7ce5847",
      "brand": "cbd10c81-3fcb-4550-9402-13339854c5c9",
      "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
      "caption": "testAsset",
      "facebook_page": "5a510e37-cbdc-4d44-b518-9f588ff634be",
      "template_instance": null,
      "asset": {
        "id": "48576ede-3cc6-40dd-a77d-ed6594348e0a",
        "created_at": 1770151229.259751,
        "updated_at": null,
        "deleted_at": null,
        "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
        "brand": "cbd10c81-3fcb-4550-9402-13339854c5c9",
        "file": {
          "id": "7f169b88-df39-460e-ad27-3405c8c0bf10",
          "created_at": 1770151229.252996,
          "updated_at": 1770151229.252996,
          "deleted_at": null,
          "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
          "path": "brands/assets/93afc220-0140-11f1-bb7b-c1ce1696c2c7.png",
          "name": "logo.png",
          "public": true,
          "type": "file",
          "url": "https://test.cloudfront.net/brands/assets/93afc220-0140-11f1-bb7b-c1ce1696c2c7.png",
          "preview_url": "https://test.cloudfront.net/brands/assets/93afc220-0140-11f1-bb7b-c1ce1696c2c7.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": 1770151229.798773,
      "updated_at": 1770151229.798773,
      "deleted_at": null,
      "due_at": 1770150629.776,
      "executed_at": 1770151228.966175,
      "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": "2:40 PM - Tuesday Feb 03, 2026",
        "push_allowed": true,
        "agents": null,
        "last_seen_type": null,
        "active_brand": "cbd10c81-3fcb-4550-9402-13339854c5c9",
        "display_name": "Unit Test",
        "abbreviated_display_name": "Unit",
        "online_state": "Offline",
        "has_password": true
      }
    },
    {
      "id": "70fbadb7-746b-4d9b-a235-6a87e744a9e1",
      "brand": "cbd10c81-3fcb-4550-9402-13339854c5c9",
      "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
      "caption": "this post should be failed in job",
      "facebook_page": "dba4df31-cd1b-4a87-ada4-2c6585331f82",
      "template_instance": {
        "id": "4ed8f780-9bce-47aa-ba8c-551f4608eafd",
        "created_at": 1770151228.966175,
        "html": "<div>fakeTemplateInstance</div>",
        "file": {
          "id": "86bdd7b2-3cbf-46b6-9982-c68020c249f8",
          "created_at": 1770151229.665013,
          "updated_at": 1770151229.665013,
          "deleted_at": null,
          "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
          "path": "templates/instances/93eec6f0-0140-11f1-bb7b-c1ce1696c2c7.png",
          "name": "image.png",
          "public": true,
          "type": "file",
          "url": "https://test.cloudfront.net/templates/instances/93eec6f0-0140-11f1-bb7b-c1ce1696c2c7.png",
          "preview_url": "https://test.cloudfront.net/templates/instances/93eec6f0-0140-11f1-bb7b-c1ce1696c2c7.png",
          "mime": "image/png"
        },
        "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
        "branch": "http://mock-branch-url",
        "updated_at": 1770151228.966175,
        "deleted_at": null,
        "type": "template_instance"
      },
      "asset": null,
      "post_link": null,
      "failed_at": "2026-02-03T20:40:28.966Z",
      "failure": "Internal Server Error",
      "media_container_id": "test",
      "type": "social_post",
      "created_at": 1770151229.826739,
      "updated_at": 1770151229.826739,
      "deleted_at": null,
      "due_at": 1770150629.808,
      "executed_at": 1770151228.966175,
      "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": "2:40 PM - Tuesday Feb 03, 2026",
        "push_allowed": true,
        "agents": null,
        "last_seen_type": null,
        "active_brand": "cbd10c81-3fcb-4550-9402-13339854c5c9",
        "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 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: cbd10c81-3fcb-4550-9402-13339854c5c9
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: cbd10c81-3fcb-4550-9402-13339854c5c9
associations
string (required) Example: social_post.template_instance,social_post.owner
Request
HideShow
Body
{
  "facebook_page": "5a510e37-cbdc-4d44-b518-9f588ff634be",
  "template_instance": "4ed8f780-9bce-47aa-ba8c-551f4608eafd",
  "due_at": 1770150629.703,
  "caption": "test"
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "f64c4be9-92f2-49d6-b975-7dc33a98e3be",
    "brand": "cbd10c81-3fcb-4550-9402-13339854c5c9",
    "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
    "caption": "test",
    "facebook_page": "5a510e37-cbdc-4d44-b518-9f588ff634be",
    "template_instance": {
      "id": "4ed8f780-9bce-47aa-ba8c-551f4608eafd",
      "created_at": 1770151228.966175,
      "html": "<div>fakeTemplateInstance</div>",
      "file": {
        "id": "86bdd7b2-3cbf-46b6-9982-c68020c249f8",
        "created_at": 1770151229.665013,
        "updated_at": 1770151229.665013,
        "deleted_at": null,
        "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
        "path": "templates/instances/93eec6f0-0140-11f1-bb7b-c1ce1696c2c7.png",
        "name": "image.png",
        "public": true,
        "type": "file",
        "url": "https://test.cloudfront.net/templates/instances/93eec6f0-0140-11f1-bb7b-c1ce1696c2c7.png",
        "preview_url": "https://test.cloudfront.net/templates/instances/93eec6f0-0140-11f1-bb7b-c1ce1696c2c7.png",
        "mime": "image/png"
      },
      "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
      "branch": "http://mock-branch-url",
      "updated_at": 1770151228.966175,
      "deleted_at": null,
      "type": "template_instance"
    },
    "post_link": null,
    "failed_at": null,
    "failure": null,
    "media_container_id": null,
    "type": "social_post",
    "created_at": 1770151229.725886,
    "updated_at": 1770151229.725886,
    "deleted_at": null,
    "due_at": 1770150629.703,
    "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": "2:40 PM - Tuesday Feb 03, 2026",
      "push_allowed": true,
      "agents": null,
      "last_seen_type": null,
      "active_brand": "cbd10c81-3fcb-4550-9402-13339854c5c9",
      "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 asset
POST/brands/:brand/social-posts

Example URI

POST /brands/:brand/social-posts
URI Parameters
HideShow
brand
string (required) Example: cbd10c81-3fcb-4550-9402-13339854c5c9
Request
HideShow
Body
{
  "facebook_page": "5a510e37-cbdc-4d44-b518-9f588ff634be",
  "asset": "48576ede-3cc6-40dd-a77d-ed6594348e0a",
  "due_at": 1770150629.776,
  "caption": "testAsset"
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "2f057edc-b2a9-4157-b80a-c4cca7ce5847",
    "brand": "cbd10c81-3fcb-4550-9402-13339854c5c9",
    "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
    "caption": "testAsset",
    "facebook_page": "5a510e37-cbdc-4d44-b518-9f588ff634be",
    "post_link": null,
    "failed_at": null,
    "failure": null,
    "media_container_id": null,
    "type": "social_post",
    "created_at": 1770151229.798773,
    "updated_at": 1770151229.798773,
    "deleted_at": null,
    "due_at": 1770150629.776,
    "executed_at": null
  }
}

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: cbd10c81-3fcb-4550-9402-13339854c5c9
socialPostId
string (required) Example: 376f9dea-e696-4149-8a2e-847148aa53b1
Request
HideShow
Body
{
  "due_at": 1770151829.83,
  "template_instance": "4ed8f780-9bce-47aa-ba8c-551f4608eafd",
  "facebook_page": "dba4df31-cd1b-4a87-ada4-2c6585331f82",
  "asset": null,
  "caption": "test"
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "376f9dea-e696-4149-8a2e-847148aa53b1",
    "brand": "cbd10c81-3fcb-4550-9402-13339854c5c9",
    "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
    "caption": "test",
    "facebook_page": "dba4df31-cd1b-4a87-ada4-2c6585331f82",
    "post_link": null,
    "failed_at": null,
    "failure": null,
    "media_container_id": null,
    "type": "social_post",
    "created_at": 1770151229.764859,
    "updated_at": 1770151228.966175,
    "deleted_at": null,
    "due_at": 1770151829.83,
    "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: cbd10c81-3fcb-4550-9402-13339854c5c9
socialPostId
string (required) Example: c1d02da3-bd98-4680-94ce-da9df4e43493
Response  204

Generated by aglio on 03 Feb 2026