Endpoint reference
Every v1 endpoint, the permission it requires, and the shape it returns.
Reading this reference
All paths are relative to /api/v1. The Requires column names the minimum project or organization role; every endpoint additionally requires a valid token, an active account, and a completed onboarding unless noted.
Organizations bind by slug. Everything else binds by id - including projects, which is why shortspan project use stores the resolved id rather than the slug.
Unauthenticated
| Method | Path | Does |
|---|---|---|
|
| The current CLI release manifest. A client must be able to learn it is blocked before it can sign in. |
|
| Record a download. Best-effort telemetry. |
|
| Begin the device authorization flow. |
|
| Poll for the token. |
Auth and tokens
| Method | Path | Requires | Does |
|---|---|---|---|
|
| token | The authenticated user and the current token's abilities. |
|
| token | Approve a pending device code. This is what the browser page calls. |
|
| token | Revoke the token making the request. Works while suspended. |
|
| token | List your tokens. |
|
| token | Mint a token. Returns the plaintext once. |
|
| token | Revoke a token. |
Organizations
| Method | Path | Requires | Does |
|---|---|---|---|
|
| token | Organizations you belong to. |
|
| token | Create one. Subject to your workspace allowance. |
|
| viewer | One organization. |
|
| viewer | Members and their roles. |
|
| admin | Add a member. Needs the Team plan and a free seat. |
|
| admin | Remove a member from this organization only. |
|
| admin | The audit log. Needs the Team plan and |
Projects
| Method | Path | Requires | Does |
|---|---|---|---|
|
| viewer | Projects in an organization. |
|
| admin | Create a project. |
|
| viewer | One project. |
|
| admin | Update a project. |
|
| admin | Delete a project and everything scoped to it. |
Secrets
| Method | Path | Requires | Does |
|---|---|---|---|
|
| token | Every template and its field schema. |
|
| viewer | Secrets and metadata. Never values. |
|
| developer | Create a secret. |
|
| developer | Update, creating a new version. |
|
| admin | Delete a secret and its history. |
|
| developer | Reveal the plaintext. Reveal-limited, audited as a reveal. |
|
| developer | The value for injection into a process. Reveal-limited. |
Secret groups
| Method | Path | Requires | Does |
|---|---|---|---|
|
| viewer | Groups in a project. |
|
| developer | Create a group. |
|
| viewer | One group. |
|
| developer | Update a group. |
|
| viewer | Keys in the group. No values. |
|
| developer | Every value in the group, for injection. Reveal-limited. |
|
| admin | Delete the group, leaving its secrets ungrouped. |
SSH targets
| Method | Path | Requires | Does |
|---|---|---|---|
|
| viewer | Targets and metadata. |
|
| admin | Register a server. |
|
| viewer | One target. |
|
| admin | Update a target, including its security policy. |
|
| admin | Remove a target. |
|
| developer | Issue a proxy token - not the credential. Reveal-limited. |
|
| developer | Redeem a proxy token for the credential. Single use. |
|
| viewer | The ten most recent readiness reports. |
|
| developer | Record a readiness report from |
Databases, AWS, Kubernetes
| Method | Path | Requires | Does |
|---|---|---|---|
|
| viewer | Database targets. |
|
| admin | Register a database. |
|
| viewer | One target. |
|
| admin | Remove a target. |
|
| developer | Issue database credentials. Reveal-limited. |
|
| viewer | AWS profiles. |
|
| admin | Register a profile. |
|
| viewer | One profile. |
|
| admin | Remove a profile. |
|
| developer | Issue AWS credentials. Reveal-limited. |
|
| viewer | Kubernetes contexts. |
|
| admin | Register a context. |
|
| viewer | One context. |
|
| admin | Remove a context. |
|
| developer | Issue the kubeconfig. Reveal-limited. |
Infrastructure profiles
| Method | Path | Requires | Does |
|---|---|---|---|
|
| viewer | Profiles in a project. |
|
| admin | Create a profile. |
|
| viewer | One profile. |
|
| admin | Delete a profile. Its resources are untouched. |
|
| developer | Resolve every resource the caller can reach, and how to reach it. |
Runbooks
| Method | Path | Requires | Does |
|---|---|---|---|
|
| viewer | Runbooks in a project. |
|
| admin | Create a runbook. |
|
| viewer | One runbook and its steps. |
|
| admin | Update, creating a new version. |
|
| admin | Delete a runbook. |
|
| developer | Execute, or create a pending execution if approval is required. |
|
| admin | Approve one execution. |
|
| developer | Report the outcome of an execution, optionally with each step's status, exit code, duration, and output - redacted before it is stored. |
Access requests
| Method | Path | Requires | Does |
|---|---|---|---|
|
| token | Requests you can see. |
|
| requester | Ask for temporary access. Reason required. |
|
| requester | The status of one request. |
|
| admin | Approve, creating a temporary grant. |
|
| admin | Deny. |
CLI command records
| Method | Path | Requires | Does |
|---|---|---|---|
|
| token | Record the start of a command. |
|
| token | Record its outcome. |
The CLI calls both automatically. They record which command ran, not its arguments or output.
Something here wrong or missing? Tell us.