The actions API

Everything the Bluefie assistant can do, your own code can do too, one web request at a time. That is 697 actions across six apps, each with the same safety checks, approvals and history as when the assistant does it.

Get a key

An owner or an admin issues a workspace agent key in Settings, Connections. It begins blf_agent_ and is shown exactly once, so keep it somewhere safe. If it is lost, revoke it on the same page and issue another; a revoked key stops working within seconds.

A key belongs to one workspace and acts as the person who issued it. Its role and the modules it may read and write decide which actions it can run, here and over the MCP connector alike. There is nothing extra to switch on for a key.

Call an action

Each app answers on its own address. Send the action's input as a JSON object (an empty {} when it takes none), with the key as a bearer token:

Request
curl -X POST https://bluefie.com/api/actions/get_ai_usage \  -H "Authorization: Bearer blf_agent_EXAMPLE000000000000000000000000000000000" \  -H "Content-Type: application/json" \  -d '{}'

The answer is the action's own result, exactly as the assistant sees it:

Response
{ "result": { ... } }

Bodies up to 4.5 MB. Send files by reference rather than inside the body.

Approve, then send it again

Some writes wait for a person, the same as when the assistant asks: anything that reaches outside your business or cannot be undone. Those answer 202 and nothing has happened yet:

Response
{  "status": "awaiting_approval",  "approvalId": "8c1d2e3f-0000-4000-8000-000000000001",  "message": "Parked for a person to approve on the Bluefie approvals board; it has not run. ..."}
  1. A person approves it on the approvals board.
  2. Your code sends the very same call again: same action, same input, same key, within 60 minutes of the first.
  3. That call runs once and answers 200 with the result. A third send waits for a new approval.

An approval belongs to the call it was given for. The same call sent from another key, or by another person, waits for its own approval, so nobody else can spend yours.

A change that is filed as a proposal answers 202 with "status": "staged" and a stagedChangeId. A person accepts it on the review board, and that is when it happens. Do not send it again.

Safe retries

Every write takes an optional idempotencyKey in its input. If a request failed on the way and you cannot tell whether it landed, send it again with the same idempotencyKey: Bluefie does nothing twice. Use a new one for a genuinely new change.

Request
curl -X POST https://customers.bluefie.com/api/actions/add_activity \  -H "Authorization: Bearer blf_agent_EXAMPLE000000000000000000000000000000000" \  -H "Content-Type: application/json" \  -d '{ ..., "idempotencyKey": "import-2026-10-22-row-17" }'

Limits

Each key has a daily call quota, 200 by default and set when the key is issued, which resets at midnight UTC. A workspace makes at most 60 calls a minute. Both are shared with the MCP connector, so a key counts the same wherever it calls from.

You never have to guess how close you are. Every answer after your key is checked carries the standard headers, and a refusal adds Retry-After in seconds:

Request
RateLimit-Policy: "daily";q=200;w=86400, "minute";q=60;w=60RateLimit: "daily";r=187;t=41230Retry-After: 41   (on a 429 or a 503 only)

Over a limit the answer is 429, and its body says which limit with retryAfterSeconds. Wait that long before calling again.

Every answer

HTTPwhen
200The action ran. The answer is in result.
202Parked, not done yet: waiting for a person to approve it, or filed as a proposal for the review board. See below.
400The body is not a JSON object, or the action's own schema refused it. The sentence names each field.
401Not a workspace agent key, or the key is not valid any more. A browser session is never accepted.
403The key's role or scopes do not include this action, or a safety control said no (AI paused, a budget, a rule only a person may cross).
404No such action on this app, or the actions API is not switched on for the key's workspace. An action of another app names the app that serves it.
413The body is too large.
422The action ran and said no, in its own words. Nothing changed unless the sentence says so.
429The key's daily quota or the workspace's minute limit. Retry-After says how long to wait.
500The action stopped with an error before it answered. Check before trying a change again, and send the same idempotencyKey.
503A check could not be made just now, or agent access is paused. Retry-After says how long.

Every refusal is a sentence a person can read, in { "error": "..." }.

Every action, by app

Each app publishes an OpenAPI 3.1 document of its actions, generated from the actions themselves, with every input, every answer and the limit headers. Point a client generator or an agent at it.

Questions

Write to info@bluefie.com and tell us what you are building. The Projects API and the notes for agents live alongside this page.