Logo
MicroStrategy REST API API Documentation

Create a new identity token

POST {{baseUrl}}/api/auth/identityToken

Create a new identity token. An identity token is used to share an existing session with another application, based on the authorization token for the existing session. An identity token allows the other application to log in on behalf of the authenticated user, creating a new authorization token. You obtain the authorization token needed to execute the request using POST /auth/login; you pass the authorization token in the request header.

 

Body PARAM

Key Datatype Required Description 
fields
null Comma-separated, top-level field whitelist that allows the client to selectively retrieve part of the response model. If specified, extra filtering is applied, and for top-level object (if root model is an array, each array element), only the listed fields are kept in the response. For example, "id,elements" keeps only the "id" field and whole "elements" array field, omitting all other fields in the top-level response model.



HEADERS

Key Datatype Required Description 
X-MSTR-AuthToken
string (Required) Authorization token




RESPONSES

status Created





Curl
curl -X POST 'baseUrl/api/auth/identityToken?fields=' -H 'X-MSTR-AuthToken: authToken'

ENDPOINTS