Frontrunner

Frontrunner HTTP API

Every route below takes JSON and answers JSON under https://app.usefr.com/api/v1. The fr CLI is a thin client of these routes (CLI); this page is the full list a personal key can call. Markdown: /docs/api.md.

Basics

export FR_API_KEY=fr_...      # Settings, API keys, Create key
export FR_WORKSPACE=acme      # one of the ids GET /api/v1/whoami returns
curl -s https://app.usefr.com/api/v1/$FR_WORKSPACE/lists -H "Authorization: Bearer $FR_API_KEY"
StatuserrorMeaning
401invalid_api_keywrong or revoked key; create a new one in Settings
401unauthorizedno key reached the server, or the header is not Bearer fr_...
400invalid_workspace:ws is not a valid workspace id
403forbidden, workspace_not_allowedyou are not a member of that workspace
404not_foundno such route
404<thing>_not_foundthe id is wrong or belongs to another workspace
413request_too_large, too_many_rows, too_many_keyssplit the request; the response names max or cap
429rate_limitedtoo many calls; wait the Retry-After seconds
503runtime_unavailablethe agent runtime is not reachable; retry later
500internala server fault; the body carries a requestId to report

Who am I

GET /api/v1/whoami

Checks a key. No workspace in the path.

Agents

An agent is a piece of work (its instructions, tools and schedule). Running it creates a run; the run's conversation is a session.

GET /api/v1/:ws/agents

GET /api/v1/:ws/agents/:agentId

POST /api/v1/:ws/agents

Creates or updates an agent (upsert by id; a new id is pb_...). Body is the agent object, bare or as { "agent": {...} }.

curl -s -X POST https://app.usefr.com/api/v1/$FR_WORKSPACE/agents \
  -H "Authorization: Bearer $FR_API_KEY" -H "Content-Type: application/json" \
  -d '{"name":"Weekly hiring signals","status":"draft","brief":["Find companies hiring a first RevOps lead","Add them to the Hiring list"]}'

POST /api/v1/:ws/agents/:agentId/instructions

Publishes a new version of the agent's instructions.

POST /api/v1/:ws/agents/:agentId/runs

Starts a real run, the same work a scheduled run does. Each call starts a new one.

DELETE /api/v1/:ws/agents/:agentId

Deletes the agent and its campaigns (idempotent).

Campaigns

A campaign runs an agent on a schedule and can tie it to a list.

GET /api/v1/:ws/campaigns

POST /api/v1/:ws/campaigns

Creates or updates a campaign (upsert by id; keys you leave out are kept, null clears one).

GET /api/v1/:ws/campaigns/:id

POST /api/v1/:ws/campaigns/:id/run

Runs the campaign now. Each call starts a new run.

Runs

A run's status is queued, running, needs_input (waiting on a reply: read its events, answer with POST /:ws/sessions/:id/messages), succeeded or failed. A message to a finished run's session reopens it as running.

GET /api/v1/:ws/runs

GET /api/v1/:ws/runs/:runId

PATCH /api/v1/:ws/runs/:runId

Renames a run.

POST /api/v1/:ws/runs/:runId/stop

Stops work on a running run. Project runs use the project's stop operation; other runs also stop their running descendants outside projects. A later message to the session continues the run.

POST /api/v1/:ws/runs

Records a run that happened outside Frontrunner, so it shows on the campaign. Nothing executes.

GET /api/v1/:ws/runs/:runId/events

The run's transcript.

GET /api/v1/:ws/runs/:runId/corrections

POST /api/v1/:ws/runs/:runId/corrections

Files a correction on a run (idempotent: the same text twice is one correction).

Sessions

A session is a conversation with an agent; every run has one (run.cma.sessionId).

POST /api/v1/:ws/sessions

POST /api/v1/:ws/sessions/:id/messages

Sends a message. The agent acts on each one.

GET /api/v1/:ws/sessions/:id

GET /api/v1/:ws/sessions/:id/events

Projects

A project holds a piece of work: its lists (Audiences), its documents and files (Context) and its agents, as the Projects page shows them. A private project is its creator's and its members': to anyone else every route below answers 404. A deleted project answers 410 project_deleted; an archived one is read and refuses changes (409 project_archived).

GET /api/v1/:ws/projects

POST /api/v1/:ws/projects

Creates a project, as New project in the app (not an Outbound campaign).

GET /api/v1/:ws/projects/:projectId

