GymFlow uses JSON Web Tokens (JWT) for authentication. You register once to create an account, then exchange your credentials for a token at login. That token must be included in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Lokhy87/gymApp/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header of every request that requires authentication.
Register
Create a new user account. No authentication is required for this endpoint.POST /api/register
A unique email address. Used as the login identifier and JWT subject.
A display name for the account.
Plain-text password. The API hashes it with Symfony’s password hasher before storage.
The user’s location. Defaults to
"Valencia" if omitted.| Status | Meaning |
|---|---|
400 | One or more of email, username, or password is missing. |
Log in
Exchange credentials for a JWT. This endpoint is handled by LexikJWTAuthenticationBundle; the controller stub is intercepted before execution.POST /api/login_check
The email address used during registration.
The account password.
A signed JWT. Include this value in the
Authorization header for all protected requests.| Status | Meaning |
|---|---|
401 | Invalid credentials. |
Make an authenticated request
Pass the token as a Bearer credential in theAuthorization header.
401 Unauthorized if the header is missing or the token is invalid.