Skip to main content

Human API overview

The Human API is the full set of REST endpoints used by secret owners: create and manage vaults, store and retrieve secrets, define policies (grants), register and manage agents, view audit logs, and manage billing/usage. You use it with a JWT obtained via email/password, Google OAuth, or a personal API key.

Base URL

  • Production: https://api.1claw.xyz (or your Cloud Run URL, e.g. https://oneclaw-vault-XXXX.run.app)
  • Dashboard proxy: The app at 1claw.xyz proxies /api/v1/* to the same API, so from the browser the base is effectively https://1claw.xyz/api.

All endpoints are under the /v1 prefix.

Authentication

Every request (except health and public auth endpoints) must include:

Authorization: Bearer <access_token>

Ways to get an access token:

MethodEndpointRequest body
SignupPOST /v1/auth/signup{ "email", "password", "display_name?" }
Email + passwordPOST /v1/auth/token{ "email", "password" }
Google OAuthPOST /v1/auth/google{ "id_token" }
Personal API keyPOST /v1/auth/api-key-token{ "api_key" } (e.g. 1ck_...)

See Authentication for details and response shape.

Main areas

AreaEndpointsPurpose
VaultsPOST/GET /v1/vaults, GET/DELETE /v1/vaults/:vault_idCreate, list, get, delete vaults
SecretsPUT/GET/DELETE /v1/vaults/:vault_id/secrets/:path, GET /v1/vaults/:vault_id/secretsStore, read, list, delete secrets
PoliciesPOST/GET /v1/vaults/:vault_id/policies, PUT/DELETE .../policies/:policy_idGrant/revoke access to principals
AgentsPOST/GET /v1/agents, GET/PATCH/DELETE /v1/agents/:agent_id, POST .../rotate-keyRegister agents, rotate keys
SharingPOST /v1/secrets/:secret_id/share, GET/DELETE /v1/share/:share_idShare secrets by email or link (guide)
AuditGET /v1/audit/eventsQuery audit events
BillingGET /v1/billing/usage, GET /v1/billing/historyUsage and history
OrgGET /v1/org/members, PATCH/DELETE /v1/org/members/:user_idTeam members
API keysPOST/GET /v1/auth/api-keys, DELETE /v1/auth/api-keys/:key_idPersonal API keys

Response and errors

  • Success responses return JSON with the documented shape (or 204 No Content for deletes).
  • Errors use RFC 7807-style JSON: type, title, status, detail. See Error codes and Human API errors.

Next