Skip to main content

Social Media API

Manage connected social media accounts and create posts.

Endpoints

MethodEndpointDescription
GET/api/social-accounts/indexList connected accounts
GET/api/posts/indexList posts
POST/api/posts/storeCreate post
GET/api/posts/show/{id}Get post details
DELETE/api/posts/destroy/{id}Delete post

List Connected Accounts

GET /api/social-accounts/index?subdomain=acme

Returns all connected social media accounts (LinkedIn, Facebook, Instagram, Twitter/X, TikTok).

Create Post

POST /api/posts/store?subdomain=acme
{
"text": "We're hiring a Senior Developer! Check out the role:",
"social_account_id": 1,
"platform": "linkedin",
"date_shared": "2026-04-15T10:00:00"
}
FieldTypeRequiredDescription
textstringYesPost content
social_account_idintegerYesConnected account ID
platformstringYeslinkedin, facebook, instagram, twitter, tiktok
date_shareddatetimeNoSchedule for later (ISO 8601). Empty = draft

List Posts

GET /api/posts/index?subdomain=acme&page=1&max=10

Returns paginated social media posts with status, platform, and schedule info.