Upload Avatar
Uploads a custom avatar image for the authenticated user. This will prevent future automatic syncs from identity providers.
Required scopes: auth:account:edit
Authorization
BearerAuth JWT access token for internal API access. Requires 'private' scope for most endpoints, 'admin' scope for administrative operations.
In: header
Header Parameters
Define the version of the Connect protocol
1Define the timeout, in ms
Request Body
application/json
Raw avatar image bytes (max 2MB)
bytelength <= 2097152MIME type of the image
"image/png" | "image/jpeg" | "image/webp" | "image/gif"Response Body
application/json
application/json
curl -X POST "https://auth.xeonr.io/xeonr.auth.private.v1.AccountService/UploadAvatar" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"avatarUrl": "string"
}{
"code": "not_found",
"message": "string",
"details": [
{
"type": "string",
"value": "string",
"debug": {}
}
]
}Set Primary Email POST
Sets the primary email address for the authenticated user. The email must match one of the trusted emails from the user's existing connections. **Required scopes:** `auth:account:edit`
Verify MFA Enrollment POST
Confirms a pending org-account MFA enrollment by validating a TOTP code from the authenticator app, activates 2FA, and returns one-time recovery codes. Requires a recent login (step-up). **Required scopes:** `auth:account:edit`