Documentation Index
Fetch the complete documentation index at: https://docs.capedigital.co.ke/llms.txt
Use this file to discover all available pages before exploring further.
Overview
All endpoints are protected by Keycloak. You must include a valid JWT access token in every request.Obtaining a token
Request a token from Keycloak using the client credentials or password grant, depending on your context.Client credentials (service-to-service)
Password grant (user context)
access_token:
Using the token
Pass the token as aBearer header on every API call:
Token expiry
Tokens expire after 300 seconds (5 minutes) by default. Refresh before expiry using therefresh_token from the initial response, or re-authenticate.
Tokens are realm-scoped to
capemedia. Ensure your client has the required roles for the endpoints you are calling — a 403 indicates missing role assignments, not an invalid token.