reveata team, keys and tokens
View as MarkdownInvite people and change their roles, create and revoke website API keys and account access tokens from the command line.
On this page
These commands manage who and what can reach your data. Team and site key commands need the admin role on the website; token commands act on your own account.
reveata teamlists members and pending invites, invites people, changes roles and removes members. The owner's role cannot change (transfer ownership in the dashboard), and you cannot change your own.reveata keysmanages a website's API keys (dt_site_…). A site key reads analytics and sends goals, payments and identify calls for that one website.reveata tokensmanages your account access tokens (dt_pat_…). A token can never create or edit a token with more permissions or websites than it has itself, so a read-only token cannot mint a stronger one.
A new secret is printed once (on standard output, with a reminder on standard error) and is never shown again: store it right away, or roll the key to get a new one. Removing, revoking and rolling need --yes, because the CLI never asks interactively.
reveata tokens list
Your account access tokens (dt_pat_…), masked.
No options beyond the global ones.
Calls GET /api/v1/access-tokens (tokens:read).
reveata tokens list
reveata tokens list --jsonreveata tokens create
Create an access token, never stronger than the token in use.
Pass --scope for each permission (e.g. analytics:read) and --website-id to limit it to websites (default: all). The secret is shown once. Needs the tokens:write scope.
Options:
--name <name>: Display name--scope <resource:access>: Permission, e.g. analytics:read (repeatable)--website-id <id>: Limit the token to this website (repeatable; default: all websites)
Calls POST /api/v1/access-tokens (tokens:write).
reveata tokens create --name Reports --scope analytics:read --scope goals:read
reveata tokens create --name "Shop backend" --scope payments:write --website-id 6710a4c2e4b0a1b2c3d4e5f6reveata tokens update <tokenId>
Rename a token or change its permissions (its value stays the same).
--scope replaces the permission list (repeatable).
Options:
--name <name>: Display name--scope <resource:access>: Permission, e.g. analytics:read (repeatable)
Calls PATCH /api/v1/access-tokens/{tokenId} (tokens:write).
reveata tokens update 6710a4c2e4b0a1b2c3d4e5f6 --scope analytics:readreveata tokens revoke <tokenId>
Revoke an access token; it stops working at once.
Options:
-y, --yes: Confirm a delete, revoke, roll or removal (required; nothing is asked)
Calls DELETE /api/v1/access-tokens/{tokenId} (tokens:write).
reveata tokens revoke 6710a4c2e4b0a1b2c3d4e5f6 --yesreveata team list
Members, their roles and pending invites (admin role).
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}/members (team:read) and GET /api/v1/websites/{website}/invites (team:read).
reveata team list --site example.com
reveata team list --site example.com --jsonreveata team invite <email>
Invite someone by email as viewer, editor or admin (admin role).
A new person takes a seat on the owner’s plan. Inviting again sends a fresh link.
Options:
--site <id|domain>: Website id or domain (defaults to REVEATA_SITE, or a site key’s own website)--role <role>: viewer, editor or admin
Calls POST /api/v1/websites/{website}/invites (team:write).
reveata team invite [email protected] --site example.com --role editorreveata team role <userId>
Change a member’s role (admin role).
The owner’s role and your own cannot be changed.
Options:
--site <id|domain>: Website id or domain (defaults to REVEATA_SITE, or a site key’s own website)--role <role>: viewer, editor or admin
Calls PATCH /api/v1/websites/{website}/members/{userId} (team:write).
reveata team role 6710a4c2e4b0a1b2c3d4e5f6 --site example.com --role adminreveata team remove <userId>
Remove a member from a website (admin role, or yourself).
They lose access at once, and site keys they created stop working.
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}/members/{userId} (team:write).
reveata team remove 6710a4c2e4b0a1b2c3d4e5f6 --site example.com --yesreveata team revoke-invite <inviteId>
Cancel a pending invite (admin 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}/invites/{inviteId} (team:write).
reveata team revoke-invite 6710a4c2e4b0a1b2c3d4e5f6 --site example.com --yesreveata keys list
Website API keys (dt_site_…), masked (admin role).
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}/site-keys (api_keys:read).
reveata keys list --site example.comreveata keys create <name>
Create a website API key; the secret is shown once (admin role).
A site key reads analytics and sends goals, payments and identify calls for this website only.
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}/site-keys (api_keys:write).
reveata keys create Backend --site example.com
reveata keys create CI --site example.com --jsonreveata keys roll <keyId>
Replace a site key’s secret; the old one stops working (admin 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 POST /api/v1/websites/{website}/site-keys/{keyId}/roll (api_keys:write).
reveata keys roll 6710a4c2e4b0a1b2c3d4e5f6 --site example.com --yesreveata keys revoke <keyId>
Revoke a site key; it stops working at once (admin 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}/site-keys/{keyId} (api_keys:write).
reveata keys revoke 6710a4c2e4b0a1b2c3d4e5f6 --site example.com --yes