RunnerTokenService
CreateRegistrationToken
Section titled “CreateRegistrationToken”POST /spin.v1.RunnerTokenService/CreateRegistrationToken
Generate a one-time registration token (admin only)
Request
| Field | Type | What it is |
|---|---|---|
description | string | e.g., “Runner for host-us-east-1” |
teamId | string | Optional: scope to team (host joins team’s pool) |
expiresAt | Timestamp | Default: 24h |
reusable | boolean | A 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. |
hostPolicy | HostPolicy | The policy each host it registers starts with, under SetHostPolicy’s rules; host_id must be empty, since the hosts do not exist yet. |
Response
| Field | Type | What it is |
|---|---|---|
tokenInfo | RegistrationToken | |
token | string | Full token, shown only once |
ListRegistrationTokens
Section titled “ListRegistrationTokens”POST /spin.v1.RunnerTokenService/ListRegistrationTokens
List active registration tokens (admin only)
Request
| Field | Type | What it is |
|---|---|---|
includeUsed | boolean | |
page | PageRequest |
Response
| Field | Type | What it is |
|---|---|---|
tokens | list of RegistrationToken | |
page | PageResponse |
RevokeRegistrationToken
Section titled “RevokeRegistrationToken”POST /spin.v1.RunnerTokenService/RevokeRegistrationToken
Revoke a registration token (admin only)
Request
| Field | Type | What it is |
|---|---|---|
id | string |
Response
No fields: {}.
RevokeRunner
Section titled “RevokeRunner”POST /spin.v1.RunnerTokenService/RevokeRunner
Revoke a runner (admin only)
Request
| Field | Type | What it is |
|---|---|---|
hostId | string | |
leaveWorkspaces | boolean | Revoke 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.

