Skip to Content
Xeonr Developer Docs

List Team API Keys

POST
/xeonr.auth.api.v1.TeamsService/ListTeamApiKeys

Lists the API keys the team owns, across all applications, with whether the caller may manage them. Members only.

Required scopes: auth:teams:read

Authorization

AuthorizationBearer <token>

JWT access token obtained via OAuth2 flow or service account

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

team?string

Team URN or organisation-unique slug.

Length1 <= length <= 128
includeRevoked?boolean
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://auth.xeonr.io/xeonr.auth.api.v1.TeamsService/ListTeamApiKeys" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "keys": [
    {
      "keyId": "urn:xeonr:auth:api-key:7e0c1e52-3a0d-4a0a-9b2e-2f0f7a1b9c3d",
      "name": "string",
      "description": "string",
      "keyPrefix": "string",
      "applicationId": "string",
      "applicationSlug": "string",
      "applicationName": "string",
      "owner": {
        "kind": "API_KEY_OWNER_KIND_UNSPECIFIED",
        "urn": "urn:xeonr:auth:team:0f3c9a2e-8f1b-4c2d-9e6a-1b2c3d4e5f60",
        "resourceType": "bucket",
        "resourceId": "bkt_01J9W3E8Q9"
      },
      "subject": "string",
      "identityless": true,
      "scopes": [
        "string"
      ],
      "effectiveScopes": [
        "string"
      ],
      "resourceMode": "API_KEY_RESOURCE_MODE_UNSPECIFIED",
      "bindings": [
        {
          "resourceType": "string",
          "resourceId": "string",
          "scopes": [
            "string"
          ],
          "effectiveScopes": [
            "string"
          ],
          "label": "string"
        }
      ],
      "attributes": {
        "property1": {},
        "property2": {}
      },
      "expiresAt": "2023-01-15T01:30:15.01Z",
      "lastUsedAt": "2023-01-15T01:30:15.01Z",
      "revokedAt": "2023-01-15T01:30:15.01Z",
      "createdAt": "2023-01-15T01:30:15.01Z",
      "updatedAt": "2023-01-15T01:30:15.01Z",
      "createdBy": "string",
      "assertedBy": "string",
      "version": "string",
      "legacyPrefix": "string"
    }
  ],
  "canManage": true
}

List My Teams POST

Lists the teams the calling subject belongs to, filtered to teams entitled to the calling application. Includes the subject's team role and their per-application role names for the calling application. Set `include_unentitled` to additionally return teams that are not yet entitled to this application (`entitled=false`, no application roles), each with `can_enable` — the picker for entitling an existing team via EnableTeamApplication. That form additionally requires a user subject and either `auth:teams:manage:app`, which returns the teams the user OWNS, or the org-wide `auth:teams:manage`, which returns every team the user is in so a console can show one it cannot act on rather than hiding it. **Required scopes:** `auth:teams:read`

List Assignable Application Roles POST

Lists the team-typed ApplicationRoles each named application defines, so a UI can offer what is assignable before calling SetMemberApplicationRoles. Only applications the team is entitled to are returned; application-typed roles (enrollments, admin checks, scope gates) are never listed here because they are not assignable within a team. Read `role_options`, not `applications`: a role's name is the slug tokens match on, and `role_options` carries the display name to show beside it. `applications` is the same set as names alone, kept for callers that want nothing more. Slugs are restricted as in SetMemberApplicationRoles. With no `applications`, the calling client's own application is described. **Required scopes:** `auth:teams:read`