API
Overview

API Overview

Base URL prefix: /api

All cloud APIs are mounted under /api/cloud.

Included in this reference:

  • User-protected endpoints using keycloak.protect() (Auth: Bearer via Keycloak)

Auth Model

  • Protected endpoints require: Authorization: Bearer <access_token> (Keycloak)

Cloud: General

GET /api/cloud/credits

  • Auth: Bearer (Keycloak)
  • Description: Returns current user/project credit information.
  • Params: none
  • Query: none
  • Body: none
  • Responses: 200 OK { credits: number, cost: number }, 401/400/500 on errors
  • Example:
curl -H "Authorization: Bearer $TOKEN" \
  https://your-host/api/cloud/credits