Termsheep Cloud is coming soon.Cloud is coming soon.Join the waitlist →

API route overview

Find route templates for the Termsheep platform API, including authentication, vault sync, access requests and organization administration.

Last updated

Use the arrow keys to scroll the table.

Route inventory

Before sending protected requests, fetch GET /api/v1/vault-protocol and require the JSON string VAULT_PROTOCOL_ID (termsheep-protected-vault-v8). A group or host rotation publishes through POST /api/v1/vaults/{id}/rotate and returns a receipt. The initiating device can look up the same operation at GET /api/v1/vaults/{id}/rotations/{operation}/receipt. The response is null before a decision, or a decision with disposition set to committed or refused. If a prepared body has become unsafe to resend, the initiating device can submit only its request digest with POST on the same receipt route. An already committed result takes precedence. GET /api/v1/vaults/{id}/rotations lists pending work. A successful scope publication clears work for the scopes it rotated.

For an MCP command or snippet with an uncertain start, the broker checks the existing run using POST /api/v1/vaults/{id}/snippet-runs?check_start=true and its original run settlement credential. The receipt check reports 204 for a committed start, 425 while it may still arrive, or 410 when it is absent. Recovery never reruns the SSH command.

For open registration on an initialized Cloud-mode server, POST /api/v1/auth/registration/address queues a single-use confirmation link for addresses without an active account and a sign-in notice for addresses with an active account. POST /api/v1/auth/registration/complete completes a pending registration after the person confirms they saved the Emergency Kit.

POST /api/v1/me/fresh-proof/start starts password confirmation on the current device for an account without a second factor. POST /api/v1/me/fresh-proof verifies that proof or the enrolled second factor and records confirmation for ten minutes on the same device. PUT /api/v1/organizations/{id}/admin-second-factor lets an organization admin with fresh confirmation set whether admins must enroll a second factor.

GET /api/v1/organizations/{id}/waiting-access lists entries waiting for key delivery that the signed-in person can see. POST /api/v1/organizations/{id}/waiting-access/{wait}/remind lets the person waiting for keys remind eligible managers once a day. GET /api/v1/me/first-steps reports setup progress for the signed-in person, including whether they have signed in on desktop and whether they own a vault or a team in their default organization has one.

Route templates from the shared protocol. Protected routes require authentication and authorization. Use the wire types in the same source checkout as your server.

Constant Path
HEALTH /healthz
VAULT_PROTOCOL /api/v1/vault-protocol
PRELOGIN /api/v1/auth/prelogin
REGISTER /api/v1/auth/register
LOGIN /api/v1/auth/login
AGENT_LOGIN /api/v1/auth/agent
REFRESH /api/v1/auth/refresh
LOGOUT /api/v1/auth/logout
CHANGE_PASSWORD /api/v1/auth/password
OPAQUE_REGISTER /api/v1/auth/opaque/register
OPAQUE_LOGIN_START /api/v1/auth/opaque/login
OPAQUE_LOGIN_FINISH /api/v1/auth/opaque/finish
OPAQUE_RECOVERY_FINISH /api/v1/auth/opaque/recovery
REGISTER_V2 /api/v1/auth/register/v2
REGISTRATION_ADDRESS /api/v1/auth/registration/address
REGISTRATION_COMPLETE /api/v1/auth/registration/complete
ACCOUNT_UPGRADE /api/v1/auth/upgrade
ACCOUNT_RECOVER /api/v1/auth/recover
CHANGE_PASSWORD_V2 /api/v1/auth/password/v2
ME /api/v1/me
FIRST_STEPS /api/v1/me/first-steps
FRESH_PROOF_START /api/v1/me/fresh-proof/start
FRESH_PROOF /api/v1/me/fresh-proof
DEVICES /api/v1/devices
DEVICE /api/v1/devices/{id}
LOOKUP /api/v1/principals/lookup
TEAMS /api/v1/teams
TEAM_MEMBERS /api/v1/teams/{id}/members
TEAM_MEMBER /api/v1/teams/{id}/members/{principal}
TEAM_AGENTS /api/v1/teams/{id}/agents
AGENT /api/v1/agents/{id}
AGENT_TOKEN /api/v1/agents/{id}/token
AGENT_RESPONSIBLE /api/v1/agents/{id}/responsible
VAULTS /api/v1/vaults
VAULT /api/v1/vaults/{id}
VAULT_RECORDS /api/v1/vaults/{id}/records
VAULT_MEMBERS /api/v1/vaults/{id}/members
VAULT_MEMBER /api/v1/vaults/{id}/members/{principal}
VAULT_MEMBER_REMOVE /api/v1/vaults/{id}/members/{principal}/remove
VAULT_MEMBER_END_CONFIRM /api/v1/vaults/{id}/members/{principal}/end/confirm
VAULT_MEMBER_ISSUER /api/v1/vaults/{id}/members/{principal}/issuer
VAULT_SIGNED_BY /api/v1/vaults/{id}/signed-by/{principal}
VAULT_RESIGN /api/v1/vaults/{id}/resign
VAULT_ROTATE /api/v1/vaults/{id}/rotate
VAULT_AUDIT /api/v1/vaults/{id}/audit
SYNC_WS /api/v1/sync/ws
TENANT /api/v1/tenant
TENANT_MEMBERS /api/v1/tenant/members
TENANT_MEMBER /api/v1/tenant/members/{principal}
ORGANIZATIONS /api/v1/organizations