Connect accounts first
Connect and verify each social account in Global Clinic Connect before using its account ID.
Create drafts, schedule posts, publish approved content, and track each network’s outcome.
socialConnect and verify each social account in Global Clinic Connect before using its account ID.
Use draft for human review, schedule with a future UTC time, or now when the content is ready for immediate submission.
Include one or more account IDs from the same workspace and content appropriate for every selected network.
Check approval_required and wait for approval when the workspace policy requires it.
Read the post detail and treat every target’s status independently because providers can complete or fail at different times.
These are the supported public contracts for this integration step.
/api/v1/social/postssocialCreate a draft, publish now, or schedule content for connected social accounts.
POST /api/v1/social/posts
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
"mode": "schedule",
"text": "We are extending clinic hours next week.",
"account_ids": ["account_example"],
"scheduled_at": "2026-07-15T09:00:00.000Z",
"campaign": "extended-hours",
"acknowledge_warnings": false
}{
"post_id": "post_example",
"status": "scheduled",
"approval_required": false,
"targets": [
{ "target_id": "target_example", "provider": "facebook", "status": "scheduled" }
]
}CONTENT_REQUIREDAdd non-empty post text.
TARGETS_REQUIREDInclude at least one connected account ID.
SCHEDULE_REQUIREDProvide a valid future scheduled_at value.
ACCOUNT_NOT_FOUNDConfirm the account is connected in the same workspace.
RATE_LIMITEDBack off until the next minute.
/api/v1/social/posts?from=2026-07-01T00:00:00.000Z&to=2026-07-31T23:59:59.999ZsocialRead posts in a date window for synchronization or reporting.
GET /api/v1/social/posts?from=2026-07-01T00:00:00.000Z&to=2026-07-31T23:59:59.999Z
Authorization: Bearer YOUR_API_KEY
Accept: application/json{
"posts": [
{
"post_id": "post_example",
"status": "scheduled",
"scheduled_at": "2026-07-15T09:00:00.000Z",
"campaign": "extended-hours"
}
]
}API_KEY_INVALIDUse an active key and verify the environment.
INSUFFICIENT_SCOPECreate a key with social.
RATE_LIMITEDPause until the next minute.
/api/v1/social/posts/{post_id}socialRead one post and the outcome for each target network.
GET /api/v1/social/posts/{post_id}
Authorization: Bearer YOUR_API_KEY
Accept: application/json{
"post_id": "post_example",
"status": "published",
"scheduled_at": "2026-07-15T09:00:00.000Z",
"targets": [
{
"target_id": "target_example",
"provider": "facebook",
"status": "published",
"permalink": "https://example.invalid/post"
}
]
}POST_NOT_FOUNDConfirm the post ID belongs to the key’s workspace.
INSUFFICIENT_SCOPECreate a key with social.
RATE_LIMITEDBack off and retry later.
Requests go directly from this browser tab to the API environment you choose. Keys and responses are held in memory only and are cleared when the page closes.
/api/v1/social/postsEnter a test key, review the sample request, and send it. The response will appear here.
curl -X POST 'https://api.connect.globalclinic.app/api/v1/social/posts' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data '{
"mode": "schedule",
"text": "We are extending clinic hours next week.",
"account_ids": ["account_example"],
"scheduled_at": "2026-07-15T09:00:00.000Z",
"campaign": "extended-hours",
"acknowledge_warnings": false
}'socialCreate a draft, publish now, or schedule content for connected social accounts.