---
title: "Gets an antiforgery token for the current user session. This endpoint is used by Blazor WASM to obtain tokens for state-changing operations. The token is both stored in a cookie and returned in the response for use in request headers."
method: GET
path: "/api/v1/antiforgery/token"
tags: ["Antiforgery"]
---

# Gets an antiforgery token for the current user session. This endpoint is used by Blazor WASM to obtain tokens for state-changing operations. The token is both stored in a cookie and returned in the response for use in request headers.

`GET /api/v1/antiforgery/token`

## Response `200`

Returns the antiforgery token

---

[API](https://skmtc.dev/q2developer/apis/q2-portal-web-server.md) · [All operations](https://skmtc.dev/q2developer/apis/q2-portal-web-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/q2developer/q2-portal-web-server/revisions/7225eea22612/schema)
