API Guide
API GuideDeveloper Guide
  • Welcome to the API Guide
  • Getting Started
    • Introduction
    • Prerequisites
  • Authentication
  • Endpoint
    • Profile API
      • Get Customer Profile
      • Get Customer ID by phone number
    • Segment API
      • Listing Segments
      • Create new Segment
        • Upload file data for Segment
      • Export data Segment
      • Download exported Segment data
        • Check Segment exporting status
    • Event API
      • Get Event(s) List
      • Get Event History
    • Item API
      • Get Business Object(s) List
      • Get BO Attributes
      • Search Item
      • Explore Item
    • Promotion API
    • App Inbox API
      • Get Message Detail
      • Update Message
      • Count Message Unread
      • Mark All As Read
      • Get Message Performance
      • Get Catalog Performance
      • Get Destination
Powered by GitBook
On this page
  • Request
  • Body
  • Headers
  • Response
  1. Endpoint
  2. Segment API

Export data Segment

PreviousUpload file data for SegmentNextDownload exported Segment data

Last updated 6 months ago

POST http://api.ants.tech/access/api/segment/export

Request

Body

  • itemTypeId: Type to define the Customer segment or Visitor segment (-1003 for Customer segment, -1007 for Visitor segment)

  • delimiter

  • columns (*): Columns to be retrieved in the file. Please refer to the to have the list of the available columns.

{
    "itemTypeId": -1003,
    "delimiter": "comma",
    "columns": [
        "name",
        "customer_id",
        "interest_cate",
        "core_test_arr_string",
        "user_email",
        "email_verified",
        "email",
        "user_arr_str",
        "last_updated",
        "address",
        "user_key_values",
        "core_test_vcf"
    ],
    "segmentId": 5293856
}

Headers

Name
Description

Authorization*

Bearer <ACCESS_TOKEN>

Response

{
  "code": 200,
  "message": "Success",
  "data": {
    "entries": [
      {
        "exportId": 32300010
      }
    ],
    "meta": {
      "total": 1
    }
  },
  "codeMessage": null,
  "duration": "0.252 ms"
}
{
    "code": 301,
    "message": "Permission denied",
    "data": "You don't have permission to access this request!"
}
API Get BO Attributes