Skip to content

reveata segments and notes

View as Markdown

Save filter sets as segments and pin notes to days on the charts from the command line.

On this page

Segments are saved sets of filters. Each person keeps their own, so any member can create them (segments:write). Use a segment's id with --segment on reveata stats, goals list and funnels results.

Notes pin a line of text to a day on the charts, for launches, campaigns or outages. The whole team sees them; adding, editing and deleting needs notes:write and the editor role.

Deleting needs --yes.

reveata segments list

Your saved segments and the ones shared with the team.

Use a segment with --segment on the stats, goals and funnels commands.

Options:

  • --site <id|domain>: Website id or domain (defaults to REVEATA_SITE, or a site key’s own website)

Calls GET /api/v1/websites/{website}/segments (segments:read).

bash
reveata segments list --site example.com

reveata segments create <name>

Save filters as a segment.

Filters: --filter dimension:operator:value (repeatable, ANDed; at least one filter or two --any). --any adds an "or" condition: visits matching any --any filter. --shared true shows it to everyone on the website.

Options:

  • --site <id|domain>: Website id or domain (defaults to REVEATA_SITE, or a site key’s own website)
  • --filter <dim:op:value>: Filter, e.g. country:is:DE (repeatable; separate alternatives with |)
  • --any <dim:op:value>: An "or" condition: visits matching any --any filter (repeat, at least two), ANDed with --filter
  • --shared <true|false>: Share the segment with everyone on the website (editors and above)

Calls POST /api/v1/websites/{website}/segments (segments:write).

bash
reveata segments create "Mobile DE" --site example.com --filter device:is:mobile --filter country:is:DE
reveata segments create "Paid traffic" --site example.com --filter channel:is:paid_search --shared true
reveata segments create "DE or paid" --site example.com --any country:is:DE --any channel:is:paid_search

reveata segments delete <segmentId>

Delete one of your segments.

Options:

  • --site <id|domain>: Website id or domain (defaults to REVEATA_SITE, or a site key’s own website)
  • -y, --yes: Confirm a delete, revoke, roll or removal (required; nothing is asked)

Calls DELETE /api/v1/websites/{website}/segments/{segmentId} (segments:write).

bash
reveata segments delete 6710a4c2e4b0a1b2c3d4e5f6 --site example.com --yes

reveata notes list

Notes pinned to days on the charts.

Options:

  • --site <id|domain>: Website id or domain (defaults to REVEATA_SITE, or a site key’s own website)
  • --from <YYYY-MM-DD>: Start day (implies --period custom)
  • --to <YYYY-MM-DD>: End day (implies --period custom)

Calls GET /api/v1/websites/{website}/notes (notes:read).

bash
reveata notes list --site example.com --from 2026-10-01 --to 2026-10-31

reveata notes add <YYYY-MM-DD> <text>

Pin a note to a day on the charts (editor role).

Options:

  • --site <id|domain>: Website id or domain (defaults to REVEATA_SITE, or a site key’s own website)

Calls POST /api/v1/websites/{website}/notes (notes:write).

bash
reveata notes add 2026-10-20 "Launched on Product Hunt" --site example.com

reveata notes update <noteId>

Change the day or text of a note (editor role).

Options:

  • --site <id|domain>: Website id or domain (defaults to REVEATA_SITE, or a site key’s own website)
  • --day <YYYY-MM-DD>: Day of the note on the charts
  • --text <text>: Text of the note

Calls PATCH /api/v1/websites/{website}/notes/{noteId} (notes:write).

bash
reveata notes update 6710a4c2e4b0a1b2c3d4e5f6 --site example.com --text "Relaunch"

reveata notes delete <noteId>

Delete a chart note (editor role).

Options:

  • --site <id|domain>: Website id or domain (defaults to REVEATA_SITE, or a site key’s own website)
  • -y, --yes: Confirm a delete, revoke, roll or removal (required; nothing is asked)

Calls DELETE /api/v1/websites/{website}/notes/{noteId} (notes:write).

bash
reveata notes delete 6710a4c2e4b0a1b2c3d4e5f6 --site example.com --yes

Was this helpful?