API REFERENCE
Users
People with an active membership in the member groups of your organization that your credentials can see. By
default the list returns members only; set persona=admin to list administrators. Use these operations to keep
an HR roster or directory in step with BetterUp, or to look up the person behind an ID that another resource
returns.
GET /partner/accounts/users
List all users
Returns a paginated list of users within your organization.
Requires any one of
api:partner:accounts:read api:partner:accounts:write
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| page | integer | optional | Page number for pagination |
| per_page | integer | optional | Records per page |
| persona | string (enum) | optional | Filter users by role type. Returns members by default. Allowed values
|
Responses
| Status | Reason | Schema |
|---|---|---|
| 200 | OK | object |
| 403 | Forbidden | Errors |
Response fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | optional | |
| data | Accounts.User[] | optional | |
| data[].id | string | required | |
| data[].email | string (email) | required | |
| data[].first_name | string | required | |
| data[].kind | string | required | |
| data[].last_name | string | required | |
| data[].related_links | object | required | |
| data[].related_links.self | string | required | |
| pagination_metadata | PaginationMetadata | optional | Pagination metadata for the response. |
| pagination_metadata.next_page_params | map<string, any> | null | required | Query params for the next page. Merge them into the params of this request. Null on the last page. |
| pagination_metadata.next_page_url | string | null | required | |
| pagination_metadata.page | integer | required | |
| pagination_metadata.per_page | integer | required | |
| pagination_metadata.previous_page_params | map<string, any> | null | required | Query params for the previous page. Merge them into the params of this request. Null on the first page. |
| pagination_metadata.previous_page_url | string | null | required | |
| pagination_metadata.total_records | integer | null | required |
Example request
curl -X GET "https://api.betterup.co/partner/accounts/users" \
-H "Authorization: Bearer <access_token>"Example response
{
"url": "<url>",
"data": [
{
"id": "<id>",
"email": "<email>",
"first_name": "<first_name>",
"kind": "<kind>",
"last_name": "<last_name>",
"related_links": {
"self": "<self>"
}
}
],
"pagination_metadata": {
"next_page_params": {
"<key>": {}
},
"next_page_url": "<next_page_url>",
"page": 0,
"per_page": 0,
"previous_page_params": {
"<key>": {}
},
"previous_page_url": "<previous_page_url>",
"total_records": 0
}
}GET /partner/accounts/users/{id}
Show a specific user
Returns the profile details for a single user within your organization.
Requires any one of
api:partner:accounts:read api:partner:accounts:write
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | required | Unique identifier for the User |
Responses
| Status | Reason | Schema |
|---|---|---|
| 200 | OK | Accounts.User |
| 404 | Not Found | Errors |
Response fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | required | |
| string (email) | required | ||
| first_name | string | required | |
| kind | string | required | |
| last_name | string | required | |
| related_links | object | required | |
| related_links.self | string | required |
Example request
curl -X GET "https://api.betterup.co/partner/accounts/users/<id>" \
-H "Authorization: Bearer <access_token>"Example response
{
"id": "<id>",
"email": "<email>",
"first_name": "<first_name>",
"kind": "<kind>",
"last_name": "<last_name>",
"related_links": {
"self": "<self>"
}
}