{"openapi":"3.0.3","info":{"title":"AbeShare Public API","version":"v1","description":"Workspace-scoped AbeShare REST API for Zapier, Make, and ChatGPT Actions. Authenticate with a Bearer API key from AbeShare → API keys. Create posts with POST /api/v1/posts (scope posts:write). Card checkout and OAuth tokens are not part of this API.","contact":{"url":"https://www.abeshare.com","email":"hello@abeshare.com"}},"servers":[{"url":"https://www.abeshare.com"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"AbeShare v1"}],"paths":{"/api/v1/workspaces":{"get":{"summary":"Current workspace","operationId":"api_v1_workspaces","tags":["AbeShare v1"],"parameters":[{"name":"X-Abeshare-Workspace-Id","in":"header","required":false,"schema":{"type":"string"},"description":"Workspace id. Required unless the API key is bound to one workspace."}],"responses":{"200":{"description":"OK. Envelope: { ok, apiVersion, requestId, data }"},"401":{"description":"Missing or revoked API key"},"403":{"description":"Scope or workspace forbidden"},"503":{"description":"Public API feature disabled"}},"x-abeshare-scope":"workspaces:read"}},"/api/v1/accounts":{"get":{"summary":"Connected accounts (no OAuth tokens)","operationId":"api_v1_accounts","tags":["AbeShare v1"],"parameters":[{"name":"X-Abeshare-Workspace-Id","in":"header","required":false,"schema":{"type":"string"},"description":"Workspace id. Required unless the API key is bound to one workspace."}],"responses":{"200":{"description":"OK. Envelope: { ok, apiVersion, requestId, data }"},"401":{"description":"Missing or revoked API key"},"403":{"description":"Scope or workspace forbidden"},"503":{"description":"Public API feature disabled"}},"x-abeshare-scope":"accounts:read"}},"/api/v1/posts":{"get":{"summary":"Posts list","operationId":"api_v1_posts","tags":["AbeShare v1"],"parameters":[{"name":"X-Abeshare-Workspace-Id","in":"header","required":false,"schema":{"type":"string"},"description":"Workspace id. Required unless the API key is bound to one workspace."}],"responses":{"200":{"description":"OK. Envelope: { ok, apiVersion, requestId, data }"},"401":{"description":"Missing or revoked API key"},"403":{"description":"Scope or workspace forbidden"},"503":{"description":"Public API feature disabled"}},"x-abeshare-scope":"posts:read"},"post":{"summary":"Create and schedule a post","operationId":"create_scheduled_post","tags":["AbeShare v1"],"parameters":[{"name":"X-Abeshare-Workspace-Id","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["baseText","targets"],"properties":{"baseText":{"type":"string","description":"Caption / post text"},"targets":{"type":"array","items":{"type":"string"},"description":"Platform ids such as instagram, facebook_page, youtube, linkedin. TikTok is not available on this API — schedule TikTok from the AbeShare dashboard (Direct Post UX)."},"runAt":{"type":"string","format":"date-time","description":"ISO time. Defaults to five minutes from now."},"publishNow":{"type":"boolean"}}}}}},"responses":{"201":{"description":"Post and jobs created"},"400":{"description":"Validation error"},"401":{"description":"Missing or revoked API key"},"403":{"description":"Need posts:write scope or monthly post cap reached"}},"x-abeshare-scope":"posts:write"}},"/api/v1/drafts":{"get":{"summary":"Content drafts","operationId":"api_v1_drafts","tags":["AbeShare v1"],"parameters":[{"name":"X-Abeshare-Workspace-Id","in":"header","required":false,"schema":{"type":"string"},"description":"Workspace id. Required unless the API key is bound to one workspace."}],"responses":{"200":{"description":"OK. Envelope: { ok, apiVersion, requestId, data }"},"401":{"description":"Missing or revoked API key"},"403":{"description":"Scope or workspace forbidden"},"503":{"description":"Public API feature disabled"}},"x-abeshare-scope":"drafts:read"}},"/api/v1/schedules":{"get":{"summary":"Scheduled jobs","operationId":"api_v1_schedules","tags":["AbeShare v1"],"parameters":[{"name":"X-Abeshare-Workspace-Id","in":"header","required":false,"schema":{"type":"string"},"description":"Workspace id. Required unless the API key is bound to one workspace."}],"responses":{"200":{"description":"OK. Envelope: { ok, apiVersion, requestId, data }"},"401":{"description":"Missing or revoked API key"},"403":{"description":"Scope or workspace forbidden"},"503":{"description":"Public API feature disabled"}},"x-abeshare-scope":"schedules:read"}},"/api/v1/recurring":{"get":{"summary":"Recurring schedules","operationId":"api_v1_recurring","tags":["AbeShare v1"],"parameters":[{"name":"X-Abeshare-Workspace-Id","in":"header","required":false,"schema":{"type":"string"},"description":"Workspace id. Required unless the API key is bound to one workspace."}],"responses":{"200":{"description":"OK. Envelope: { ok, apiVersion, requestId, data }"},"401":{"description":"Missing or revoked API key"},"403":{"description":"Scope or workspace forbidden"},"503":{"description":"Public API feature disabled"}},"x-abeshare-scope":"recurring:read"}},"/api/v1/analytics/snapshots":{"get":{"summary":"Analytics snapshots","operationId":"api_v1_analytics_snapshots","tags":["AbeShare v1"],"parameters":[{"name":"X-Abeshare-Workspace-Id","in":"header","required":false,"schema":{"type":"string"},"description":"Workspace id. Required unless the API key is bound to one workspace."}],"responses":{"200":{"description":"OK. Envelope: { ok, apiVersion, requestId, data }"},"401":{"description":"Missing or revoked API key"},"403":{"description":"Scope or workspace forbidden"},"503":{"description":"Public API feature disabled"}},"x-abeshare-scope":"analytics:read"}},"/api/v1/reports":{"get":{"summary":"Report share metadata","operationId":"api_v1_reports","tags":["AbeShare v1"],"parameters":[{"name":"X-Abeshare-Workspace-Id","in":"header","required":false,"schema":{"type":"string"},"description":"Workspace id. Required unless the API key is bound to one workspace."}],"responses":{"200":{"description":"OK. Envelope: { ok, apiVersion, requestId, data }"},"401":{"description":"Missing or revoked API key"},"403":{"description":"Scope or workspace forbidden"},"503":{"description":"Public API feature disabled"}},"x-abeshare-scope":"reports:read"}},"/api/v1/provider-health":{"get":{"summary":"Provider connection health","operationId":"api_v1_provider_health","tags":["AbeShare v1"],"parameters":[{"name":"X-Abeshare-Workspace-Id","in":"header","required":false,"schema":{"type":"string"},"description":"Workspace id. Required unless the API key is bound to one workspace."}],"responses":{"200":{"description":"OK. Envelope: { ok, apiVersion, requestId, data }"},"401":{"description":"Missing or revoked API key"},"403":{"description":"Scope or workspace forbidden"},"503":{"description":"Public API feature disabled"}},"x-abeshare-scope":"health:read"}},"/api/v1/webhooks":{"get":{"summary":"Webhook endpoints (no secrets)","operationId":"api_v1_webhooks","tags":["AbeShare v1"],"parameters":[{"name":"X-Abeshare-Workspace-Id","in":"header","required":false,"schema":{"type":"string"},"description":"Workspace id. Required unless the API key is bound to one workspace."}],"responses":{"200":{"description":"OK. Envelope: { ok, apiVersion, requestId, data }"},"401":{"description":"Missing or revoked API key"},"403":{"description":"Scope or workspace forbidden"},"503":{"description":"Public API feature disabled"}},"x-abeshare-scope":"webhooks:read"}},"/api/v1/smartlinks":{"get":{"summary":"SmartLinks pages","operationId":"api_v1_smartlinks","tags":["AbeShare v1"],"parameters":[{"name":"X-Abeshare-Workspace-Id","in":"header","required":false,"schema":{"type":"string"},"description":"Workspace id. Required unless the API key is bound to one workspace."}],"responses":{"200":{"description":"OK. Envelope: { ok, apiVersion, requestId, data }"},"401":{"description":"Missing or revoked API key"},"403":{"description":"Scope or workspace forbidden"},"503":{"description":"Public API feature disabled"}},"x-abeshare-scope":"smartlinks:read"}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"abesh_pk_live_ or abesh_pk_test_","description":"Create keys in AbeShare → API keys. Use a Zapier/Make key to include posts:write. Plaintext is shown once."}}},"x-abeshare":{"product":"AbeShare","legalEntity":"Abe Stack LLC","operator":"Dear Daughter Bible Study","scopes":["workspaces:read","accounts:read","posts:read","posts:write","drafts:read","drafts:write","schedules:read","schedules:write","recurring:read","analytics:read","reports:read","health:read","webhooks:read","webhooks:write","smartlinks:read"],"authDocs":"/docs/API_V1.md","stripeCheckout":"Not exposed on the public API. Workspace admins subscribe at /dashboard/billing."}}