Enterprise feature

API Access

Programmatic access to Punchline via API keys — upload episodes, trigger transcription and AI analysis, and export clip plans without the web UI.

1. Generate an API key

Go to Settings in your dashboard and scroll to the API Keys section. Click 'Generate key', give it a descriptive name (e.g. 'Production pipeline'), and copy the key immediately — it's shown only once. Keys use the pl_ prefix for easy identification.

2. Authentication

Include your API key as a Bearer token in the Authorization header: curl -H "Authorization: Bearer pl_your_key_here" \ https://punchline.gg/api/episodes

3. Upload workflow

The programmatic upload flow mirrors the web UI: Step 1 — Create upload intent: curl -X POST https://punchline.gg/api/episodes/upload-intent \ -H "Authorization: Bearer pl_..." \ -H "Content-Type: application/json" \ -d '{"title": "Episode 42", "fileName": "ep42.mp3", "fileSize": 52428800, "fileType": "audio/mpeg", "ownershipConfirmed": true}' Step 2 — Upload the file to the returned storage URL via TUS protocol. Step 3 — Finalise: curl -X PATCH https://punchline.gg/api/episodes/{episodeId}/upload-complete \ -H "Authorization: Bearer pl_..."

4. Transcribe and analyse

Trigger transcription: curl -X POST https://punchline.gg/api/episodes/{episodeId}/transcribe \ -H "Authorization: Bearer pl_..." Poll status until 'transcribed', then trigger analysis: curl -X POST https://punchline.gg/api/episodes/{episodeId}/analyse \ -H "Authorization: Bearer pl_..." Poll status until 'completed'.

5. Export results

Retrieve your clip plan as JSON: curl https://punchline.gg/api/episodes/{episodeId}/export \ -H "Authorization: Bearer pl_..." Or as CSV: curl "https://punchline.gg/api/episodes/{episodeId}/export?format=csv" \ -H "Authorization: Bearer pl_..."

6. Rate limits

API key requests have generous rate limits: 20 analyses/minute, 10 upload intents/minute, 60 status polls/minute. Each key is rate-limited independently. If you hit a limit, you'll receive a 429 response with a Retry-After header.

7. Key management

You can have up to 10 active API keys. Revoke compromised keys immediately from Settings — revoked keys return 401 on all subsequent requests. Key usage (last used date) is tracked for auditing.

Ready to try this?

Programmatic access to Punchline via API keys — upload episodes, trigger transcription and AI analysis, and export clip plans without the web UI.

Upgrade to Enterprise

Common questions

What authentication method does the API use?

Bearer token authentication. Include your API key in the Authorization header: Authorization: Bearer pl_your_key_here.

How many API keys can I have?

Up to 10 active API keys per account. You can revoke individual keys at any time from Settings — revoked keys return 401 immediately.

What are the API rate limits?

20 analyses per minute, 10 upload intents per minute, and 60 status polls per minute per key. Exceeding a limit returns a 429 response with a Retry-After header.

Is API access available on all plans?

API access is available on Enterprise plans only. Keys use the pl_ prefix and are managed from your dashboard Settings.