Skip to main content

Export segment users API

Prerequisites

To use the APIs, you need to have a token. Tokens can be generated by an admin at the setting section in Filum CX platform. Ensure you have the necessary permissions to access the admin settings for token generation.

APIs

Access the APIs via the endpoint: https://api.filum.ai/

POST /external/segments/{segment_id}/users/export

Summary

Export Users from a Segment

Limitations:

  • Each export request is limited to a maximum of users defined by the system configuration.
  • Users are processed in batches for optimal performance.

Path Parameters

NameDescriptionRequiredSchema
segment_idThe unique identifier of the segment to exportYesUUID

Query Parameters

NameDescriptionRequiredSchema
custom_propertiesList of custom properties to include in the exportNo[ string ]

Examples for list-type parameters:

# Export users with custom properties 'Loyalty Points' and 'Last Purchase Date'
custom_properties=Loyalty Points&custom_properties=Last Purchase Date

Header Parameters

NameDescriptionRequiredSchema
authorizationThe authorization token to validate the request. The value must be in the format Bearer <your_api_token>Yesstring
organization-idThe unique identifier of your organizationYesstring
auth-typeThe type of authorization used for the request. In this case, the value must be tokenYesstring
acceptThe format of the exported file. Options are: text/csv, application/x-ndjsonYesstring

Responses

CodeDescriptionContent type
200Successful Responsetext/csv; charset=utf-16le or application/x-ndjson; charset=utf-16le
422Validation Errorapplication/json
500Internal Server Errorapplication/json

200 Successful Response

File Format Details:

  • The output file will be provided in either CSV or JSON format
  • The CSV file is encoded in UTF-16LE (Little Endian)
  • The CSV file starts with a UTF-16LE BOM (Byte Order Mark)
  • Fields in CSV format are tab-separated
  • Values containing special characters are enclosed in double quotes

The output file will provide the following information:

Default columns:

  • User ID
  • Name
  • Phone
  • Email

Custom property columns (varies based on requested custom properties):

  • Each custom property will have its own column with the property name as the column header

Sample columns for CSV format:

User IDNamePhoneEmail[Custom Property 1][Custom Property 2]...

Each row in the table will represent a unique user from the segment. The columns will contain the following information:

  • User ID: The unique identifier for the user
  • Name: The name of the user
  • Phone: The phone number of the user
  • Email: The email address of the user
  • Custom Property 1: Additional custom property requested in the query parameters, with its respective value
  • Custom Property 2: Additional custom property requested in the query parameters, with its respective value
  • ...