Profile API
The Profile API manages the authenticated user's profile information.
Endpoints
| Operation | Method | Endpoint |
|---|---|---|
| Get Profile | GET | /api/profile |
| Update Profile | PUT | /api/profile |
Get Profile
Returns the current authenticated user's profile and account information.
GET /api/profile
Response:
{
"profile": {
"id": "profile-uuid",
"userId": "user-uuid",
"firstName": "David",
"lastName": "Smith",
"avatar": "https://example.com/avatar.jpg",
"createdAt": "2026-01-01T10:00:00Z",
"updatedAt": "2026-03-15T14:30:00Z"
},
"user": {
"id": "user-uuid",
"email": "david@example.com",
"name": "David Smith"
}
}
Update Profile
PUT /api/profile
Content-Type: application/json
{
"firstName": "David",
"lastName": "Smith",
"avatar": "https://example.com/new-avatar.jpg"
}
All fields are optional — only provided fields are updated.
Response:
{
"profile": {
"id": "profile-uuid",
"userId": "user-uuid",
"firstName": "David",
"lastName": "Smith",
"avatar": "https://example.com/new-avatar.jpg",
"createdAt": "2026-01-01T10:00:00Z",
"updatedAt": "2026-03-26T10:00:00Z"
}
}
curl Examples
# Get profile
curl -X GET "https://console.rocketwavelabs.io/api/profile" \
-H "Cookie: appSession=YOUR_SESSION"
# Update profile
curl -X PUT "https://console.rocketwavelabs.io/api/profile" \
-H "Content-Type: application/json" \
-H "Cookie: appSession=YOUR_SESSION" \
-d '{"firstName": "David", "lastName": "Smith"}'
Related Topics
- Settings - Users — Team management and RBAC
- API Overview — Authentication and general API patterns