Authorization: Bearer <token>. Get it with the sign-in call (POST /api/customer-users/partner-login).mode:Filtered (default): every segment that matches search.All: every segment of your company.Selected: only the segments whose ids you give in ids.pageNumber and pageSize do not limit it.application/octet-stream, the text is UTF-8 and the file name looks like v2_segments_08_10_26__9_30.csv. The first line holds the column names, which are the fields of a segment (Id, Name, Description, ContactsCount and the others). Only ContactsCount is counted for the file; the gender, phone and e-mail counters are 0. Dates are in UTC and written as MM-dd-yyyy HH:mm:ss.OptedInContactsCount and NotOptedInContactsCount; both are 0 in the file.curl --location 'https://api.veloconnect.me/api/v2/segments/export' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"mode": "Filtered",
"search": "customers",
"sortBy": "name",
"sortDescending": false
}'Id,BusinessId,Name,Description,SourceType,IsDynamic,FilterDefinitionJson,CreatedAt,CreatedBy,ModifiedAt,ModifiedBy,ContactsCount,MaleCount,FemaleCount,UnspecifiedGenderCount,PhoneNumbersCount,EmailCount,OptedInContactsCount,NotOptedInContactsCount
57,1042,Yerevan customers,Customers who ordered in Yerevan in 2026,Manual,False,,10-01-2026 08:15:00,2087,,,248,0,0,0,0,0,0,0