Documentation

Connectors

Reach your connected accounts from any agent or MCP client, with tiers, approvals and a record of every call.

What Connectors is

docs.connectors.whatBody

Start with a project key

Make a key in your project and point an MCP client at https://mcp.rivier.ai/ with Authorization: Bearer. The client lists the connector tools, and a call reaches the accounts the project has connected. Accounts are connected on the Connections screen (an API key or a sign-in, sealed when stored) or with POST /connectors/connections.

Configuration
{
  "mcpServers": {
    "rivier": {
      "type": "http",
      "url": "https://mcp.rivier.ai/",
      "headers": { "Authorization": "Bearer ${RIVIER_API_KEY}" }
    }
  }
}

Your first call

Call a tool from an MCP client by its name, or over REST with POST /connectors/call/:connector/:tool. Changes are dry runs unless you ask for a live run, and a repeated idempotencyKey is one change, not two. Every answer is the same envelope: ok, data and meta, or ok: false and an error with a code.

Request
curl -sS https://api.rivier.ai/connectors/call/buffer/draft_post \
  -H "Authorization: Bearer $RIVIER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "input": { "text": "Opening hours for the holiday week" }, "brand": "main-shop", "idempotencyKey": "holiday-hours-1" }'

Tiers and approvals

Tier 0 reads and is open to the keys you allow. Tier 1 makes reversible changes, as a dry run first. Tier 2 reaches other people (publish, send, book): the call is held as an approval with its plan, and a person says yes in Rivier before anything leaves. Tier 3 moves money or deletes: off until a person turns it on, then approved one action at a time within an amount limit and a daily cap. An agent can never approve.

Response
{
  "ok": false,
  "error": { "code": "approval_required", "approvalId": "apr_…", "retryable": false }
}

Allow-lists per caller

Register each caller with the actions it may use (hubspot.*, buffer.draft_post), the brands it may act for, the effects that always wait for a person, and its daily action and spend budgets. A key that is not registered, or an action outside its list, is refused and the refusal is recorded.

Request
PUT /connectors/agents/support-bot
{ "allow": ["hubspot.*", "buffer.draft_post"], "brands": ["main-shop"], "holdEffects": ["write"] }

The record

Every call writes a record, including every refusal: who called, which connection, which action, dry run or live, the decision and the outcome, with a hash of the input and no credential. Read it with GET /connectors/audit and in the app. Switch any connection, brand or the whole project off at once with POST /connectors/kill.

The door for Praecise products

A Praecise product reaches a person's connections server to server, signed with a shared secret, naming the person and one allow-listed tool. The call runs through the same engine, policy and approvals as every other caller, and nothing outward runs until the person approves it in Rivier. Skerry uses this door.