User API

Read the profile of the account that owns the token.

Required Role: any token role. This endpoint is read-only; the API has no endpoint that updates a profile.

Endpoints

GET/api/v1/user

Get the current user's profile information.

Example Request

curl -H "Authorization: Bearer lp_your_token" \
     https://lynxprompt.geiser.cloud/api/v1/user

Response

{
  "user": {
    "id": "clw2m8k0x0001abcd",
    "email": "[email protected]",
    "name": "John Doe",
    "display_name": "jdoe",
    "persona": "fullstack",
    "skill_level": "intermediate",
    "stats": {
      "blueprints_count": 12
    },
    "created_at": "2024-06-15T10:30:00.000Z"
  }
}

Response Fields

FieldTypeDescription
userobjectThe profile, wrapped in a user object
user.idstringUnique user identifier
user.emailstringEmail address of the account
user.namestring | nullName from the sign-in provider
user.display_namestring | nullDisplay Name set in Settings
user.personastring | nullDeveloper persona chosen in the wizard
user.skill_levelstring | nullSkill level chosen in the wizard
user.stats.blueprints_countnumberNumber of blueprints the user owns
user.created_atstringISO 8601 timestamp of account creation

Use Cases

  • •Verify your API token is working correctly
  • •Check your account details before making API calls
  • •Display user information in third-party integrations