This guide walks you through the three steps needed to confirm your Marbes Backend instance is running, authenticate with it, and retrieve real data from a protected endpoint. All examples useDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/scoria02/marbes2021_backend/llms.txt
Use this file to discover all available pages before exploring further.
http://localhost:7780 as the base URL — replace this with your server’s address if you’re connecting to a remote deployment.
Before you begin
Make sure you have:- A running Marbes Backend instance (see Deploy with Docker)
- A valid user account created by your administrator
curlor a JavaScript runtime available on your machine
Check the health endpoint
The health endpoint requires no authentication and is the fastest way to confirm the server is up and responding correctly.A healthy server returns HTTP If you receive a connection error, verify the container is running with
200 with a JSON body:docker ps and that port 7780 is accessible.Log in and obtain a JWT
Send a A successful login returns HTTP Copy the value of
POST request to /api/auth/login with your credentials. You can identify yourself with your email, name, or code — only one is required alongside your password.200 with this structure:data.token — you’ll include it in every subsequent request.Tokens are signed with HS256 and expire after 12 hours. Store the token securely in memory or a session store; do not persist it in
localStorage in browser environments.Common errors on your first call
| Status | Cause | Fix |
|---|---|---|
401 Acceso denegado. No se proveyó token. | Missing or malformed Authorization header | Ensure the header is exactly Authorization: Bearer <token> with a space after Bearer |
401 Token inválido o expirado. | Token has expired (after 12 h) or was tampered with | Log in again to obtain a new token |
400 on login | Missing required fields | Include at least one of email, name, or code and a non-empty password |
401 Credenciales inválidas. | Wrong password or unrecognized identifier | Verify your credentials with your administrator |
Next steps
Authentication
Learn all authentication modes, including public credit application links
Deploy with Docker
Set up a production deployment with Docker Compose