Skip to main content
POST
/
users
/
email-verification
Verify user's email and complete user registration.
curl --request POST \
  --url https://console.gmicloud.ai/api/v1/users/email-verification \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "otpCode": 321673
}'
{
  "id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
  "authToken": "eyJhbGciOiJIUzI1NiIsInR..."
}

Authorizations

Authorization
string
header
required

A token used to verify the validity of an email address. It must be included in the Authorization header when verifying the email address.

Body

application/json

The request body for email verification

otpCode
string
required

A one-time passcode (OTP) provided by the user for email verification.

  • Must be a numeric code.
Example:

321673

Response

User email successfully verified and user account is created.

id
string<uuid>
required

The user's ID.

Example:

"a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11"

authToken
string
required

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

Example:

"eyJhbGciOiJIUzI1NiIsInR..."