# confirm_agent_spend

Approve or decline the spend a Layer agent's turn waits on, as get\_agent\_response gives it in  
\`pending\_spend\`. The answer is recorded as the user's own, as if they answered the card in the  
Layer app, and the turn carries on: wait for it with get\_agent\_response.

Spending the workspace's Creative Units is the user's decision: show them the cost and approve only  
when they say so, never on their behalf.

## Parameters

| Parameter                | Type               | Default | Description                                                             |
| ------------------------ | ------------------ | ------- | ----------------------------------------------------------------------- |
| session\_idrequired      | string (uuid)      | —       | The session the turn belongs to.                                        |
| confirmation\_idrequired | string1–∞ chars    | —       | The \`confirmation\_id\` of the turn's \`pending\_spend\`.              |
| approvedrequired         | boolean            | —       | true runs the spend; false declines it and the agent stops short of it. |
| reason                   | string0–1000 chars | —       | Why the user declined, passed to the agent.                             |
