---
title: "GET /api/csrf"
method: GET
path: "/api/csrf"
tags: ["csrf"]
---

# GET /api/csrf

`GET /api/csrf`

## Request

- The document declares no server URL.
- Auth: none required

## Response `200`

- Csrf
  - `csrfToken` string, required

## Other responses

- `400`
- `404`
- `405`
- `406`
- `415`
- `500`

## Changes

- **2026-08-19** `2bacf53705f7`: 1 breaking, 1 info
  - api path removed without deprecation
  - endpoint added
- **2026-08-18** `baf6b00d7559`: 1 info
  - added the media type `application/json` for the response with the status `200`
- **2026-08-15** `9164f6763019`: 1 info
  - added the non-success response with the status `404`
- **2025-08-17** `14b27b584fd2`: 5 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `405`
  - added the non-success response with the status `406`
  - added the non-success response with the status `415`
  - …1 more
- **2025-08-16** `a8593ed8df83`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/frikanalen/apis/frikanalen-django-api/changes/api/csrf/get.md)

---

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