> ## Documentation Index > Fetch the complete documentation index at: https://help.narmi.com/llms.txt > Use this file to discover all available pages before exploring further. # Get CSRF token > Appends `X-CSRFTOKEN` header to the response. Authentication required: - None or JWT: read from `applicant_token` key of cookie Security required: - None Returns: - Authenticated `X-CSRFTOKEN` if `applicant_token` cookie is provided, else - `X-CSRFTOKEN` used in unauthenticated requests eg `POST /account_opening/` How can we improve these docs? Share your feedback. ## OpenAPI ````json GET /v1/csrf/ { "openapi": "3.0.3", "info": { "title": "Narmi Account Opening API", "version": "v1 (main)", "description": "To read about the primary endpoints required for Online Account Opening and recommended usage, go to [Account Opening Usage](https://narmi.stoplight.io/docs/narmi-developer-docs/i365qm2g7lq69-account-opening-usage).", "termsOfService": "https://www.narmi.com/policies/developer-terms-conditions", "contact": { "name": "Narmi Support", "email": "support@narmi.com" } }, "servers": [ { "url": "https://api.sandbox.narmi.dev/", "description": "" } ], "tags": [ { "name": "account opening" }, { "name": "csrf" }, { "name": "products" }, { "name": "session" } ], "x-stoplight": { "id": "j1gfsrho7eeyd" }, "paths": { "/v1/csrf/": { "get": { "operationId": "GET CSRF Token", "description": "Appends `X-CSRFTOKEN` header to the response.\n\nAuthentication required:\n- None or JWT: read from `applicant_token` key of cookie\n\n\nSecurity required:\n- None\n\n\nReturns:\n- Authenticated `X-CSRFTOKEN` if `applicant_token` cookie is provided, else\n- `X-CSRFTOKEN` used in unauthenticated requests eg `POST /account_opening/`\n\n\n\nHow can we improve these docs? Share your feedback.", "summary": "Get CSRF token", "parameters": [ { "in": "query", "name": "format", "schema": { "type": "string", "enum": [ "json", "toon" ] } } ], "tags": [ "csrf" ], "responses": { "200": { "content": { "application/json": { "schema": { "X-CSRFTOKEN": { "description": "A valid CSRF token", "type": "string" } }, "examples": { "Application/json": { "value": { "success": true }, "summary": "application/json" } } }, "application/toon": { "schema": { "X-CSRFTOKEN": { "description": "A valid CSRF token", "type": "string" } }, "examples": { "Application/json": { "value": { "success": true }, "summary": "application/json" } } } }, "description": "OK" } }, "x-stoplight": { "id": "irxjx6zbdmh9v" } } } } } ````