Skip to main content
An access request (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}
The object is everything inside data. The field names below are relative to it: attributes.status is data.attributes.status in the response.

Fields

string
required
Access request ID (aar_*).
string
required
Resource type. Always agentAccessRequest.
object
required
The access request’s details.

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 with GET /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. permissions lists 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. approvedPermissions lists what was added and declinedPermissions what was not; it is empty when everything was approved. An agentConnection.updated event 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. cancelReason is developerCanceled when the developer canceled it and connectionEnded when the agent’s connection to the customer ended.

Errors

See the error codes these endpoints return.

Sandbox simulations