PennyCompute Webhooks API
Be told when a job reaches a final state.
Be told when a job reaches a final state.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/pennycompute-com:pennycompute-com-webhooks-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: PennyCompute buyer Webhooks API
version: 1.10.2
description: 'Media jobs over HTTP: video generation with MiniMax H3, FFmpeg work (transcode, stitch, sound mix, captions, timeline exports, frame images and sound files), media measurement and Remotion renders. Create a server API key in the dashboard at https://app.pennycompute.com and send it on every call as Authorization: Bearer . Submit a job to POST /v1/jobs with a service_id and its input, read GET /v1/jobs/{id} until its status is final or register a webhook endpoint, then fetch the file from the link GET /v1/jobs/{id}/output returns. Media goes in by public link; POST /v1/assets hosts one source file or a complete Remotion bundle. h3.video.v1 is text to video with optional first and last frames or reference files; h3.reference_480p.v1 is the earlier one-image preset, kept for existing integrations. Bodies are JSON, up to 2 MB. Amounts are strings in millionths of one US dollar. Each API key may send 600 requests a minute. A request over the limit receives HTTP 429 with the error rate_limited and a Retry-After header in seconds. Job submissions, estimates and capacity reads are each limited to 120 a minute for a key and answer 429 past that. Guides are at https://pennycompute.com/docs, the reference at https://pennycompute.com/docs/api and the dated list of changes at https://pennycompute.com/docs/changes.'
servers:
- url: https://api.pennycompute.com
security:
- buyerKey: []
tags:
- name: Webhooks
description: Be told when a job reaches a final state.
paths:
/v1/webhook-endpoints:
post:
operationId: createWebhookEndpoint
tags:
- Webhooks
summary: Register a webhook endpoint
description: When a job reaches a final state PennyCompute sends a POST with a JSON body {id, type, data} to each active endpoint subscribed to that event. type is job.succeeded, job.failed (also sent when a queued job expires, with status expired) or job.cancelled. data carries job_id and status, and failure_code with a message when the job did not succeed. id is the delivery ID. Each request has X-PennyCompute-Event, X-PennyCompute-Delivery (the same ID, the same on every attempt) and X-PennyCompute-Attempt headers. The first attempt is sent as soon as the job has ended, or within 3 seconds for a job that ends with no word from a renderer; by then GET /v1/jobs/{id} already reads the final state, the charge and the output link. Answer with any 2xx within ten seconds; a redirect counts as a failure. After another answer the delivery is sent again after 5 seconds, 30 seconds, 2 minutes, 10 minutes, 1 hour, 6 hours and 12 hours, 8 attempts in all over about 19 hours; a Retry-After on your answer, up to a day, replaces the next wait. A delivery can arrive more than once, so act on a delivery ID once. Read the job with GET /v1/jobs/{id} for its charge and GET /v1/jobs/{id}/output for the file.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
minLength: 1
maxLength: 80
url:
type: string
format: uri
description: A public HTTPS URL.
events:
type: array
minItems: 1
items:
enum:
- job.succeeded
- job.failed
- job.cancelled
default:
- job.succeeded
required:
- name
- url
additionalProperties: false
responses:
'201':
description: Success
content:
application/json:
schema:
type: object
properties:
endpoint:
$ref: '#/components/schemas/WebhookEndpoint'
required:
- endpoint
'400':
description: 'invalid_webhook_url: the URL is not HTTPS or does not lead to a public address. invalid_request: a field was refused.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: 'webhook_conflict: an active endpoint with this URL already exists. A URL that was removed can be registered again: the endpoint comes back active under the same id, with the new name and events.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
default:
description: Request error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
get:
operationId: listWebhookEndpoints
tags:
- Webhooks
summary: List webhook endpoints
description: Newest first. A removed endpoint stays in the list with status disabled.
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
endpoints:
type: array
items:
$ref: '#/components/schemas/WebhookEndpoint'
required:
- endpoints
default:
description: Request error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/v1/webhook-endpoints/{id}:
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
delete:
operationId: removeWebhookEndpoint
tags:
- Webhooks
summary: Remove a webhook endpoint
description: Stops deliveries to it, including pending retries. The endpoint stays in the list with status disabled. Registering its URL again brings it back active under the same id.
responses:
'204':
description: Removed
'404':
description: 'not_found: no such endpoint, or it was already removed.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
default:
description: Request error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
webhooks:
jobEvent:
post:
operationId: receiveJobEvent
tags:
- Webhooks
summary: A job reached a final state
description: When a job reaches a final state PennyCompute sends a POST with a JSON body {id, type, data} to each active endpoint subscribed to that event. type is job.succeeded, job.failed (also sent when a queued job expires, with status expired) or job.cancelled. data carries job_id and status, and failure_code with a message when the job did not succeed. id is the delivery ID. Each request has X-PennyCompute-Event, X-PennyCompute-Delivery (the same ID, the same on every attempt) and X-PennyCompute-Attempt headers. The first attempt is sent as soon as the job has ended, or within 3 seconds for a job that ends with no word from a renderer; by then GET /v1/jobs/{id} already reads the final state, the charge and the output link. Answer with any 2xx within ten seconds; a redirect counts as a failure. After another answer the delivery is sent again after 5 seconds, 30 seconds, 2 minutes, 10 minutes, 1 hour, 6 hours and 12 hours, 8 attempts in all over about 19 hours; a Retry-After on your answer, up to a day, replaces the next wait. A delivery can arrive more than once, so act on a delivery ID once. Read the job with GET /v1/jobs/{id} for its charge and GET /v1/jobs/{id}/output for the file.
security: []
parameters:
- name: X-PennyCompute-Event
in: header
required: true
schema:
type: string
description: The event type.
- name: X-PennyCompute-Delivery
in: header
required: true
schema:
type: string
description: The delivery ID.
- name: X-PennyCompute-Attempt
in: header
required: true
schema:
type: string
description: Which attempt this is, from 1.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookEvent'
responses:
2XX:
description: Received. Any other answer is sent again.
components:
schemas:
WebhookEvent:
type: object
properties:
id:
type: string
format: uuid
description: The delivery ID. The same on every attempt, and in the X-PennyCompute-Delivery header.
type:
enum:
- job.succeeded
- job.failed
- job.cancelled
data:
type: object
properties:
job_id:
type: string
format: uuid
status:
enum:
- succeeded
- failed
- expired
- cancelled
description: job.failed carries failed or expired.
failure_code:
type: string
description: On job.failed and job.cancelled. The codes are those of the job read.
message:
type: string
description: A sentence beside failure_code.
required:
- job_id
- status
required:
- id
- type
- data
examples:
- id: 5b0e6f0a-2c3d-4e5f-8a9b-0c1d2e3f4a5b
type: job.succeeded
data:
job_id: 7d484be8-7f2f-411f-840e-9ff06b6f725a
status: succeeded
- id: 0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
type: job.failed
data:
job_id: 7d484be8-7f2f-411f-840e-9ff06b6f725a
status: failed
failure_code: download_failed
message: a link could not be fetched
Error:
type: object
properties:
error:
type: string
description: 'A stable code to branch on. On any call: unauthorized (401, no key, or one that is unknown or revoked), missing_scope (403, the key lacks jobs:read or jobs:write), not_found (404, no such path, or nothing with that ID in your organization), rate_limited (429). internal_error (500) and supplier_unavailable (502) are faults on our side: send the request again. Each operation lists the codes of its own.'
issues:
type: array
description: 'Present when error is invalid_request: the input fields that were refused.'
items:
type: object
properties:
field:
type: string
message:
type: string
required:
- field
- message
required:
- error
WebhookEndpoint:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
url:
type: string
format: uri
events:
type: array
items:
enum:
- job.succeeded
- job.failed
- job.cancelled
status:
enum:
- active
- disabled
created_at:
type: string
updated_at:
type: string
required:
- id
- name
- url
- events
- status
securitySchemes:
buyerKey:
type: http
scheme: bearer
description: 'A server API key, created in the dashboard at https://app.pennycompute.com under Server API keys. It starts with pc_live_ and is shown once, when it is created. Send it as Authorization: Bearer <key>. A key carries the scopes jobs:read and jobs:write. Submitting and cancelling jobs, preparing uploads and changing webhook endpoints need jobs:write; listing and reading jobs, usage, invoices and webhook endpoints need jobs:read. A call with no key, or with an unknown or revoked one, answers 401 unauthorized. A key without the scope answers 403 missing_scope.'