POST /api/v1/:ws/projects/:projectId/links

Puts something in the project: a list in Audiences, a Business Logic document or a context file in Context, an agent under Agents. Adding what is already there changes nothing.

Takes it out again (kind and the id as above). An agent taken out stays under Removed on the project's page, where it can be put back; removing it again answers link_not_found and keeps that.

Lists

A list holds rows keyed by key (a domain, a LinkedIn slug, an email), with one cell per column.

GET /api/v1/:ws/lists

GET /api/v1/:ws/lists/:listId

POST /api/v1/:ws/lists

Creates a list (upsert by id; columns merge by key).

PATCH /api/v1/:ws/lists/:listId/name

Renames an audience while keeping its id, rows and columns. Later dataset publications keep the saved name.

DELETE /api/v1/:ws/lists/:listId

Deletes an audience and its rows. A linked accounts or people list stays.

PUT /api/v1/:ws/lists/:listId/viewers

Makes a list private: only the people named see it, its rows or that it exists. An empty body shares it with the workspace again. Needs the workspace's Private lists setting.

PUT /api/v1/:ws/lists/:listId/views

Replaces the list's saved views (the filter bar's named views: filters and sort over the list, kept for everyone who reads it). Needs the workspace's List filter bar setting.

POST /api/v1/:ws/lists/:listId/columns

Adds columns (upsert by key).

PATCH /api/v1/:ws/lists/:listId/columns

Reorders columns.

PATCH /api/v1/:ws/lists/:listId/columns/:key

Renames a column.

DELETE /api/v1/:ws/lists/:listId/columns/:key

Removes a column from the list.

POST /api/v1/:ws/lists/:listId/rows

Adds or updates rows (upsert by key; only the cells you send change).

PATCH /api/v1/:ws/lists/:listId/rows/:rowId/cells/:columnKey

Edits one cell. :rowId is the row's id, not its key.

POST /api/v1/:ws/lists/:listId/rows/:rowId/enrich

Fills a person row's empty LinkedIn, email and phone cells. Filled cells are never replaced. The person is identified from the row's LinkedIn, else its email, else a single profile matching its name at its company; nothing is written for a person who cannot be identified. Spends enrichment credits.

POST /api/v1/:ws/lists/:listId/rows/state

Sets the state of many rows by key.

POST /api/v1/:ws/lists/:listId/rows/:rowId/state

Sets one row's state by row id.

POST /api/v1/:ws/lists/:listId/rows/note

Leaves the same feedback note on many rows by key. State is unchanged.

POST /api/v1/:ws/lists/:listId/rows/:rowId/note

Writes the row's note, with a revision check.

DELETE /api/v1/:ws/lists/:listId/rows/:rowId/hold

Releases a row held back from publishing.

POST /api/v1/:ws/lists/:listId/suppressions

Keeps a key off the list from now on (upsert).

DELETE /api/v1/:ws/lists/:listId/suppressions/:key

POST /api/v1/:ws/lists/:listId/instantly-variables

Copies columns onto the leads already in an Instantly campaign, matched by the list's email column. Adds no leads and sends no mail; repeat it after the column improves.

GET /api/v1/:ws/lists/:listId/people

For a company list: its companion people list.

POST /api/v1/:ws/lists/:listId/people

Creates or refreshes the companion people list of a company list.

GET /api/v1/:ws/lists/:listId/nooks.csv

The list as a Nooks dialer CSV (a file, not JSON).

DELETE /api/v1/:ws/lists/:listId/ad-sync

Stops syncing the list to an ad audience (idempotent).

GET /api/v1/:ws/integrations/:id/crm-fields

The fields Frontrunner may write in a connected CRM (int_monaco, int_attio, int_hubspot): every writable field of each object it pushes (account, contact where the CRM has one), read live, each with its mode when allowed (overwrite, or fill_empty: only where the CRM has no value). Until a field is ticked for an object, its custom fields are allowed to overwrite and its standard fields are not.

PUT /api/v1/:ws/integrations/:id/crm-fields

Sets the fields one object may write, replacing that object's list. Every push of a list to the CRM, by a person or an agent, writes no other field.

GET /api/v1/:ws/integrations/:id/crm-activity

LinkedIn messages the Inbox writes into Attio (int_attio only) as notes on the person: one note per message sent from the Inbox on a LinkedIn account connected to Frontrunner, and one per reply in those conversations, only for people Attio already has. Shown where the workspace has LinkedIn activity in Attio turned on.

