Kabon Share API
  1. Posts
Kabon Share API
  • Authentication
    • Create new user account
      POST
    • Login to existing account
      POST
    • Initiate Google OAuth for YouTube
      GET
    • Initiate Facebook OAuth
      GET
    • Get OAuth authorization URL for a platform
      GET
    • Get connected social accounts
      GET
    • Connect a specific Facebook Page by ID
      POST
  • Posts
    • Create and publish a post
      POST
    • Get user's posts
      GET
    • Get post details
      GET
    • Update post
      PATCH
    • Delete post
      DELETE
  • Assets
    • Upload media asset
      POST
    • Get user's assets
      GET
    • Delete asset
      DELETE
  • Plans
    • Get available subscription plans
      GET
  • Subscriptions
    • Upgrade subscription plan
      POST
    • Get subscription status
      GET
  • Services
    • Get service status
      GET
    • Toggle service on/off (admin only)
      POST
  • Queue
    • Get queue statistics
      GET
  • Internal
    • Internal endpoint for worker-to-server file uploads
      POST
  • Workspaces
    • Get all workspaces for the authenticated user
    • Create a new workspace
    • Get a specific workspace
    • Update a workspace
    • Delete a workspace
  • Schemas
    • Error
    • User
    • Subscription
    • Plan
    • Post
    • PlatformPost
    • Media
    • Asset
    • SocialAccount
    • Workspace
  1. Posts

Create and publish a post

POST
https://api.mediashare.com/api/posts
Create a post to one or more platforms. Supports:
contentType: "post" - Regular feed post (default)
contentType: "story" - 24-hour ephemeral story
contentType: "reel" - Short-form vertical video
Can schedule posts or publish immediately.

Request

Authorization
API Key
Add parameter in header
X-API-Key
Example:
X-API-Key: ********************
or
Body Params application/jsonRequired

Examples

Responses

🟢201
application/json
Post created successfully
Body

🟠400
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mediashare.com/api/posts' \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "platforms": [
        "instagram",
        "facebook"
    ],
    "text": "Check out this photo!",
    "hashtags": [
        "photography"
    ],
    "mediaUrls": [
        "https://example.com/photo.jpg"
    ]
}'
Response Response Example
201 - Example 1
{
    "message": "string",
    "post": {
        "_id": "string",
        "userId": "string",
        "platforms": [
            "facebook"
        ],
        "contentType": "post",
        "content": {
            "text": "string",
            "media": [
                {
                    "type": "image",
                    "url": "string",
                    "localPath": "string",
                    "mimeType": "string",
                    "size": 0
                }
            ],
            "hashtags": [
                "string"
            ],
            "mentions": [
                "string"
            ]
        },
        "status": "draft",
        "scheduledFor": "2019-08-24T14:15:22.123Z",
        "platformPosts": [
            {
                "platform": "string",
                "accountId": "string",
                "status": "pending",
                "platformPostId": "string",
                "platformUrl": "string",
                "publishedAt": "2019-08-24T14:15:22.123Z",
                "error": "string"
            }
        ],
        "createdAt": "2019-08-24T14:15:22.123Z"
    }
}
Modified at 2025-12-29 09:11:21
Previous
Connect a specific Facebook Page by ID
Next
Get user's posts
Built with