Skip to content
Website API / Segments

Get a segment

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

One of your saved segments.

Related: List your segments and Save a segment in Segments.

Try in playground

Request

Path parameters

websitestringrequired

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

1–253 characters

segmentIdstringrequired

Pattern: ^[a-f0-9]{24}$

Headers

Authorizationstringrequired

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

Response

The segment.

{
  "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)