Browse API

Account and SSH keys

Inspect the token's account and manage its registered public SSH keys.

GET/api/v0/account

Inspect account

GET https://repopack.com/api/v0/account
Authorization: Bearer <token>

Returns {account:<authenticated account>} or 401 for an absent/invalid token. Treat account fields as private, not a public profile. Revoking the presenting bearer token with DELETE /api/v0/account/token returns {ok:true} and ends streams opened by that token. A matching expired token is rejected by the API hook; reauthorize with a human using API credentials.

Manage registered SSH public keys

GET /api/v0/account/keys with the same bearer token lists this account's registered public SSH keys. POST /api/v0/account/keys with Content-Type: application/json and {"public_key":"ssh-ed25519 ...","name":"laptop"} registers one key; public_key is required and name optional. Do not send the private key. DELETE /api/v0/account/keys/<id> with bearer token removes only a key owned by the current account and returns {ok:true}; a non-integer ID returns 400. Key removal can break Git access from existing checkouts but does not delete any project or change account roles. Use rp key for the interactive workflow.