Get a single User
Changed on| ⚠️ This endpoint is currently in BETA |
|---|
Returns information about a single internal User, including name, primary email address, all email addresses, photo URL, account status, and account role.
The userId path parameter is the same identifier as the User's corresponding Person ID — every internal User has a matching Person record, and they share the same numeric ID. You can use a Person ID returned from any Persons endpoint here, and vice versa.
The emailAddresses and role properties are only returned to callers with the "Manage Users" permission.
Request
- Base URLhttps://api.affinity.co
- URLhttps://api.affinity.co/v2/users/{userId}
- AuthHTTP bearer
Path parameters
User ID
Response
OK
Example response
{
"id": 1,
"firstName": "Jane",
"lastName": "Doe",
"primaryEmailAddress": "jane.doe@acme.co",
"emailAddresses": [
"jane.doe@acme.co",
"janedoe@gmail.com"
],
"photoUrl": "https://assets.affinity.co/img/avatars/jane-doe.png",
"status": "active",
"role": "standard"
}Changes
- info
added
authenticationauthorizationbad-requestconflictmethod-not-allowednot-acceptablenot-foundnot-implementedrate-limitservertimeoutunprocessable-entityunsupported-media-typevalidationdiscriminator mapping keys to the/response property for the response status - info
added
bad-requestvalidationdiscriminator mapping keys to the/response property for the response status
- info