---
title: "Add text post"
method: POST
path: "/posts/text"
tags: ["Posts"]
---

# Add text post

`POST /posts/text`

## Request

- Base URL: `https://api.fanheroapi.com`
- URL: `https://api.fanheroapi.com/posts/text`
- Auth: API key in header `apiKey`

## Headers

- `organization` string, required
- `channel` string, required

## Request body

- CreateTextPostRestInput
  - `title` string, required: Post title
  - `description` string, required: Description of the post
  - `entitlements` string[], required: Entitlemetns. A string array of IDs of products.
  - `featuredAt` string, date-time, required: Date when this post is featured
  - `geofence` GeofenceObject, required
    - `countryCodes` string[]
    - `type` 'WHITELIST' | 'BLACKLIST'
  - `media` string, required: Media ID
  - `pushNotification` string, date-time, required: Push notification
  - `status` 'DRAFT' | 'PUBLISHED', required: Post status
  - `access` string, required: Access level of this post
  - `kind` string, required: Kind
  - `thumbnail` string: Thumbnail image path
  - `inFeed` boolean, required: Is this post featured in the feed?
  - `categories` string, required: Category ID
  - `playlists` string[]: Playlist IDs
  - `slug` string, required: Post slug
  - `tags` string[]: Tag IDs

## Response `201`

Text post created.

---

[API](https://skmtc.dev/fanhero/apis/headless-cms-endpoints.md) - [All operations](https://skmtc.dev/fanhero/apis/headless-cms-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/fanhero/apis/headless-cms-endpoints/revisions/fb8d50c05ee6?raw)
