API reference
The canonical API spec is the OpenAPI 3.1 document shipped with the project. It defines all paths, request/response schemas, and error shapes.
Base URL
- Production:
https://api.1claw.xyz - Dashboard proxy:
https://1claw.xyz/api(proxies to the same API)
All endpoints are under /v1.
Public (no auth)
| Method | Path | Description |
|---|---|---|
| GET | /v1/health | Service health |
| GET | /v1/health/hsm | HSM connectivity |
| GET | /v1/share/:share_id | Access a shared secret (checks expiry + access count) |
Authentication
| Method | Path | Description |
|---|---|---|
| POST | /v1/auth/signup | Self-service signup (email + password) → JWT |
| POST | /v1/auth/token | Email/password → JWT |
| POST | /v1/auth/agent-token | Agent ID + API key → JWT |
| POST | /v1/auth/api-key-token | Personal API key → JWT |
| POST | /v1/auth/google | Google id_token → JWT |
| DELETE | /v1/auth/token | Revoke token |
| POST | /v1/auth/change-password | Change password |
| POST | /v1/auth/forgot-password | Request password reset email (uniform 200 response) |
| POST | /v1/auth/reset-password | Complete password reset with email token |