Skip to Content
Xeonr Developer Docs
API SpecificationAPI keys

Create Token

POST
/xeonr.burrow.v1.TokenService/CreateToken

Creates a key owned by the team and returns its secret in token_secret. That is the only time the value exists — Xeonr Auth keeps only its hash — so there is no method that can return it again.

The role is capped at editor whatever is asked for, and becomes the key's burrow scopes. Needs the admin role.

Required scopes: burrow:tokens:admin

Authorization

BearerAuth
AuthorizationBearer <token>

A Xeonr Auth access token whose audience is this API, or a team API key (xk_…), presented as Authorization: Bearer ….

In: header

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

team?string
Lengthlength <= 128
name?string

Name is for whoever finds it in six months. Empty becomes "untitled".

Lengthlength <= 128
role?string

Role is capped at editor; anything above it is silently lowered rather than refused, because the caller asking for admin wanted a working credential and this is the strongest one that exists.

Value in"ROLE_UNSPECIFIED" | "ROLE_VIEWER" | "ROLE_EDITOR" | "ROLE_ADMIN"
description?string

Description is for whoever finds the key later; optional.

Lengthlength <= 512
expiresAt?string

ExpiresAt is when the key stops working; unset means never.

Formatdate-time
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://burrow.prod.wtf/xeonr.burrow.v1.TokenService/CreateToken" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "token": "map[createdAt:2026-09-02T10:00:00Z createdBy:urn:xeonr:auth:uid:user:3 description:Brings up preview tunnels from the staging deploy pipeline expiresAt:2027-09-02T00:00:00Z id:urn:xeonr:auth:api-key:7e0c1e52-3a0d-4a0a-9b2e-2f0f7a1b9c3d keyPrefix:4fK9pQ2z name:ci-staging-deploys role:ROLE_EDITOR scopes:[burrow:names:edit burrow:tunnels:read]]",
  "tokenSecret": "xk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}