aar_*) asks a customer your agent is already connected to for more permissions for that agent. The customer approves all of them, some of them, or none. To learn more, see Ask for more access.
Example
GET /customers/access-requests/{accessRequestId}
data. The field names below are relative to it: attributes.status is data.attributes.status in the response.
Fields
Statuses
Which permissions a request holds
permissions lists what was stored, which can be shorter than what you sent. Permissions the agent already held, or that came with one it held, are left out, and so are names that would add nothing to what the agent has. A request with nothing left returns 409.
What changes when a request is approved
The approved permissions are added to what the agent has for that customer at that moment. Read the agent’s full permissions withGET /customers/{customerPartyId}, or from the agentConnection.updated event sent with an approval that changed them.
Events
agentAccessRequest.created: A developer asked a customer its agent is already connected to for more permissions for that agent.permissionslists what was asked for. Nothing changes for the agent until the customer decides.agentAccessRequest.approved: The customer approved some or all of the requested permissions, and the agent can use them now.approvedPermissionslists what was added anddeclinedPermissionswhat was not; it is empty when everything was approved. AnagentConnection.updatedevent with the agent’s full permissions is sent as well when its permissions changed.agentAccessRequest.declined: The customer declined every requested permission. The agent’s access is unchanged.agentAccessRequest.canceled: The request was canceled before the customer decided.cancelReasonisdeveloperCanceledwhen the developer canceled it andconnectionEndedwhen the agent’s connection to the customer ended.
Errors
See the error codes these endpoints return.Sandbox simulations
- Sandbox: Approve an access request: Approve a pending access request as a test customer in Sandbox.
- Sandbox: Decline an access request: Decline a pending access request as a test customer in Sandbox.