Partner API
Developer Reference
API REFERENCE

Member Attributes

The HR attribute fields that your organization has marked as filterable, such as country or job level. Use a member attribute's id as the id of a member_attributes filter entry on the reporting endpoints, to report on only the members who hold the attribute values you name. List a member attribute's values to get the value ids for the entry. exportable tells you whether the field is also a column in the member CSV downloads. With exportable=true, the list has only the fields that are filterable and exportable. A field that is exportable but not filterable is not listed.

GET /partner/reporting/member_attributes

list member attributes

Returns your organization's filterable member attributes, ordered by field_name. Pass a member attribute's id as the id of a member_attributes filter entry on the reporting endpoints.

Requires any one of api:partner:reporting:read api:partner:reporting:write

Query parameters

ParameterTypeRequiredDescription
pageintegeroptionalPage number for pagination
per_pageintegeroptionalRecords per page
exportablebooleanoptionaltrue returns only the fields that are also exportable; false returns only the fields that are not. Omit it to return every filterable field.

Responses

StatusReasonSchema
200OKobject
401UnauthorizedErrors
403ForbiddenErrors

Response fields

ParameterTypeRequiredDescription
urlstringoptional
dataReporting.MemberAttribute[]optional
data[].idstringrequired
data[].exportablebooleanrequiredWhether the field is also a column in the member CSV downloads.
data[].field_namestringrequiredThe name of the field in your organization's HR data. It is unique in your organization.
data[].kindstringrequired
data[].namestringrequiredThe display name of the field, or its field name when it has no display name.
data[].related_linksobjectoptional
pagination_metadataPaginationMetadataoptionalPagination metadata for the response.
pagination_metadata.next_page_paramsmap<string, any> | nullrequiredQuery params for the next page. Merge them into the params of this request. Null on the last page.
pagination_metadata.next_page_urlstring | nullrequired
pagination_metadata.pageintegerrequired
pagination_metadata.per_pageintegerrequired
pagination_metadata.previous_page_paramsmap<string, any> | nullrequiredQuery params for the previous page. Merge them into the params of this request. Null on the first page.
pagination_metadata.previous_page_urlstring | nullrequired
pagination_metadata.total_recordsinteger | nullrequired
Example request
curl -X GET "https://api.betterup.co/partner/reporting/member_attributes" \
  -H "Authorization: Bearer <access_token>"
Example response
{
  "url": "<url>",
  "data": [
    {
      "id": "<id>",
      "exportable": true,
      "field_name": "<field_name>",
      "kind": "<kind>",
      "name": "<name>",
      "related_links": {}
    }
  ],
  "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/reporting/member_attributes/{member_attribute_id}/values

list member attribute values

Returns the values that the members you can report on hold now for one member attribute, ordered by value. Pass a value's id in the value list of a member_attributes filter entry whose id is this member attribute. A member attribute that is not in your member attributes list returns 404.

Requires any one of api:partner:reporting:read api:partner:reporting:write

Path parameters

ParameterTypeRequiredDescription
member_attribute_idstringrequiredThe member attribute id, as the member attributes list returns it

Query parameters

ParameterTypeRequiredDescription
pageintegeroptionalPage number for pagination
per_pageintegeroptionalRecords per page

Responses

StatusReasonSchema
200OKobject
401UnauthorizedErrors
403ForbiddenErrors
404Not FoundErrors

Response fields

ParameterTypeRequiredDescription
urlstringoptional
dataReporting.MemberAttributeValue[]optional
data[].idstringrequired
data[].kindstringrequired
data[].related_linksobjectoptional
data[].valuestringrequiredThe attribute value, as it appears in your HR data.
pagination_metadataPaginationMetadataoptionalPagination metadata for the response.
pagination_metadata.next_page_paramsmap<string, any> | nullrequiredQuery params for the next page. Merge them into the params of this request. Null on the last page.
pagination_metadata.next_page_urlstring | nullrequired
pagination_metadata.pageintegerrequired
pagination_metadata.per_pageintegerrequired
pagination_metadata.previous_page_paramsmap<string, any> | nullrequiredQuery params for the previous page. Merge them into the params of this request. Null on the first page.
pagination_metadata.previous_page_urlstring | nullrequired
pagination_metadata.total_recordsinteger | nullrequired
Example request
curl -X GET "https://api.betterup.co/partner/reporting/member_attributes/<member_attribute_id>/values" \
  -H "Authorization: Bearer <access_token>"
Example response
{
  "url": "<url>",
  "data": [
    {
      "id": "<id>",
      "kind": "<kind>",
      "related_links": {},
      "value": "<value>"
    }
  ],
  "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
  }
}