Skip to Content
Xeonr Developer Docs
API SpecificationPRIVATEApplications

List Pending Approvals

POST
/xeonr.auth.private.v1.ApplicationsService/ListPendingApprovals

The Approvals inbox: binding requests and access requests into every application the caller administers (an organisation administrator: all of them; anyone else: those owned by a team they own), and applications asking to be enabled on teams the caller owns. Each is decided with its own RPC: DecideApplicationBindingRequest, DecideApplicationAccessRequest, TeamsService.DecideTeamApplicationRequest.

Required scopes: auth:apps:edit (organisation-wide), auth:apps:edit:own or auth:teams:manage

Authorization

BearerAuth
AuthorizationBearer <token>

JWT access token for internal API access. Requires 'private' scope for most endpoints, 'admin' scope for administrative operations.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://auth.xeonr.io/xeonr.auth.private.v1.ApplicationsService/ListPendingApprovals" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "bindingRequests": [
    {
      "principalType": "BINDING_PRINCIPAL_TYPE_UNSPECIFIED",
      "principalId": "string",
      "principalName": "string",
      "principalApplicationId": "string",
      "approved": true,
      "requestedAt": "2023-01-15T01:30:15.01Z",
      "mode": "CLIENT_APPLICATION_BINDING_MODE_UNSPECIFIED",
      "requestedScopes": [
        "string"
      ],
      "approvedScopes": [
        "string"
      ],
      "state": "APPLICATION_BINDING_STATE_UNSPECIFIED",
      "decisionPending": true,
      "targetApplicationId": "string",
      "targetApplicationName": "string",
      "targetOwnerTeamSlug": "string",
      "autoApprovedScopes": [
        "string"
      ]
    }
  ],
  "accessRequests": [
    {
      "requestId": "b8a7c6d5-e4f3-4a2b-9c8d-7e6f5a4b3c2d",
      "applicationId": "string",
      "applicationName": "string",
      "applicationSlug": "string",
      "ownerTeamSlug": "string",
      "user": {
        "userId": "usr_a1b2c3d4e5f6",
        "username": "johndoe",
        "email": "[email protected]",
        "avatarUrl": "https://cdn.example.com/avatars/abc123",
        "displayName": "John Doe"
      },
      "message": "string",
      "state": "ACCESS_REQUEST_STATE_UNSPECIFIED",
      "requestedAt": "2023-01-15T01:30:15.01Z",
      "decidedAt": "2023-01-15T01:30:15.01Z"
    }
  ],
  "teamRequests": [
    {
      "requestId": "b8a7c6d5-e4f3-4a2b-9c8d-7e6f5a4b3c2d",
      "applicationId": "string",
      "applicationName": "string",
      "applicationSlug": "string",
      "team": "string",
      "teamSlug": "string",
      "teamName": "string",
      "requestedBy": "string",
      "message": "string",
      "state": "ACCESS_REQUEST_STATE_UNSPECIFIED",
      "requestedAt": "2023-01-15T01:30:15.01Z",
      "decidedAt": "2023-01-15T01:30:15.01Z"
    }
  ]
}