Changes you approve
Some changes need you. Your AI agent asks for them with a link, and nothing happens until you verify it is you and approve.
An AI agent connected to the platform server does most of what you do in the developer portal.
A few changes are different: the portal asks you to verify it is you before making them, or they
move money. For those, the agent asks and you decide. It calls request_approval, hands you a
link, and nothing changes until you open the link, verify it is you and approve.
What goes through a link
| Action | What it does |
|---|---|
organization.delete | Deletes an organization |
organization.transfer_ownership | Hands an organization to somebody else |
organization.nominate_successor, organization.clear_successor | Names, or stops naming, who may take an organization over |
organization.file_recovery_case | Asks for an organization to be recovered when its owner cannot be reached |
application.request_transfer, application.cancel_transfer | Asks to move an application to another organization, or withdraws the request |
organization.accept_transfer, organization.decline_transfer | Accepts or declines an application moving into your organization |
organization.update_security_policy, application.update_security_policy | Changes what an organization requires of sign-ins, or an application's own policy, including the longest a credential may live |
organization.require_reauthentication | Makes people sign in again |
organization.request_credential_reset | Asks one person to reset their credentials |
organization.purge_profile_field, application.purge_signup_question | Deletes every answer to a retired profile field or sign-up question |
organization.request_profile_move | Asks to move a person's profile to another address |
application.set_require_pkce | Turns PKCE on or off for an application |
application.change_plan, organization.change_plan | Changes a plan |
application.checkout, organization.checkout | Starts a subscription where there is none |
Each action takes the fields its form in the portal takes, together with the application_id
or organization_id it acts on. A missing or wrong field is refused with validation_failed,
naming the field.
How it works
- The agent calls
request_approvalwith an action and its fields. onefold checks that you could make the change now, and that the application or organization is one the agent may reach. If not, the request is refused the way any other tool call is. - The tool returns a pending request: its
request_id, anapproval_url, when it expires, and a summary of what will happen. The agent gives you the link. - You open the link, signed in to onefold. The page shows who asked, what will change and, for a plan change, the price you will be charged.
- You verify it is you, with the same check the portal asks for: your password, a code from your authenticator, a passkey or a code sent to your email address, depending on what your account holds. Then you choose Approve. Or you choose Decline, which needs no verification.
- On approval, onefold makes the change as you. Your permission is checked again at that moment, so a role you lost in the meantime ends the request as failed rather than making the change. An approved checkout continues on the payment page.
The agent reads the outcome with get_approval_request:
state | Meaning |
|---|---|
pending | Waiting for you |
approved | You approved, and the change is made |
declined | You declined. Nothing changed |
expired | Nobody answered in time, or the agent was revoked first |
failed | You approved, but the change could not be made. failure_code says why |
Rules
- A link lasts 30 minutes and can be answered once. After that, the agent asks again.
- Only the person it acts for can approve. The link opens the request only for that account. Anyone else sees a request that does not exist.
- A revoked agent's requests close. Revoking an agent, or disconnecting it, ends every request it is still waiting on. None of them can be approved afterwards.
- An agent reads only its own requests.
- Organization agents cannot ask. An agent credential that acts
as one of your organization's roles has no person to ask, so
request_approvalrefuses it.
What it needs
request_approval needs Write and the Ask you to approve a change permission, which every
choice that includes Write grants. get_approval_request needs Read. See
Scopes and permissions.
For what no tool and no approval covers, see What you do in the portal.