Create API and MCP tokens

Prev Next

A user token lets a script, a pipeline or an AI tool call Validatar as you: an API token for the REST API, an MCP token for the Validatar MCP server. You create both on the Tokens page of your user profile.

Applies to: Validatar Cloud · Validatar Server

What each token type is for

Type Use it for Limits you can set
API The REST API: CI/CD pipelines, orchestration tools, scripts Projects, scopes, IP addresses
MCP The Validatar MCP server: Claude Code, Cursor, GitHub Copilot, the Agent Kits and other MCP clients Read-only tools, writable tools, IP addresses

A token acts as the user who created it and never gets more access than that user has. The limits on the token narrow it further. If that user is deactivated, the token stops working.

The Tokens page needs the Validatar API on your license. Without it, the page shows a note about the API add-on in place of the token list. Without the full API add-on, API tokens get the Execution scope only. Contact sales@validatar.com to add it.

Create an API token

  1. Click the user icon in the upper-right corner and select User Profile.
  2. Select Tokens on the left, then click New Token.
  3. In Type, select API.
  4. Enter a Name. It must differ from the names of your other tokens.
  5. Optional: in Whitelisted IP Addresses, enter the addresses allowed to use the token, separated by commas. Use IPv4 addresses or CIDR ranges, for example 203.0.113.10, 198.51.100.0/24. Leave it blank to allow any address.
  6. Under Projects, select Allow access to all projects, or select Filter access to the following project(s) and choose projects. The list holds only projects you are a member of.
  7. Under Scopes, select Allow access to all scopes, or select Filter access to the following scope(s) and choose scopes (see Scopes).
  8. Click Save. The token appears, masked, in API Key.
  9. Click Unmask, then Copy, and store the token where your script or pipeline reads its secrets.

Send the token with every request in the x-val-api-token header. Authorization: Bearer works too.

x-val-api-token: <your-token>

The API Documentation link on the token page lists the endpoints in each scope. For pipeline examples, see CI/CD Pipeline Integrations.

Note: From 2026.1, a token's project filter applies to Global Admins as well. Before 2026.1, a Global Admin's token reached every project whatever the filter said, so a call that used to succeed can now fail. Add the project to the token, or switch it to Allow access to all projects.

Create an MCP token

  1. Click the user icon in the upper-right corner and select User Profile.
  2. Select Tokens on the left, then click New Token.
  3. In Type, select MCP.
  4. Enter a Name.
  5. Optional: enter Whitelisted IP Addresses, as for an API token.
  6. Under Read-only Tools and Writable Tools, choose what the token may call (see the table below).
  7. Click Save, then Unmask and Copy.

Your MCP client sends the token in the x-val-api-token header. Connecting to the Validatar MCP Server has the setup for each client.

Choice What the token can call
Allow access to all read-only tools / Allow access to all writable tools Every tool in that group, including tools added in later releases
Don't allow access to read-only tools / Don't allow access to writable tools No tool in that group
Filter access to the following read-only tool(s) / Filter access to the following writable tool(s) Only the tools you pick. Pick at least one, or the token does not save.

Read-only tools look things up and change nothing. Writable tools create or change objects in Validatar, or run tests and scripts. Validatar AI Tools Reference lists every tool and its group. A tool must also be allowed in Settings > Artificial Intelligence, where an AI Admin sets the same two lists for the whole instance.

An MCP token has no project or scope settings. The tools reach whatever your own project and data source permissions allow. Validatar logs each MCP request with the tool name and its inputs.

Scopes

Scopes decide which parts of the REST API an API token can call.

Scope Lets the token
Authoring Change tests, jobs and folders
Catalog Read metadata, custom fields and data lineage
Data Steward Change custom fields and data lineage
Execution Run tests and jobs
Reporting Run reports
Security Admin Create and remove users

A call outside the token's scopes fails with 403 and the message User token does not have '<scope>' scope., using the internal name: Explorer for Catalog, DataSteward for Data Steward and SecurityAdmin for Security Admin.

Manage, rotate and revoke your tokens

The Tokens page lists your tokens with their type, name, masked key (the last four characters show), access restrictions, last-accessed date, age in days and whether they are enabled. Select a token and use the toolbar:

  • Open to change its name, type, IP addresses, projects, scopes or tools. Changes apply from the token's next request.
  • Disable to stop the token without deleting it, and Enable to turn it back on.
  • Delete to remove it. Requests with a deleted token fail at once.

Tokens do not expire, and a token's value never changes. To rotate one, create a new token, switch your scripts or tools to it, then delete the old one. The Age (Days) column shows which tokens are due.

Treat a token like a password. Keep it in a secret store or an environment variable, never in a file you commit. Validatar records an event each time a token is created, changed, unmasked or deleted, and each time a request with a token fails to authenticate (see Events).

Manage everyone's tokens (administrators)

A Security Admin, which includes every Global Admin, sees all users' tokens at Settings > User Tokens. The list adds a User Name column. From there an administrator can open any token and change its name, type, IP addresses, projects, scopes or tools, disable or enable it, and delete it.

Administrators cannot unmask another user's token, and cannot create a token for someone else: New Token on this page opens a new token for your own account.

Troubleshooting

Symptom Cause Fix
401, or User session not found. The token is wrong, disabled or deleted, its user is inactive, or the request came from an address outside Whitelisted IP Addresses Check the header name and the token value. Check Enabled on the Tokens page and the IP list. The failed attempt appears as a User Token Authentication Failed event with the reason.
403 and User token does not have '<scope>' scope. The API token lacks that scope, or your license does not include the full API Add the scope to the token. If it is not offered, ask about the API add-on.
A call to one project fails while others work The project is not in the token's project filter, or you are not a member of it. From 2026.1 this applies to Global Admins too. Add the project to the token, or ask a project admin to add you to the project.
An MCP tool returns Tool not permitted by token The tool is not on the token's tool lists Open the token and allow the tool.
An MCP tool returns Usage of the <tool> tool has been denied by an AI Admin The tool is blocked for the whole instance Ask an AI Admin to allow it in Settings > Artificial Intelligence.
An MCP tool returns Missing Project access, Missing Data Source access or Missing Admin access Your own user lacks the permission the tool needs Ask an administrator for the permission. Validatar AI Tools Reference lists what each tool needs.

Related