Skip to main content
GET
/
me
/
profile
Retrieve user's profile
curl --request GET \
  --url https://console.gmicloud.ai/api/v1/me/profile \
  --header 'Authorization: Bearer <token>'
{
  "user": {
    "id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
    "email": "john.doe@example.com",
    "firstName": "john",
    "lastName": "doe",
    "lastLoginAt": 1740557336,
    "lastLoginIDP": "google"
  },
  "organization": {
    "id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
    "role": "org_owner"
  }
}

Authorizations

Authorization
string
header
required

An access token used to authenticate a user and grant access to restricted APIs. It is issued by session APIs. For status codes related to this header, refer to the Common Headers Documentation.

Response

Successfully retrieved the user's profile.

user
object
required

Information about the user.

organization
object

Information about the organization the user belongs to. This field is omitted if the user does not belong to any organization.