- A PublishBuddy account on the Pro or Business plan (the 14-day trial works) at app.publishbuddy.com
- At least one social profile connected to that account (Instagram, X, Facebook, etc.)
curlor any HTTP client of your choice
1. Get an API token
If you don’t have one yet, follow the Authentication walkthrough:1
Open the dashboard
Sign in at app.publishbuddy.com.
2
Go to User Settings → Login & Security
Click your avatar → User Settings, then open the Login & Security tab.
3
Generate an API key
In the API Keys section click Generate API Key, tick the scopes you need (for this quickstart, enable Workspaces, Profiles, Media contents, and Posts), and copy the value somewhere safe. The dashboard calls tokens API keys and abilities scopes.
2. List your workspaces
Every resource in PublishBuddy is scoped to a workspace, so the first call always tells you which workspaces your token can see.id of the workspace you want to work with:
3. List the workspace’s social profiles
A profile represents one connected social account inside the workspace (e.g. your Instagram business account, or your brand’s X profile).4. Upload a piece of media
Posts can contain text, links, and media. To attach an image or video, upload it to the media library first. Send the file in amultipart/form-data request:
201 with the new media item, active and ready to use:
{ "url": "https://example.com/hello-world.jpg" }. An image by URL comes back active the same way; a video comes back processing and needs a moment before a post can use it. See Upload and manage media.
Save the media ID:
5. Publish a post
Combine everything: the profile to publish to, the text, and the media.201 Created with data as an array of the created posts (the endpoint accepts up to 10 items per request, one per target profile, and stamps them all with a shared group_id):
6. Check the post’s status
status becomes published, the post is live and published_at holds the publish time. post_url, the post’s public link on the network, fills in with the next daily analytics sync, up to 24 hours later. See Analyze performance for its metrics.
Next steps
Core concepts
Understand workspaces, profiles, posts, and the publish lifecycle.
Schedule posts
Three ways to control when a post goes live.
Analyze performance
Read profile, workspace, and best-time analytics.
Full API reference
Every endpoint, parameter, and response shape.