Job progress (SSE)
Server-sent events: the last event first, then each update until done or failed; a : keep-alive comment every 15 s; closed after 10 minutes (reconnect to resume: the last event is sent again first). Each event is an unnamed message whose data is the same JSON as the status answer (jobRef, status, percent?, message?, result?, at). Up to 20 streams can be open per key at once (429 rate_limited beyond that).
What result holds depends on the job and on status:
Authorizations
Send your API key in the x-api-key header on every request.
- Create a key in PostChamp under Settings → API keys. API access needs the Studio plan.
- Keys start with
pc_live_. The full key is shown once, when you create it: copy it then. Afterwards only its prefix is shown; lost keys are revoked and replaced. - Calls run as the person who created the key, with their current role, and spend the organization's credits.
- Limits per key: 120 requests per minute, 20 generation calls per minute. Keep the key on your server, never in a browser or app.
Path Parameters
The jobId an answer gave you (for example from creating a carousel or an infographic). It is an opaque string of letters, digits and : _ - . (at most 200 characters): use it exactly as given, do not build or parse it. A job of another workspace, or one that is unknown, is 404.
Required string length: 1 - 200
Pattern: ^[A-Za-z0-9:_\-.]+$
Example: "carousel-build:5f6a7b8c-9d0e-4f1a-8b2c-3d4e5f6a7b8c:0"
Response
An event stream.
Server-sent events; see the operation description.