Skip to Content
Xeonr Developer Docs
API SpecificationUpdater

Get the caller's updater roles and scopes

POST
/xeonr.updater.v1.UpdaterService/GetUpdaterMe

Returns the teams on the caller's token, each with its id, slug and the upl roles the caller holds in it (admin, writer, reader), and the scopes the token carries (upl:uploads:manage is what writes need, upl:bucket:manage what creating and deleting apps need).

Needs a signed-in person's token; an API key gets PERMISSION_DENIED. A session whose grant cannot be exchanged gets PERMISSION_DENIED (sign out and back in), and one the sign-in service cannot answer for gets UNAVAILABLE.

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
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://updater.xeonr.io/xeonr.updater.v1.UpdaterService/GetUpdaterMe" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "teams": [
    "map[id:urn:xeonr:auth:team:8e5c roles:[admin] slug:platform-core]"
  ],
  "scopes": [
    "upl:uploads:manage",
    "upl:bucket:manage"
  ]
}