GET
/
users
/
me
curl --request GET \
  --url https://restapi.gputrader.io/v1/users/me \
  --header 'X-API-Key: <api-key>'
{
  "orgId": "<string>",
  "userId": "<string>",
  "userRole": "HOST",
  "sshKeys": [
    {
      "name": "<string>",
      "publicKey": "<string>",
      "createdAt": "2023-11-07T05:31:56Z"
    }
  ],
  "favoriteEnvIds": [
    "<string>"
  ],
  "stripeCheckoutSessionId": "<string>",
  "orgName": "<string>"
}

Authorizations

X-API-Key
string
header
required

Response

200
application/json
Successfully retrieved user profile
orgId
string

The organization identifier

userId
string

The user's Google identifier

userRole
enum<string>

The role of the user in the organization

Available options:
HOST
sshKeys
object[]

Array of SSH Keys

favoriteEnvIds
string[]

Array of favorite environment IDs

stripeCheckoutSessionId
string

The Stripe checkout session identifier

orgName
string

The name of the organization