const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({display_name: 'Alice Chen', given_name: 'Alice', family_name: 'Chen'})
};
fetch('https://api.factify.com/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "usr_01h2xcejqtf2nbrexx3vqjhp41",
"email": "alice@factify.com",
"display_name": "Alice Chen",
"given_name": "Alice",
"family_name": "Chen"
}Update current user profile
Updates the authenticated user’s profile. Uses RFC 7396
(JSON Merge Patch) semantics: omitted fields are left
unchanged. display_name is required on every request and
cannot be cleared.
given_name and family_name accept null to clear. Empty
string is rejected with 422 — use null.
Email cannot be updated through this endpoint.
const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({display_name: 'Alice Chen', given_name: 'Alice', family_name: 'Chen'})
};
fetch('https://api.factify.com/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "usr_01h2xcejqtf2nbrexx3vqjhp41",
"email": "alice@factify.com",
"display_name": "Alice Chen",
"given_name": "Alice",
"family_name": "Chen"
}Documentation Index
Fetch the complete documentation index at: https://developers.factify.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication using a factapi-issued API key
(ffy_<env>_<base32_uuid><base62_random>). Cookie-based
sessions are accepted automatically by user-facing endpoints
but are not surfaced as an OpenAPI auth scheme.
Body
Request body for PATCH /v1/me. Optional nullable fields use
RFC 7396 merge-patch semantics: omit to leave unchanged, send
null to clear, send a value to set. display_name is
required on every request and cannot be cleared.
New display name. Required; empty string is rejected.
1 - 255"Alice Chen"
New given (first) name. Send null to clear. Empty
string is rejected — use null.
1 - 128"Alice"
New family (last) name. Send null to clear. Empty
string is rejected — use null.
1 - 128"Chen"
Response
OK
Profile of the authenticated user. Returned by GET /v1/me and PATCH /v1/me.
TypedID of the user.
"usr_01h2xcejqtf2nbrexx3vqjhp41"
User's email address.
"alice@factify.com"
Display name shown in the UI. Always present.
"Alice Chen"
Given (first) name. Null when unknown.
"Alice"
Family (last) name. Null when unknown.
"Chen"