Skip to navigation

Create Post

Create a new post in the feed. User posts may require admin approval depending on app settings.

Authentication: Required — Bearer token.

Feature gate: Requires posts feature enabled.

Request body:

  • post[name] (optional, defaults to “Post”) — Post title
  • post[content] (required) — Post body content
  • post[media_id] (optional) — Media ID to attach an image/video

Response: The created post in feed format.

Side effects:

  • If user posting requires approval, triggers a UserPostSubmitted event (notifies admins)
  • If auto-approved, post is immediately visible in the feed

Errors:

  • 422 — Validation errors (e.g. missing content)

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
postobjectOptional

Response

Created