Skip to main content
GET
/
auth
/
user
Get current user
curl --request GET \
  --url https://api.galtea.ai/auth/user \
  --header 'Authorization: Bearer <token>'
{
  "id": "user_123",
  "email": "user@example.com",
  "name": "John Doe",
  "role": "MEMBER",
  "organizationId": "org_123",
  "hasPassword": true,
  "hasGoogleId": true,
  "hasGithubId": true,
  "hasGitlabId": true,
  "hasSamlId": true,
  "analyticsConsent": null,
  "marketingConsent": false,
  "firstSignInAt": "2023-11-07T05:31:56Z",
  "latestSignInAt": "2023-11-07T05:31:56Z",
  "createdAt": "2023-11-07T05:31:56Z",
  "deletedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API key authorization. Pass your API key in the Authorization header as a Bearer token. Both new (gsk_*) and legacy (gsk-) API keys are accepted, e.g. Authorization: Bearer gsk_... or Authorization: Bearer gsk-....

Response

User retrieved successfully

id
string
Example:

"user_123"

email
string<email>
Example:

"user@example.com"

name
string | null
Example:

"John Doe"

role
enum<string> | null
Available options:
ADMIN,
OWNER,
MEMBER
Example:

"MEMBER"

organizationId
string
Example:

"org_123"

hasPassword
boolean

Whether the user has a password set

hasGoogleId
boolean

Whether the user has a linked Google account

hasGithubId
boolean

Whether the user has a linked GitHub account

hasGitlabId
boolean

Whether the user has a linked GitLab account

hasSamlId
boolean

Whether the user has a linked SAML account

Example:

null

Example:

false

firstSignInAt
string<date-time> | null
latestSignInAt
string<date-time> | null
createdAt
string<date-time>
deletedAt
string<date-time> | null