FoPost LogoFoPost Docs
WordPress

REST API

FoPost endpoints in the WordPress REST API.

REST API

The OwlStack plugin registers custom REST API endpoints under the owlstack/v1 namespace.

Endpoints

Publish a post

POST /wp-json/owlstack/v1/publish

Request body:

{
  "post_id": 123,
  "platforms": ["twitter", "linkedin"],
  "message": "Optional custom message"
}

Response:

{
  "results": [
    {
      "platform": "twitter",
      "status": "published",
      "external_id": "1234567890",
      "external_url": "https://twitter.com/user/status/1234567890"
    },
    {
      "platform": "linkedin",
      "status": "published",
      "external_id": "urn:li:share:6789",
      "external_url": "https://www.linkedin.com/feed/update/urn:li:share:6789"
    }
  ]
}

Get publishing status

GET /wp-json/owlstack/v1/status/{post_id}

Returns the publishing history for a specific post.

List connected platforms

GET /wp-json/owlstack/v1/platforms

Returns the list of connected platforms and their status.

Authentication

All endpoints require authentication. Use:

  • Application Passwords (WordPress 5.6+)
  • Cookie authentication (for logged-in admin requests)
  • JWT (if using a JWT plugin)

Requires the manage_options capability by default.

On this page