Automate your scripts with the Scriptroom API

Your own programs can list, read, create and replace your scripts, as Fountain. You still hear them here.

Does Scriptroom have an API?

Yes. With an API key, a program you run can list, read, create and replace your scripts, in Fountain. Keys work on Free and Paid.

What can I automate?

Moving your scripts in and out as Fountain. For example:

  • Send tonight’s draft from your own editor, so it’s waiting in Scriptroom in the morning. Open it and press play. (See Write Fountain in your own editor.)
  • Save every script to a folder of Fountain files, on a schedule you set. (See Export all your scripts.)
  • Bring in a folder of Fountain files you wrote somewhere else.

How do I make an API key?

Open your account menu, choose API keys, give the key a name and choose Create key. Copy it straight away: it’s shown once. You can have ten keys, and you can revoke any of them on the same page.

What can the API do?

Four things, at https://www.scriptroom.app/api/v1/scripts. Send your key in the header Authorization: Bearer YOUR_KEY.

ToSendYou get
List your scriptsGET /api/v1/scriptsEach script’s id, title and when it was made and last changed. No text.
Read oneGET /api/v1/scripts/{id}The script as Fountain, and its seq. Ask for Accept: text/x-fountain to get the file itself, with the seq in the X-Scripty-Seq header.
Make onePOST /api/v1/scripts, with a Fountain fileThe new script’s id
Replace onePUT /api/v1/scripts/{id}?baseSeq=…, with a Fountain fileThe new seq, and whether anything changed

You can send a file with Content-Type: text/x-fountain, or JSON with the script in content.

What happens if the script changed since I read it?

The replace is refused and nothing is overwritten. Every replace carries the seq you read the script at. If the script has changed since, in the editor or through the API, you get a 409. Read it again, check what changed, then resend with the new seq.

What are the limits?

60 requests a minute per key, and scripts up to 1 MB.

  • Past 60 a minute you get a 429 with a Retry-After header.
  • A script sent to the API can be up to 1 MB. A feature-length Fountain file is about 150 KB.
  • On Free you can have three scripts, archived ones included. Making one past that is refused, and nothing is made.
  • Fountain only. For Final Draft and PDF files, import them in the editor or use the free converters.

What can’t the API do?

It can’t delete a script, change part of one, or read or change casting and the notes left on your lines. It doesn’t play scripts. To hear one, open it in Scriptroom and press play.

Does a replace keep the old version?

When a replace changes the text, Scriptroom keeps the old script as a version first, at most one every ten minutes. Find it under File, then Versions.

Can Claude Code use the API?

Yes, through Scriptroom’s MCP server, with the same key. See Connect Claude Code.

Does Scriptroom write anything through the API?

No. The API moves your scripts in and out. Nothing in Scriptroom writes script text.