View as Markdown

Mandate · Guide

Receive notes from people

People steer the agents they connected from Provenance, without opening your app: a note for the agent's next step ("Use Staples, not Amazon") or a question about one request waiting for their approval ("Why this store?"). Each is at most 500 characters and is delivered once.

Before you begin: your agent holds a network grant for the person, or asks them for approvals through Provenance.

export PROVENANCE_API=https://sandbox-api.provenanceauth.com
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5

How notes reach your agent

PathWhen
On your next callPOST /v1/mandate/network_orders returns notes with anything waiting for that person and that session.
Read themGET /v1/mandate/agent_notes returns what's waiting for your agents. Reading delivers them.
Webhookmandate.agent_note.created tells you a note is waiting, with its ID, kind, agent and the person's subject. Read it with GET /v1/mandate/agent_notes.

The person sees "Delivered" with the time, or "Waiting for the agent's next call". A note your agent doesn't pick up within 24 hours shows "Not delivered".

Read waiting notes

curl -s "$PROVENANCE_API/v1/mandate/agent_notes" -H "Authorization: Bearer $PROVENANCE_KEY"
{
  "object": "list",
  "has_more": false
}
kindstring
note, or question about one waiting request.
textstring
What the person wrote, at most 500 characters.
agent_idstring
Your agent.
subjectstring
The person's pairwise subject, when your agent holds their network grant.
approval_idstring
With a question: the waiting request it's about.

Pass a note to your model

Give the model the note as the person's own message, in the turn where it acts next. A note never changes what your agent may do: the person changes limits only on the grant screen, and Provenance checks every request against them.

Answer a question

The request stays waiting while your agent answers. POST /v1/mandate/approvals/{id}/answers takes text (at most 500 characters) and optionally the question_id; the answer shows on the request in Provenance as "The agent's answer". A person's own assistant answers with the answer_question tool on the people's MCP server.

Errors you might see

CodeWhat to do
note_too_longKeep the answer to 500 characters or fewer.
resource_missingThe request isn't one of your account's, or it has no open question.

See also