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
| Path | When |
|---|---|
| On your next call | POST / returns notes with anything waiting for that person and that session. |
| Read them | GET / returns what's waiting for your agents. Reading delivers them. |
| Webhook | mandate. tells you a note is waiting, with its ID, kind, agent and the person's subject. Read it with GET /. |
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"
const notes = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/agent_notes`, {
headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}` },
})).json();
import os
import httpx
api, h = os.environ["PROVENANCE_API"], {"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}
notes = httpx.get(f"{api}/v1/mandate/agent_notes", headers=h).json()
{
"object": "list",
"has_more": false
}
kindstringnote, orquestionabout 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 / 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
| Code | What to do |
|---|---|
note_ | Keep the answer to 500 characters or fewer. |
resource_ | The request isn't one of your account's, or it has no open question. |