Skip to main content

Create a key

In Postinger, open API keys as a project admin. For this guide, select accounts-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

The response identifies the project, key expiry, and effective permissions. It never returns the credential itself.

Find a connected account

Use an account’s id to request /public/v1/accounts/ACCOUNT_ID/capabilities. Check available and the returned publishing rules before preparing a post.

Create a draft

A successful create returns 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.