Skip to content
Website API / Segments

Save a segment

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

Saves a named set of filters for the credential’s owner (at most 3 per person per website; names are unique per person).

Related: List your segments 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:write scope.

Content-Typestringrequired

Send the body as JSON.

One of: application/json

Body fields

namestringrequired

1–60 characters

filtersobject[]required

1–10 items

sharedbooleanoptional

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)