Skip to content

Behavior Notes

  • Endpoint path: /auth/user/me
  • Supports profile field updates including metadata (object or null).
  • Use metadata to store custom profile context for your app.

Update User Profile

PUT
/auth/user/me

Update the authenticated user's profile information. This is the recommended endpoint for updating user data. All fields are optional - only provided fields will be updated.

Authorizations

SessionAuth

Session ID for authenticated requests

Type
API Key (header: X-Session-ID)

Request Body

application/json
JSON
{
  
"name": "John",
  
"last_name": "Doe",
  
"user_name": "johndoe",
  
"phone": "+1234567890",
  
"dob": "1990-01-01",
  
"gender": "string",
  
"reference_id": "string",
  
"recovery_email": "string",
  
"tmz": "America/New_York",
  
"metadata": {
  
  
"additionalProperties": "string"
  
}
}

Responses

Profile updated successfully

application/json
JSON
{
  
"success": true,
  
"data": {
  
  
"user": {
  
  
  
"id": "usr_abc123",
  
  
  
"email": "user@example.com",
  
  
  
"name": "John",
  
  
  
"last_name": "Doe",
  
  
  
"user_name": "johndoe",
  
  
  
"user_type": "customer",
  
  
  
"picture": "https://storage.pubflow.com/users/usr_abc123/picture.jpg",
  
  
  
"phone": "+1234567890",
  
  
  
"is_verified": true,
  
  
  
"two_factor": false,
  
  
  
"created_at": "2025-12-07T10:00:00Z",
  
  
  
"updated_at": "2025-12-07T10:00:00Z"
  
  
}
  
}
}

Playground

Server
Authorization
Body

Samples

Powered by VitePress OpenAPI