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/userGet the current user's profile information.
Example Request
curl -H "Authorization: Bearer lp_your_token" \
https://lynxprompt.geiser.cloud/api/v1/userResponse
{
"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
| Field | Type | Description |
|---|---|---|
user | object | The profile, wrapped in a user object |
user.id | string | Unique user identifier |
user.email | string | Email address of the account |
user.name | string | null | Name from the sign-in provider |
user.display_name | string | null | Display Name set in Settings |
user.persona | string | null | Developer persona chosen in the wizard |
user.skill_level | string | null | Skill level chosen in the wizard |
user.stats.blueprints_count | number | Number of blueprints the user owns |
user.created_at | string | ISO 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