Create a Rich Post

Changed on
post/rich-posts/

Request

  • Base URL
    https://cf-blast.livelikecdn.com/api/v1
  • URL
    https://cf-blast.livelikecdn.com/api/v1/rich-posts/
  • Auth
    none required

Request body

contentstring

HTML content of the post.

titlestring

Optional title of the rich post. Max length 200 characters

program_idstring required

The program to create the rich post inside of

sponsor_idsstring[]

Links the sponsors with this Rich Post. Note that only valid sponsor_ids will be linked to a Rich Post.

custom_datastring

Integration-specific data to accompany the rich post

mentionsobject[]

Location and identities of profiles being mentioned in the rich post

Response

201

idstring
pubnub_enabledboolean
urlstring
program_idstring
client_idstring
created_atstring
kindstring
published_atstring
scheduled_atstring
interactive_untilunknown
titlestring
contentstring
timeoutstring
subscribe_channelstring
program_date_timeunknown
publish_delaystring
interaction_urlstring
impression_urlstring
impression_countinteger
unique_impression_countinteger
engagement_countunknown
engagement_percentunknown
statusstring
schedule_urlstring
rewards_urlunknown
translationsobject
translatable_fieldsstring[]
reactionsobject[]
custom_dataunknown
earnable_rewardsobject[]
widget_interactions_url_templatestring
widget_attributesobject[]

Example response

{
  "id": "664255f3-8699-44f4-8679-9a72c4d8cf50",
  "url": "https://cf-blast.livelikecdn.com/api/v1/rich-posts/664255f3-8699-44f4-8679-9a72c4d8cf50/",
  "program_id": "238b2232-d2cb-4323-adbc-78d0064a9be8",
  "client_id": "jV2LSongmdccPRL65M8GC6Z8lTievPsRsqsoSMiq",
  "created_at": "2023-01-24T21:43:16.187462Z",
  "kind": "rich-post",
  "published_at": "2023-01-24T21:43:16.536982Z",
  "scheduled_at": "2023-01-24T21:43:16.334096Z",
  "title": "Example title",
  "content": "<p>Example content</p>",
  "timeout": "P0DT00H00M30S",
  "subscribe_channel": "program.widget.238b2232-d2cb-4323-adbc-78d0064a9be8",
  "publish_delay": "P0DT00H00M00S",
  "interaction_url": "https://cf-blast.livelikecdn.com/api/v1/rich-posts/664255f3-8699-44f4-8679-9a72c4d8cf50/interactions/",
  "impression_url": "https://blastrt-prod-us-east-1.livelikecdn.com/api/v1/widget-impressions/rich-post/664255f3-8699-44f4-8679-9a72c4d8cf50/",
  "status": "published",
  "created_by": {
    "id": "eaa67d8e-29c4-4ee8-89d8-06c0e0e9c7d0"
  },
  "schedule_url": "https://cf-blast.livelikecdn.com/api/v1/rich-posts/664255f3-8699-44f4-8679-9a72c4d8cf50/schedule/",
  "translatable_fields": [
    "content"
  ],
  "mentions": [
    {
      "start_index": 30,
      "end_index": 37,
      "mentioned_profile_id": "d6646392-e87b-437f-ba29-d154b7a26679",
      "mentioned_profile_nickname": "Prakriti Deshmukh",
      "id": "1685df79-2d3d-4f08-a504-3637d405bb56"
    }
  ],
  "widget_interactions_url_template": "https://cf-blast.livelikecdn.com/api/v1/profiles/{profile_id}/widget-interactions/?rich_post_id=664255f3-8699-44f4-8679-9a72c4d8cf50"
}

Changes