Member Activity Exports
Asynchronous CSV exports of member-level activity. Use them to load member activity into your warehouse in bulk: start an export with the fields you need, poll it until it completes, then download the file.
Create a Member Activity CSV export
Starts asynchronous generation of a Member Activity CSV containing exactly the requested fields, in the requested order, with the field keys as column headers. Poll the returned resource url until status is completed, then download the CSV from download_url. download_url stops being served at expires_at (30 days after the export is requested); the file is then removed and the export remains pollable with status deleted.
Requires any one of
api:partner:reporting:write
Request body
| Parameter | Type | Required | Description |
|---|---|---|---|
| export_type | string (enum) | required | Which Member Activity export to generate. current_program_activity: one row per member per current program. lifetime_activity_per_member: one row per member, aggregated across all programs. itemized_history: one row per member per program, all time. Allowed values
|
| fields | string (enum)[] | required | Ordered field keys to include as CSV columns; the generated CSV contains exactly these columns, headed by these keys, in this order. program_invitation_date is not available for lifetime_activity_per_member. |
Allowed values for fields
- programs
- product_access
- first_name
- last_name
- member_since
- title
- platform_language
- coaching_language
- geo
- level
- status
- last_engaged_date
- stalled_since
- days_stalled
- program_invitation_date
- access_end_date
- activated_date
- last_coaching_session_date
- next_scheduled_coaching_session_date
- total_completed_one_on_one_coaching_sessions
- total_completed_specialist_coaching_sessions
- total_completed_group_coaching_sessions
- total_completed_session_hours
- total_ai_interactions
- total_started_plans
- total_completed_plan_items
- total_completed_plans
- total_viewed_resources
- reflection_point_status
- last_reflection_point_completed_date
- total_reflection_points_completed
- last_wpa_completed_date
- manager_feedback_status
- manager_invited_date
- manager_email
- three_sixty_status
{
"export_type": "current_program_activity",
"fields": [
"programs"
]
}Responses
| Status | Reason | Schema |
|---|---|---|
| 201 | Created | Reporting.MemberActivityExport |
| 422 | Unprocessable Content | Errors |
Response fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | required | |
| completed_at | string (date-time) | null | required | When generation finished, if completed. |
| created_at | string (date-time) | required | When the export was requested. |
| download_url | string (url) | null | required | Expiring presigned link to the generated CSV; present only while status is completed. Links expire after at most one week — re-fetch this resource for a fresh link. |
| expires_at | string (date-time) | required | When the export expires — 30 days after it was requested. download_url is no longer served after this instant; the generated file is then removed by a daily cleanup and the export transitions to status deleted. |
| export_type | string (enum) | required | Which Member Activity export this is. Allowed values
|
| fields | string[] | required | The caller-pinned field keys; the CSV contains exactly these columns in this order. |
| kind | string | required | |
| related_links | object | required | |
| related_links.self | string | required | |
| status | string (enum) | required | Generation status. Poll until completed or failed; both are terminal. failed means generation retries were exhausted. deleted means the retention window elapsed and any generated file was removed. Allowed values
|
curl -X POST "https://api.betterup.co/partner/reporting/member_activity_exports" \
-H "Authorization: Bearer <access_token>" \
-H "Content-Type: application/json" \
-d '{
"export_type": "current_program_activity",
"fields": [
"programs"
]
}'{
"id": "<id>",
"completed_at": "<date-time>",
"created_at": "<date-time>",
"download_url": "<url>",
"expires_at": "<date-time>",
"export_type": "current_program_activity",
"fields": [
"<fields>"
],
"kind": "<kind>",
"related_links": {
"self": "<self>"
},
"status": "pending"
}Show a Member Activity CSV export
Poll target for an export. While status is pending or processing, keep polling. When status is completed, download_url holds an expiring presigned link to the CSV. download_url stops being served at expires_at (30 days after the export is requested); the file is then removed and the export shows status deleted.
Requires any one of
api:partner:reporting:read api:partner:reporting:write
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | required | Unique identifier for the Member Activity Export |
Responses
| Status | Reason | Schema |
|---|---|---|
| 200 | OK | Reporting.MemberActivityExport |
| 404 | Not Found | Errors |
Response fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | required | |
| completed_at | string (date-time) | null | required | When generation finished, if completed. |
| created_at | string (date-time) | required | When the export was requested. |
| download_url | string (url) | null | required | Expiring presigned link to the generated CSV; present only while status is completed. Links expire after at most one week — re-fetch this resource for a fresh link. |
| expires_at | string (date-time) | required | When the export expires — 30 days after it was requested. download_url is no longer served after this instant; the generated file is then removed by a daily cleanup and the export transitions to status deleted. |
| export_type | string (enum) | required | Which Member Activity export this is. Allowed values
|
| fields | string[] | required | The caller-pinned field keys; the CSV contains exactly these columns in this order. |
| kind | string | required | |
| related_links | object | required | |
| related_links.self | string | required | |
| status | string (enum) | required | Generation status. Poll until completed or failed; both are terminal. failed means generation retries were exhausted. deleted means the retention window elapsed and any generated file was removed. Allowed values
|
curl -X GET "https://api.betterup.co/partner/reporting/member_activity_exports/<id>" \
-H "Authorization: Bearer <access_token>"{
"id": "<id>",
"completed_at": "<date-time>",
"created_at": "<date-time>",
"download_url": "<url>",
"expires_at": "<date-time>",
"export_type": "current_program_activity",
"fields": [
"<fields>"
],
"kind": "<kind>",
"related_links": {
"self": "<self>"
},
"status": "pending"
}