PUT /api/v1/:ws/integrations/:id/crm-activity

Turns notes for sent messages, replies, or both on or off.

GET /api/v1/:ws/lists/:listId/crm-push

What a push of the list to a CRM would write: the connected CRMs that take one (Monaco, Attio, HubSpot), the account fields the workspace allows there (read live, with their mode) and the list's mapping.

POST /api/v1/:ws/lists/:listId/crm-push

Writes the list's rows into the CRM as accounts, matched by company domain. Only the mapped fields are written, and only fields the workspace allows (a mapped field it does not allow refuses the push); an account the CRM does not have is created. A row with no company domain does not go.

DELETE /api/v1/:ws/lists/:listId/crm-push

Stops pushing the list as it changes. The mapping stays for the next push; the CRM keeps what it has.

Context files

Your own material for agents and the assistant to read: a customer export, a CRM dump, notes. CSV, TSV, XLSX, JSON and text are read; anything else is stored as is. Up to 32 MB per file.

GET /api/v1/:ws/context/files

POST /api/v1/:ws/context/files

Uploads one file. The body is the raw file bytes (any Content-Type but application/json), not multipart.

GET /api/v1/:ws/context/files/:id

GET /api/v1/:ws/context/files/:id/download

The original bytes as uploaded (a file, not JSON).

GET /api/v1/:ws/context/docs

The workspace's Business logic documents.

GET /api/v1/:ws/context/docs/:id

POST /api/v1/:ws/context/docs

Creates a Business logic document. It is active (agents read it) unless status is draft.

PUT /api/v1/:ws/context/docs/:id

Edits a document. Fields left out are kept; body replaces the whole body.

DELETE /api/v1/:ws/context/docs/:id

POST /api/v1/:ws/context/docs/:id/restore

Exclusions

The workspace's suppression list: keys (domains, emails, LinkedIn profiles, company names, people by name) no agent may add to any list and no list push takes. A URL is stored as its host, a LinkedIn profile as linkedin.com/in/<slug> and a person at a company as Jane Doe @ Acme. Each entry is an account (domain, name, slug, cvr) or a contact (person, email, person-name).

GET /api/v1/:ws/exclusions

POST /api/v1/:ws/exclusions

Adds exclusions (upsert by key).

POST /api/v1/:ws/exclusions/sort

Sorts a paste or a file into contacts and accounts, as the keys they would be stored as. Writes nothing.

DELETE /api/v1/:ws/exclusions/:key

GET /api/v1/:ws/suppressions

The rows taken off the workspace's lists, each list's own suppressions.

Inbox

GET /api/v1/:ws/inbox/inbounds

LinkedIn conversations whose newest message is from the other person, on the LinkedIn accounts you can read in the Inbox. Poll it to copy replies into a CRM.

GET /api/v1/:ws/inbox/to-message

To message: the people the Inbox offers a first LinkedIn message to, as the Inbox shows them to you (its order, its holds and suppressions), on the LinkedIn accounts you can read there. For reading the queue in a sheet or a model.

Outreach

GET /api/v1/:ws/outreach/stats

LinkedIn and email sends per account per UTC day: the counts the Sequences page reads, for a dashboard or a sheet of your own.

Outbound copy

POST /api/v1/:ws/lists/:listId/copy

Each person's words for one step, or for a sequence's steps, written from their row by the Sequences writer with the workspace's Business Logic. Nothing is kept on the list and nothing is sent.

POST /api/v1/:ws/copy/draft

A sequence drafted from the workspace's best past campaigns of that channel (reply rates and words) and its Business Logic: steps, waits, subjects, fixed words with merge fields, and the steps to write per person. Nothing is made.

Integrations

GET /api/v1/:ws/integrations

GET /api/v1/:ws/integrations/:id/spec

What connecting a vendor takes.

POST /api/v1/:ws/integrations/:id/connect

Connects a vendor with an API key or fields; the key is checked with the vendor first.

POST /api/v1/:ws/integrations/:id/disconnect

GET /api/v1/:ws/slack/project-pings

Where the workspace's own Slack hears that a project finished while the people who had it open were away: a project whose work settled after a person last had it open, posted once as the Frontrunner app with those people mentioned.

POST /api/v1/:ws/slack/project-pings

GET /api/v1/:ws/webhooks