Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/AC42027/Backend-produccion/llms.txt

Use this file to discover all available pages before exploring further.

The /api/logout/ endpoint destroys the server-side session associated with the caller’s sessionid cookie. After a successful call, the session is invalidated and any subsequent requests that include the same cookie will be treated as unauthenticated. Method: GET
Path: /api/logout/
Auth required: Yes — an active sessionid cookie must be present. Calling this endpoint without a valid session still returns 200 but has no effect.

Request body

None. This endpoint does not accept or require a request body.

Response

200 — Success

status
string
required
Always "ok".
message
string
required
Always "Sesión cerrada".
{
  "status": "ok",
  "message": "Sesión cerrada"
}

Example

Log out using the cookie file saved during login:
curl -X GET http://<host>:8080/api/logout/ \
  -b cookies.txt
After this call the sessionid stored in cookies.txt is no longer valid. Delete or discard the cookie file to avoid accidentally reusing it:
rm cookies.txt
This endpoint uses @csrf_exempt, so no CSRF token is required. Once the session is invalidated, any request that relied on that cookie — including page loads and API calls — will fail or return an unauthenticated response.

Build docs developers (and LLMs) love