Base URL
- Production:
https://api.boltroute.ai - Staging:
https://staging-api.example.com - Local:
http://localhost:8080
Conventions
- Content-Type:
application/json - Date/Time: ISO 8601 (UTC)
- Pagination:
limit,offset - Error format: JSON error payload with
code,message, and optionaldetails
Endpoints
GET /api/v1/credits/balance
Summary: Return the current credit balance for the authenticated user. Idempotent: Yes Tags: creditsRequest
HeadersContent-Type: application/json
| Name | Type | Required | Default | Description | Example |
|---|
Responses
200 OK - Credit balance| Field | Type | Description |
|---|---|---|
| user_id | string | User UUID |
| balance | integer | Current credit balance |