Skip to main content
Firm protocols are the rules the Filed analyst follows for everyone in a workspace, shown under Playbook in the Filed web app.
The API calls protocols skills. A firm protocol is a Skill with kind: WORKSPACE; see the Skills reference.
Every call uses a workspace token, from an API key or an OAuth grant, and goes to https://router.apps.filed.com/graphql.

1. List the firm protocols

Omit taskType to list every task family at once. The list also holds the caller’s personal protocols (kind: USER); keep the rows with kind: WORKSPACE.

2. Read a protocol’s content

The list leaves out body, the protocol’s text. Read it one protocol at a time with skill, passing the kind, taskType and name from the list row.
body is Markdown.

3. Export them all to a CSV

Save the script

It lists the firm protocols, reads their content and writes protocols.csv. It needs Python 3.9 or later and nothing else. It reads 25 protocols per request, each under its own alias, and waits out a 429 if the rate limit is hit.
export_protocols.py

Run it

Output

Open protocols.csv

An OAuth access token lasts three minutes. If it expires mid-export, refresh it and run the script again.

4. Turn a protocol on or off

Workspace admins can turn a firm protocol off without deleting it, and back on.
The protocol’s status becomes DISABLED, or APPROVED when turned back on.

What the API can’t do yet

The API cannot create a protocol or change its text. Firms write and edit protocols in the Filed web app, under Playbook, with the analyst. Through the API you can list, read, turn on or off, promote, approve and delete protocols. Each workspace keeps its own protocols, and the API cannot copy a protocol from one workspace into another. Filed’s built-in protocols aren’t returned, and neither are a firm’s edits to them: the export covers protocols the firm wrote itself.