# Receive notes from people

Read the short notes and questions people send your agent from Provenance, deliver them to your model on its next step, and answer questions about waiting requests.

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](https://provenanceauth.com/docs/mandate/concepts/network-grants.md) for the person, or asks them for approvals through Provenance.

```bash
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 /v1/mandate/network_orders`](https://provenanceauth.com/docs/api/network.md#post-v1-mandate-network-orders) returns `notes` with anything waiting for that person and that session. |
| Read them | [`GET /v1/mandate/agent_notes`](https://provenanceauth.com/docs/api/network.md#get-v1-mandate-agent-notes) returns what's waiting for your agents. Reading delivers them. |
| Webhook | `mandate.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**

```bash
curl -s "$PROVENANCE_API/v1/mandate/agent_notes" -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const notes = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/agent_notes`, {
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}` },
})).json();
```

**Python**

```python
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()
```

```json
{
  "object": "list",
  "has_more": false
}
```

- `kind` (string): `note`, or `question` about one waiting request.
- `text` (string): What the person wrote, at most 500 characters.
- `agent_id` (string): Your agent.
- `subject` (string): The person's pairwise subject, when your agent holds their network grant.
- `approval_id` (string): 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`](https://provenanceauth.com/docs/api/network.md#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

| Code | What to do |
| --- | --- |
| `note_too_long` | Keep the answer to 500 characters or fewer. |
| `resource_missing` | The request isn't one of your account's, or it has no open question. |

## See also

- [Connect an agent](https://provenanceauth.com/docs/mandate/guides/connect-an-agent.md)
- [Let people connect](https://provenanceauth.com/docs/mandate/guides/connect-from-provenance.md)
- [Provenance for people](https://provenanceauth.com/help/personal/concepts/your-agents)
