API & MCP reference / Getting started
Authentication
Create a key under Dashboard → API Keys. Keys are workspace-scoped, shown once at creation, and stored only as a SHA-256 hash — we cannot recover one for you, so rotate rather than retrieve.
curl https://posttrain.app/api/v1/social-accounts \
-H "Authorization: Bearer pt_live_your_key_here"A key can publish to every connected account in its workspace. Treat it like a password: server-side only, never in a browser bundle or a public repo.