Create a key
In Postinger, open API keys as a project admin. For this guide, selectaccounts-read, posts-read, and posts-write. Add media-write for uploads and posts-publish when ready to publish.
Store the customer key in POSTINGER_API_KEY using your environment or secret manager, then set the base URL:
Verify access
Find a connected account
id to request /public/v1/accounts/ACCOUNT_ID/capabilities. Check available and the returned publishing rules before preparing a post.
Create a draft
201 with the post at data. Save data.id. This example creates an editable draft without targets; follow media uploads and publishing to add an account and publish.
Use a new idempotency key for each new draft. If retrying this exact creation, reuse both the key and the payload.