REST API endpoints for Users
Get a user
Section titled “Get a user”/users/{userId} Authentication may enable this endpoint return more information.
Authenticated user can retrieve private information when the target user is the current authenticated user and has user:read scope.
userIdstringRequiredThe id or username of the user to retrieve.
Can be also @me for the current authenticated user.
This API endpoint returns standard API response format. The following fields are fields of the data object. Learn more
idstringRequiredThe unique identifier of the user.
namestringRequiredThe display name of the user.
usernamestringRequiredThe username of the user.
created_atstringRequiredISO 8601 timestamp of when the user was created.
rolestringRequiredThe role of the user. Can be user, moderator or admin.
avatar_urlstringThe URL of the user avatar.
biostringThe short bio of the user.
Modify a user
Section titled “Modify a user”/users/{userId} Can only update the current authenticated user.
Authentication is required.
Access token must have user:update scope.
userIdstringRequiredThe id or username of the user to retrieve.
Can be also @me for the current authenticated user.
Only the provided fields will be updated. To remove an optional field, set it to null.
namestringThe display name of the user.
Regex: /^[p{L}p{N} _-]+$/u
biostringThe short bio of the user.
This API endpoint returns standard API response format. The following fields are fields of the data object. Learn more
idstringRequiredThe unique identifier of the user.
namestringRequiredThe display name of the user.
usernamestringRequiredThe username of the user.
created_atstringRequiredISO 8601 timestamp of when the user was created.
rolestringRequiredThe role of the user. Can be user, moderator or admin.
avatar_urlstringThe URL of the user avatar.
biostringThe short bio of the user.