Skip to Content
Xeonr Developer Docs
API SpecificationReserved names

Create Reservation Credential

POST
/xeonr.burrow.v1.ReservationService/CreateReservationCredential

Mints a credential that can open the agent session for this one name and nothing else, and returns its secret once in secret: the narrowest unattended credential for a tunnel, for a CI deploy preview or an agent on a device. It is a Xeonr Auth API key (xk_…) owned by the reservation, so it dies with it.

An agent presents it as Authorization: Bearer xk_… on the agent WebSocket, exactly where a CLI token goes, and BURROW_TOKEN=xk_… burrow http <port> works. Registered with it, the tunnel always serves this name with this name's policy and capture mode: the name, team, protocol and policy the agent sends are ignored or must match. It is refused on every control-plane method.

Refused with permission_denied for a name a product manages (managed_by set): that product mints its credentials. Needs the editor role. It takes burrow:tokens:admin, not burrow:names:edit, so that no API key can reach it: a credential that can mint credentials is one that never really gets revoked.

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
reservation?string

Reservation is the name the credential will serve, by id or name.

Length1 <= length <= 128
name?string

Name is for whoever finds it later. Empty becomes the reservation's name.

Lengthlength <= 64
expiresAt?string

ExpiresAt is when the credential stops working; unset means never. timestamp.gt_now = true

Formatdate-time
description?string

Description is what the credential is for. Empty becomes "agent credential for ".

Lengthlength <= 512
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://burrow.prod.wtf/xeonr.burrow.v1.ReservationService/CreateReservationCredential" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "credential": "map[createdAt:2026-10-01T08:16:00Z createdBy:urn:xeonr:auth:uid:user:3 expiresAt:2027-01-01T00:00:00Z id:urn:xeonr:auth:api-key:3c6f9a1d-2e4b-4c7a-8f0e-6b9d2a5c7e81 keyPrefix:7Hq2Lm9x name:ci-previews reservationId:5b2d7c1e-9a4f-4e3b-8c6d-2f1a0b9e7d34]",
  "secret": "xk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}