---
title: "Get CSRF token"
method: GET
path: "/portal/auth/csrf/"
tags: ["Direct SME Portal"]
---

# Get CSRF token

`GET /portal/auth/csrf/`

## Request

- Base URL: `https://docs.thredfi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.thredfi.com/portal/auth/csrf/`
- Auth: one of:
  - HTTP basic
  - HTTP bearer
  - HTTP bearer
  - none

Obtain a CSRF token for cross-origin requests. The token is also set as a cookie in the response.

## Response `200`

- object
  - `csrf_token` string

---

[API](https://skmtc.dev/thredfi/apis/thredfi-accounting-platform-api.md) - [All operations](https://skmtc.dev/thredfi/apis/thredfi-accounting-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/thredfi/apis/thredfi-accounting-platform-api/revisions/0c1918254db3?raw)
