One JSON API for everything a member does with a film. Every answer that names a price, a wait or a count reads it live, so read it from the answer instead of storing it.
Watch: the Claude connector, the MCP server and the API in 30 seconds.
Basics
Base address and keys
Every path below starts at https://api.rendrio.io/api/v1. Send your key as Authorization: Bearer rdr_.... Keys are made and revoked in your account and are shown once.
Idempotency
A call that starts or spends something takes an Idempotency-Key header. Send the same key again, after a timeout or a crash, and you get the first success back, never a second film or a second charge. A refusal is not kept, so the same key runs once the person has paid.
Errors
Errors are JSON with error, code and message, plus the fields a code needs, like payUrl on a 402. The codes are listed below.
Webhooks
Rendrio calls your address when a film moves, signed with your secret. The events and the check in Node and Python are on the overview.
Account
Who the key belongs to, what it can spend, and the prices it would pay, read live from the price list.
GET
/v1/account
The account behind the key: film credits, the free film rule, the prices and the film lengths on offer.
Every number in the answer is read at call time from the account and the price list. Read it instead of storing it.
The free film is the whole film, made free: lengths.freeFilmSeconds long. lengths.previewSeconds is how much of it the person watches free on the film page before paying (null when the page shows the watermarked film instead). Quote these, never a guess.
Start a film, follow it, unlock it, ask for an edit and download it. Films take minutes, so no call waits for one: start it, then read it or wait for the webhook.
POST
/v1/films
Idempotency-Key
Make a film from a website (or a text, where the account has that path).
kind "teaser" is the account's free film, watermarked, under the same rule as the site, with one free film per site.
kind "film" is the paid full film. It uses film credits from the account, the same as on the site. seconds is one of the lengths GET /v1/account lists.
With no credit the answer is 402 with a payUrl. A person opens it and pays on rendrio.io; the API never takes a payment.
brief.platforms is required. Every other brief field is optional; the director picks what you leave out.
Send the same Idempotency-Key again and you get the first success back, never a second film. A refusal is not kept, so the same key works once the person has paid.