POST
/
v5
/
app
/
feed_content_items
curl --request POST \
  --url https://api.whop.com/api/v5/app/feed_content_items \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "experience_id": "<string>",
  "user_id": "<string>",
  "external_id": "<string>",
  "parent_external_id": "<string>",
  "rest_path": "<string>",
  "event_type": "<string>",
  "metadata": {},
  "file_attachments": [
    {
      "type": "image",
      "file_url": "<string>"
    }
  ],
  "gifs": [
    {
      "height": 123,
      "width": 123,
      "original_url": "<string>",
      "preview_url": "<string>",
      "url": "<string>",
      "slug": "<string>",
      "title": "<string>",
      "provider": "<string>"
    }
  ]
}'
{
  "feed_content_item_id": "<string>"
}

Authorizations

Authorization
string
header
required

App API key for /v5/app and /v5/company endpoints

Body

application/json
experience_id
string
required

The ID of the experience, which will look like exp_*************

external_id
string
required

The ID of the external object that this maps to, like a feed post

event_type
string
required

The type of event that this feed post is associated with.

metadata
object
required

A metadata object that can accept any properties. All metadata must include a 'title' property that is a String value.

user_id
string

The ID of the user, which will look like user_*************

parent_external_id
string

The ID of the parent external object that this maps to, like a feed post

rest_path
string

The relative path the user should be redirected to in the app

file_attachments
object[]

The file attachments of the feed content item. This can be videos, images, or files.

gifs
object[]

Any gifs attached to the feed content item.

Response

201
application/json
feed content item created
feed_content_item_id
string
required

The ID of the feed content item, which will look like fci_*************