Skip to main content
POST
/
me
/
auth-tokens
Create an auth token.
curl --request POST \
  --url https://console.gmicloud.ai/api/v1/me/auth-tokens \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "john_doe@example.com",
  "password": "john_doe_password"
}'
{
"authToken": "eyJhbGciOiJIUzI1NiIsInR...",
"is2FARequired": true
}

Body

application/json

The create session request body.

email
string
required

User's email address.

  • Must be a valid email format.
Example:

"john_doe@example.com"

password
string
required

User's password.

Example:

"john_doe_password"

Response

Successfully created an auth token for user.

authToken
string
required

A temporary token issued after the initial login step. This token is used in the create session API to exchange for access and refresh tokens.

Example:

"eyJhbGciOiJIUzI1NiIsInR..."

is2FARequired
boolean
required

Whether two-factor authentication (2FA) is required for the create session API. If true, the client must include an OTP code in the request body to complete the authentication.

Example:

true