Skip to content

Get the latest export file for a given type.

Request

Returns metadata and a presigned download URL for the most recent export file of the specified type within the caller's program.

Valid type names: users, campaigns, activities.

Security
oauth2_as_a_server(Required scopes: data_exports.read) or oauth2_as_a_user(Required scopes: data_exports.read)
Path
type_namestringrequired

The export type. One of: users, campaigns, activities.

Enum:"users""campaigns""activities"
curl -i -X GET \
  'https://partner.socialchorus.com/v2/data_exports/type/{type_name}/latest' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Success

Bodyapplication/json
dataArray of objects
Response
{ "data": [ { … } ] }