Skip to main content

Generate bearer token

POST 

/nevisidm/api/principal/v1/token

Required permission(s): SelfAdmin Role

Generates a bearer JWT token for the currently authenticated caller user.

The caller must provide their loginId and password in the request body for verification. Only the 'password' grant type is supported. The username must match the loginId of the currently authenticated user.

The generated token can be used for subsequent requests that require elevated access to protected resource parameters (e.g., modifying email address or user status). Add the token to the X-Token header of the request.

Request

Body

required
    username string

    Login ID of the user requesting the token. Must match the loginId of the currently authenticated caller.

    password string

    Password of the user. Used to verify the caller's identity before issuing a token.

    grant_type string

    The grant type. Must be set to 'password'. No other grant types are supported.

Responses

Bearer token generated successfully

Response Headers
  • Cache-Control string

    no-store

  • Pragma string

    no-cache

Schema
    access_token string

    The generated JWT access token. Add this token to the X-Token header of subsequent requests to authenticate protected operations.

    token_type string

    Possible values: [bearer]

    Type of the token.

Loading...