Skip to content
Spinbox is experimental: APIs change and data may be lost. Status lists what is built and what proves it.

RunnerTokenService

View Markdown

POST /spin.v1.RunnerTokenService/CreateRegistrationToken

Generate a one-time registration token (admin only)

Request

FieldTypeWhat it is
descriptionstringe.g., “Runner for host-us-east-1”
teamIdstringOptional: scope to team (host joins team’s pool)
expiresAtTimestampDefault: 24h
reusablebooleanA pool’s token, for an autoscaling group whose machines register with nobody at them: it is not spent by the host it registers. Short-lived and rotated is the intended use.
hostPolicyHostPolicyThe policy each host it registers starts with, under SetHostPolicy’s rules; host_id must be empty, since the hosts do not exist yet.

Response

FieldTypeWhat it is
tokenInfoRegistrationToken
tokenstringFull token, shown only once

POST /spin.v1.RunnerTokenService/ListRegistrationTokens

List active registration tokens (admin only)

Request

FieldTypeWhat it is
includeUsedboolean
pagePageRequest

Response

FieldTypeWhat it is
tokenslist of RegistrationToken
pagePageResponse

POST /spin.v1.RunnerTokenService/RevokeRegistrationToken

Revoke a registration token (admin only)

Request

FieldTypeWhat it is
idstring

Response

No fields: {}.

POST /spin.v1.RunnerTokenService/RevokeRunner

Revoke a runner (admin only)

Request

FieldTypeWhat it is
hostIdstring
leaveWorkspacesbooleanRevoke although workspaces are on this host. Refused without it: each such workspace can then run only once it is recovered onto another host (RecoverWorkspace), which gives up what this host had not published. A machine that may be compromised is revoked with it anyway.

Response

No fields: {}.

Generated by task reference from spin/internal/controlplane/apidocs/spin.v1.openapi.json at 8eee32b9d.

Documents Spinbox v20261019.02. This page as Markdown, for a model or a terminal.