Skip to documentation
DocumentationAPI referenceGet user profile
GETBearer token

Get user profile

/api/v1/user/profile

Read the authenticated user's public User profile and linked sign-in accounts.

Request example

cURL
curl "https://tovahub.com/api/v1/user/profile" \
  -H "Authorization: Bearer $TOVAHUB_TOKEN"

Examples only. No requests are sent from this page.

Illustrative response
JSON
{
  "_id": "507f1f77bcf86cd799439012",
  "teamId": "507f1f77bcf86cd799439013",
  "name": "Example user",
  "kind": "human",
  "language": "en",
  "createdAt": "2026-01-01T00:00:00.000Z",
  "email": {
    "address": "user@example.test",
    "verifiedAt": "2026-01-01T00:00:00.000Z",
    "hasPassword": true,
    "linkedAt": "2026-01-01T00:00:00.000Z"
  },
  "google": null,
  "github": null,
  "permissions": {
    "manageUsers": true,
    "consume": true,
    "releaseServers": true,
    "audit": false
  }
}

Parameters

No parameters.

Response

HTTP status 200

The authenticated user's public User document, returned directly.

_idstring (ObjectId)

User identifier.

teamIdstring (ObjectId)

The authenticated user's fixed team.

namestring | null

Public display name.

kindstring

User kind, human or ai.

languagestring

User interface language.

createdAtstring (ISO 8601)

User creation time.

emailobject | null

Linked email identity, if any.

email.addressstring

Email address.

email.verifiedAtstring (ISO 8601) | null

Email verification time.

email.hasPasswordboolean

Whether this email can sign in with a password.

email.linkedAtstring (ISO 8601)

Email link time.

googleobject | null

Linked Google identity, if any.

google.subjectstring

Google account subject.

githubobject | null

Linked GitHub identity, if any.

github.subjectstring

GitHub account subject.

github.usernamestring | null

GitHub username, if available.

permissionsobject

Current team's manageUsers, consume, releaseServers and audit permissions.