Skip to content
Website API / Segments

List your segments

GEThttps://<your Reveata origin>/api/v1/websites/{website}/segments

The saved segments of the credential’s owner on this website, oldest first. Segments are personal: other members’ segments are not listed. Pass a segment id as segment to the analytics endpoints.

Related: Save a segment and Get a segment in Segments.

Try in playground

Request

Path parameters

websitestringrequired

Website id or domain, e.g. example.com

1–253 characters

Headers

Authorizationstringrequired

Bearer followed by an account token or an OAuth access token with the segments:read scope.

Response

Segments.

{
  "status": "string",
  "data": [
    {
      "id": "string",
      "siteId": "string",
      "userId": "string",
      "name": "string",
      "filters": [],
      "shared": true,
      "createdAt": "2026-01-01T00:00:00.000Z"
    }
  ]
}

Response fields

FieldTypeDescription
status"ok"
dataobject[]
data[].idstring
data[].siteIdstring
data[].userIdstring
data[].namestring
data[].filtersobject[]
data[].sharedboolean
data[].createdAtstring (date-time)