Start free trial

API

API overview

Create drafts, schedule posts, build carousels and infographics from your own tools with a REST API and an API key. Base URL, conventions and a first request.

On this page

The PostChamp API lets your own systems write, schedule and manage LinkedIn posts, content styles, carousels and infographics. It runs as the person who created the key, with that person's current role, and it uses your organization's credits.

Available on: Studio.

Base URL and format

  • Base URL: https://api.postchampai.com
  • Version prefix: all endpoints start with /api/v1.
  • Format: JSON in and out. Send Content-Type: application/json with a body.
  • Lists: { "items": [...], "nextCursor": "..." }. Pass nextCursor back as cursor to get the next page. It is null on the last page.
  • Errors: { "error": { "code": "...", "message": "...", "details": ... } }. See Errors.
  • Request ids: every answer has an X-Request-Id header. Include it when you contact support.

Your first request

Create a key in Settings → API keys, then ask who the key is:

export POSTCHAMP_API_KEY="your key here"
curl "$POSTCHAMP_API_URL/api/v1/key" -H "x-api-key: $POSTCHAMP_API_KEY"

Set POSTCHAMP_API_URL to the base URL above. The answer shows the key's name, its creator and when it was last used. See Authentication for how keys work.

What you can do

  • Read your credit balance and the carousel templates.
  • Generate posts, one at a time or in batches, and save, edit, list and delete posts.
  • Schedule a post or cancel its schedule.
  • Manage content styles and their example posts.
  • Create carousels and infographics and change them. These run as jobs. Poll the job or follow its event stream.

The reference lists every endpoint with its fields.

Credits and confirmation

Calls that spend credits cost what the same action costs in the app, listed in Billing and credits. They need an Idempotency-Key header, so a retry never charges twice.

Plan access

FeatureCreatorProStudio
Connect Claude, ChatGPT and other AI assistantsYesYesYes
AI headshotsYesYesYes
Full knowledge base (PDFs and folders)NoYesYes
Premium templatesNoYesYes
Video studioNoYesYes
Client LinkedIn connect linksNoYesYes
4K imagesNoNoYes
Team approvals and client reviewNoNoYes
Lead magnetsNoNoYes
Authority mapNoNoYes
White labelNoNoYes
Public APINoNoYes
Priority supportNoNoYes

Questions

Which plan includes the API?

The plan table on this page shows it. The API key page in Settings is locked on plans that do not include the API.

Is there an SDK?

Not yet. The API is plain JSON over HTTPS, and the OpenAPI document can generate a client in most languages.

  • API authentication: How API keys work. Send a key in the x-api-key header. Create, name and revoke keys in Settings. Keys are shown once, so keep them on your server.
  • API errors: Every API error has the same JSON shape with a stable code. The list of status codes and error codes, and how to handle each one.
  • API rate limits: How many API requests a key and a workspace can make each minute, the headers that show what is left, and how to back off when you get a 429.
  • API reference: Every public API endpoint with its parameters, request fields and responses, built from the OpenAPI document the API serves.

Last updated