Get a Valid CSRF Token for POST and PATCH Requests

Before being able to send POST or PATCH HTTP requests to the service, make sure you have a valid CSRF token first.

You can get a token by sending a GET request to <tenant-url>/api/v1/csrf, including the x-csrf-token: fetch header. The csrf token is then returned in the x-csrf-token response header.

Once you get the token, you can use it to send PATCH request to the service. The x-csrf-token:<token> header must be included in the request.

API Usage

URL

<tenant-url>/api/v1/csrf

Request Type

GET

Header Name

x-csrf-token:<token>

Header Value

fetch

Response

The CSRF token is returned in the x-csrf-token response header. This token can then be included in the post/patch request in the x-csrf-token:<token> header.