Skip to main content

Create Admin Account

POST 

/api/v1/signup

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

Creates the initial admin user after Console is first installed.

Although this endpoint is supported, no backwards compatibility is offered for it.

cURL Request

The following cURL command creates the initial admin user with the username admin and password password.

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

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

Responses

Success Response: No response will return if the user creation is successful.

{"token", "ACCESS_TOKEN_VALUE"}

Error Response: An error response will return the following response if the initial sign up process was previously completed.

{"err":"system already initialized"}

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

OK

Loading...