Skip to main content
GET
/
prod
/
segments
/
{idSite}
Get All Segments
curl --request GET \
  --url https://api.aimtell.com/prod/segments/{idSite} \
  --header 'X-Authorization-Api-Key: <api-key>'
[
  {
    "idsegment": 245,
    "owner": "76cedd11b19e",
    "name": "Sample Segment #1 - Lives In California",
    "definition": "region==California",
    "idSite": 179,
    "createdAt": "2015-12-28 17:54:42",
    "updatedAt": "2015-12-28 17:54:42",
    "deleted": 0
  },
  {
    "idsegment": 246,
    "owner": "76cedd11b19e",
    "name": "Sample Segment #2 - Viewed Tutorial Video",
    "definition": "eventCategory==video,eventAction==tutorial",
    "idSite": 179,
    "createdAt": "2015-12-28 17:54:42",
    "updatedAt": "2015-12-28 17:54:42",
    "deleted": 0
  },
  {
    "idsegment": 5909,
    "owner": "76cedd11b19e",
    "name": "Campaign for people who click certain links",
    "definition": "pageUrl==https://josephmurphybrasil.com/",
    "idSite": 179,
    "createdAt": "2017-01-02 18:50:54",
    "updatedAt": "2017-01-02 18:52:39",
    "deleted": 0
  }
]

Authorizations

X-Authorization-Api-Key
string
header
default:""
required

Path Parameters

idSite
string
required

Site ID

Response

200