Skip to main content
Version: 1.14.2

4. Get Access Data

To work with OMNI Platform, the user needs to have credentials to sign in the web interface, the Platform URL, and the API access token. How to obtain this information is described below.

4.1. Get User Password and Email

The user password and email can be found in platform.secrets.json platform configuration file in the platform-user-secret.default_email and platform-user-secret.default_password fields, respectively.

4.2. Get URL of Deployed Server

OMNI Platform deployment domain is specified in platform.values.yaml file in ingress.rules.gateway.host field.

As a result, access to the Platform can be obtained by URL: http://<ingress.rules.gateway.host>

For example: http://platform.com

4.3. Get Access Token

To get API access token for a user, run the command below:

$ ./cli.sh platform get-token - <platform_url> <user email>

You can also open OMNI Platform web-interface in web browser using URL from the previous section. Sign in to OMNI Platform using the user credentials, follow the Platform API link in Resources panel of the home page, and submit the following request in GraphQL console:

query{
me {
workspaces {
accesses {
id
}
}
}
}

As a result, GraphQL returns the response with access token:

{
"data": {
"me": {
"workspaces": [
{
"accesses ": [
{
"id": "3460a***"
}
]
}
]
}
}
}

API access token is given in id field.