Read a CSRF Token
get
/content/management/api/v1.1/token
Read a Cross-Site Request Forgery (CSRF) valid token.
Request
There are no request parameters for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
OK.
304 Response
Not modified.
400 Response
Bad request.
403 Response
Forbidden.
500 Response
Internal server error.
Examples
The following example shows how to read a Cross-Site Request Forgery (CSRF) valid token by submitting a GET request on the REST resource using cURL.
curl -X GET -H 'Accept: application/json' 'https://host:port/content/management/api/v1.1/token'
Example:
This reads a Cross-Site Request Forgery (CSRF) valid token.
/content/management/api/v1.1/token
Response Body
{ "token": "011e78fff3b13693814b39cb9377bd792cb5fa63" }