Documentation Index
Fetch the complete documentation index at: https://docs.crypto.westminister.tech/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The CoinPool API uses PASETO bearer tokens for authentication. Obtain tokens via login endpoints and send them in theAuthorization header.
Token Types
| Token | Lifetime | Purpose |
|---|---|---|
| Access Token | ~15 minutes | Authenticate API requests |
| Refresh Token | Long-lived | Obtain new access tokens |
Login Endpoints
Email + Password
access_token and refresh_token (PASETO).
PIN Login
Refresh Token Flow
When the access token expires, exchange the refresh token for new tokens:Using the Token
Add the access token to every protected request:PIN Management
- Set during registration: Include
pininPOST /api/v1/users/register - Update existing PIN:
PUT /api/v1/auth/user/id/{id}/pin
Unauthenticated Endpoints
These endpoints do not require a token:POST /api/v1/users/registerPOST /api/v1/users/login-pin