v1.0.0
OpenAPI 3.0.3

Auth Service API

API Support

Multi-tenant authentication and user management service for fitness/coaching applications.

Authentication

All endpoints (except /health) require a valid Firebase ID Token in the Authorization header:

Authorization: Bearer <firebase-id-token>

User Levels

  • 0 - Deactivated
  • 5 - Waiting for Activation
  • 10 - Customer
  • 20 - Trainer
  • 30 - Admin
  • 40 - TenantAdmin
  • 1000 - SuperAdmin
Server:https://auth.simplecoaching.ai

Production Server

Client Libraries

User

​

Current user profile operations

Get current user profile

​

Returns the authenticated user's profile with Stream Chat token

Responses

  • application/json
  • application/json
  • application/json
Request Example for get/api/v1/auth/user
curl https://auth.simplecoaching.ai/api/v1/auth/user \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "id": "string",
  "name": "string",
  "level": 1,
  "picture": "string",
  "studio_id": "string",
  "tenant": "string",
  "license": "Elite"
}

Upload profile photo

​

Upload or update the current user's profile photo (JPEG/PNG/WebP/HEIC, max 10 MB)

Body

required
application/json

Responses

  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/api/v1/auth/user/avatar
curl https://auth.simplecoaching.ai/api/v1/auth/user/avatar \
  --request POST \
  --header 'Content-Type: multipart/form-data' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "avatar_url": "string"
}

Notifications (Collapsed)

​

TenantAdmins (Collapsed)

​

TenantAdmin management (multi-studio administrators)

TenantAdmins Operations

Stats (Collapsed)

​

Statistics and analytics

Imports (Collapsed)

​

Health (Collapsed)

​

Service health checks

Health Operations

PasskeyAuth (Collapsed)

​

Passwordless authentication using passkeys (WebAuthn)

CoachingLight (Collapsed)

​

The studio's Coaching Light subscription sold through the studio's own Airwallex account: the admin's settings, the customer's checkout, subscription and cancellation, and Airwallex's webhook.

Addresses (Collapsed)

​

Google Places-backed address search proxy. The Google API key stays server-side; clients only ever talk to this service. Pair the optional session_token across autocomplete keystrokes and the final place-details lookup so Google bills the round-trip as a single session (significantly cheaper than per-request).

Models