Skip to Content
Xeonr Developer Docs
API SpecificationManaged names

Create Agent Credential

POST
/xeonr.burrow.v1.ManagedReservationService/CreateAgentCredential

Mints a credential that can open the agent session for this one name and nothing else, and returns its secret once in secret. 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. 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.

Delegated tokens only, for names the calling product manages. The person needs the editor role.

Required scopes: burrow:managed:edit

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 managed 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
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://burrow.prod.wtf/xeonr.burrow.v1.ManagedReservationService/CreateAgentCredential" \  -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 id:urn:xeonr:auth:api-key:3c6f9a1d-2e4b-4c7a-8f0e-6b9d2a5c7e81 keyPrefix:7Hq2Lm9x name:living-room-pi reservationId:c8e1f4a2-6b3d-4f7e-9a0c-3d5e7f9b1a28]",
  "secret": "xk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}