Skip to navigation

Repost Post

Toggle a repost of a post by the current user. Calling once reposts; calling again removes the repost.

Authentication: Required — Bearer token (no visitor fallback).

Feature gate: Requires posts feature enabled.

Path parameters:

  • id (required) — Post ID (numeric, not slug)

Response:

  • data.reposted — true when reposted, false when undone
  • data.reposts_count — Updated repost count

Side effects: Broadcasts a FEED_UPDATED websocket event.

Errors:

  • 403 — visitors_cannot_repost or reposting_unavailable
  • 422 — cannot_repost_a_repost or validation errors
  • 404 — Post not found

Authentication

AuthorizationBearer

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

Path parameters

idstringRequired

Response

OK