Skip to Content
Xeonr Developer Docs
API SpecificationNamespaces

Get my role

POST
/containers.api.v1.NamespaceService/GetContainersMe

Returns whether the calling subject is a platform administrator, their teams with the namespace role each grants them, and every namespace they can see with its owning team and their role in it. It takes no parameter and reads nobody else. Namespace API keys are refused.

Access: any authenticated person.

Authorization

BearerAuth
AuthorizationBearer <token>

A namespace-scoped API key (cpk_…) for machines, or a Xeonr Auth OIDC token for humans. The key's namespace and role are pinned server-side.

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://containers.xeonr.io/containers.api.v1.NamespaceService/GetContainersMe" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "admin": true,
  "teams": [
    {
      "id": "string",
      "slug": "string",
      "role": "ROLE_UNSPECIFIED"
    }
  ],
  "namespaces": [
    {
      "namespace": "string",
      "displayName": "string",
      "ownerTeam": "string",
      "ownerTeamSlug": "string",
      "role": "ROLE_UNSPECIFIED"
    }
  ]
}