API
Kumir developers
Native iOS/Android and partner integrations use versioned /api/v1. The machine-readable contract is OpenAPI 3.1 at GET /api/v1/openapi. Do not invent Stripe, APNs, FCM, or OAuth keys — missing providers return 501 or log-only, never a fake success.
Auth: POST /api/v1/auth/login returns an HS256 access token (1 hour) and a rotating refresh token (30 days). Send Authorization: Bearer … and X-Fameo-Channel: ios|android. Health probes /api/v1/health and /ready stay unauthenticated.
credits
GET /api/v1/credits
Gift card + wallet purchase history (optional q) · Bearer
POST /api/v1/credits
POST credits · Bearer
GET /api/v1/credits/{id}
GET credit purchase by id (poll after Stripe web checkout) · Bearer
POST /api/v1/credits/{id}/fail
POST credits · :id · fail · Bearer
POST /api/v1/credits/{id}/pay
Confirm sandbox credit pay or return Stripe web checkoutUrl · Bearer
POST /api/v1/credits/redeem
POST credits · redeem · Bearer