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 Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : Token
Type: object
Token
Show Source

304 Response

Not modified.

400 Response

Bad request.

403 Response

Forbidden.

500 Response

Internal server error.
Back to Top

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"
 }    
Back to Top