Partner API
Developer Reference
API REFERENCE

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.

POST /partner/reporting/member_activity_exports

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

ParameterTypeRequiredDescription
export_typestring (enum)requiredWhich 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
  • current_program_activity
  • lifetime_activity_per_member
  • itemized_history
fieldsstring (enum)[]requiredOrdered 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
  • email
  • 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
Example request body
{
  "export_type": "current_program_activity",
  "fields": [
    "programs"
  ]
}

Responses

StatusReasonSchema
201CreatedReporting.MemberActivityExport
422Unprocessable ContentErrors

Response fields

ParameterTypeRequiredDescription
idstringrequired
completed_atstring (date-time) | nullrequiredWhen generation finished, if completed.
created_atstring (date-time)requiredWhen the export was requested.
download_urlstring (url) | nullrequiredExpiring 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_atstring (date-time)requiredWhen 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_typestring (enum)requiredWhich Member Activity export this is.
Allowed values
  • current_program_activity
  • lifetime_activity_per_member
  • itemized_history
fieldsstring[]requiredThe caller-pinned field keys; the CSV contains exactly these columns in this order.
kindstringrequired
related_linksobjectrequired
related_links.selfstringrequired
statusstring (enum)requiredGeneration 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
  • pending
  • processing
  • completed
  • failed
  • deleted
Example request
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"
  ]
}'
Example response
{
  "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"
}
GET /partner/reporting/member_activity_exports/{id}

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

ParameterTypeRequiredDescription
idstringrequiredUnique identifier for the Member Activity Export

Responses

StatusReasonSchema
200OKReporting.MemberActivityExport
404Not FoundErrors

Response fields

ParameterTypeRequiredDescription
idstringrequired
completed_atstring (date-time) | nullrequiredWhen generation finished, if completed.
created_atstring (date-time)requiredWhen the export was requested.
download_urlstring (url) | nullrequiredExpiring 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_atstring (date-time)requiredWhen 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_typestring (enum)requiredWhich Member Activity export this is.
Allowed values
  • current_program_activity
  • lifetime_activity_per_member
  • itemized_history
fieldsstring[]requiredThe caller-pinned field keys; the CSV contains exactly these columns in this order.
kindstringrequired
related_linksobjectrequired
related_links.selfstringrequired
statusstring (enum)requiredGeneration 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
  • pending
  • processing
  • completed
  • failed
  • deleted
Example request
curl -X GET "https://api.betterup.co/partner/reporting/member_activity_exports/<id>" \
  -H "Authorization: Bearer <access_token>"
Example response
{
  "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"
}