---
title: "Get Csrf Token"
method: GET
path: "/v1/auth/csrf"
tags: ["auth"]
---

# Get Csrf Token

`GET /v1/auth/csrf`

## Request

- Base URL: `https://api.mentium.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mentium.io/v1/auth/csrf`
- Auth: none declared

Get CSRF token for protection against CSRF attacks
Sets a non-HTTPOnly cookie that can be read by JavaScript

## Response `200`

Successful Response

- CSRFResponse
  - `csrf_token` string, required

---

[API](https://skmtc.dev/mentium/apis/mentium-api.md) - [All operations](https://skmtc.dev/mentium/apis/mentium-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mentium/apis/mentium-api/revisions/b4ed8e59432e?raw)
