The Auth service handles user registration, login, session management, and credential operations. Its base URL is configured viaDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/makakoo/traylinx/llms.txt
Use this file to discover all available pages before exploring further.
REACT_APP_AUTH_API_BASE_URL (default: https://api.makakoo.com/ma-authentication-ms/v1/api).
All requests require the Api-Key header. Endpoints that operate on an authenticated session also require Authorization: Bearer <token>.
Login
Api-Key
The user’s email address or phone number.
The user’s password.
The user’s unique ID.
Always
"session".Short-lived JWT used to authenticate subsequent requests.
Long-lived token used to obtain a new access token when the current one expires.
The authenticated user’s email address.
The user’s first name.
The user’s last name.
429 Too Many Requests.
Register
Api-Key
Email address or phone number for the new account.
Password for the new account.
Registration method. Use
"phone" for phone-based registration; omit or use "email" for email-based registration.200 with tokens (same shape as Login).
On success with activation required — returns 201:
The new user’s ID. Pass this to the account activation endpoints.
201 when activation is required.Human-readable message describing the next step.
true when the account must be activated before logging in.Activate Account (Email)
Api-Key
The user ID returned from the registration response.
The 6-digit verification code from the activation email.
Activate Account (Phone)
Api-Key
The user ID returned from the registration response.
The 6-digit verification code from the SMS.
Resend Activation Code
Api-Key
The user ID returned from the registration response.
Logout
Api-Key, Authorization: Bearer <token>
200 OK. If the token was already expired, returns 401 — in both cases, clear locally stored tokens.
Refresh Token
Api-Key
The refresh token from a previous login or refresh response.
accessToken and refreshToken values.
Check Token Info
Api-Key, Authorization: Bearer <token>
200 OK with token claims on success, 401 Unauthorized if expired or invalid.
Validate Email
Api-Key
The email address to validate.
true if the email address is syntactically valid.true if an account with this email address already exists.Validate Phone
Api-Key
The phone number without country code.
The country calling code (e.g.,
"1" for US/Canada, "44" for UK).true if the phone number is valid.true if an account with this phone number already exists.Request Password Reset
Api-Key
The email address associated with the account.
200 OK. The response does not confirm whether the email exists to prevent enumeration.
Rate limiting: Password reset requests are rate-limited per email address.
Reset Password with Token
Api-Key
The user’s email address.
The new password to set.
The reset token from the password reset email.
Change Password (Authenticated)
Api-Key, Authorization: Bearer <token>
The new password to set.