Skip to main content

Get User Authentication Access Token

POST 

/api/v33.02/authenticate

x-prisma-cloud-target-env: {"permission":"none"}

Retrieves an access token using your username and password. By default, access tokens are valid for 30 minutes. You can set the validity period in Console under Manage > Authentication > Logon.

Note: The username and password values are case-sensitive.

cURL Request

Refer to the following example cURL command:

$ curl -k \
-H "Content-Type: application/json" \
-X POST \
-d \
'{
"username":"admin",
"password":"password"
}' \
https://<CONSOLE>/api/v<VERSION>/authenticate

Response

Refer to the following successful example response that returns the access token for use in other API endpoints:

{"token", "ACCESS_TOKEN_VALUE"}

Request

Body

    password string

    Password is the password used for authentication.

    token string

    Token is the Prisma JWT token used for authentication.

    username string

    Username is the username used for authentication.

Responses

AuthenticationResponse returns the result of calling the authentication endpoint

Schema
    token string

    Token is the new JWT token.

Loading...