Access to the Metadata API is affected by user roles, tenant roles, tenant settings, and token scopes.
Changes to roles or tenant permissions may require **re-authentication and token regen
Changes to roles or tenant permissions may require **re-authentication and token regen
Getting Started with the Metadata API
Generate an Access Token
An access token is required for any request you send to the Metadata API.Before you proceed
Generating an access token requires giving it specific permissions regarding what it can access. Make sure to review available scopes before proceeding. Token Scopes ReferenceGive your access token a name
Access tokens can have different scopes, or permissions, defined. Giving each access token a recognizable name is important for you to quickly recognize which access tokens are created for specific purposes.
Select the expiry for your access token
By default, Xano will revoke your Metadata API access token after 7 days, which means if you need to access the API again, you would have to generate a new token.You can choose your own expiry duration; anything from 1 hour to never expire.
Define the scopes for your token
The scopes tell Xano what this token has access to. Each scope has 4 options:C (Create) - Determines whether or not this token can create new dataR (Read) - Determines whether or not this token can read existing dataU (Update) - Determines whether or not this token can update existing dataD (Delete) - Determines whether or not this token can delete data.Each scope has their own API endpoints associated with them. If you aren’t sure which scopes you need for this token, use the reference below for additional information.
HintYou can hover over each permission to quickly add or remove all four types of scope.

| Scope | Description |
|---|---|
| Database | Access any of the content in your Xano database |
| Content | Access any content outside of the database or function stacks, such as branches, data sources, and realtime |
| Live Data Source | Access the data inside of your currently live data source |
| API Groups | Access API Groups and APIs |
| Functions | Access custom functions |
| Addons | Access addons |
| Task | Access background tasks |
| Files | Access file storage |
| Request History | Access request history (requires Metadata API access and per-API request history enabled) |
Request History access depends on:
- Metadata API access
- Request History scope on the token
- Request History enabled on the specific API
- Tenant and role permissions
Using your Access Token in Requests
The token should be sent as a header in the following format:Using the Metadata API with Tenants
When Tenant Center is enabled, access to the Metadata API is governed by multiple layers of permissions:- User role (Admin, Read-only, etc.)
- Tenant role (Default or Custom Tenant Role)
- Tenant Center feature toggles
- Metadata API token scopes
- API-level settings (such as Request History)
Token scopes vs RBAC permissions
Metadata API access tokens define what actions a token may attempt. Whether a request succeeds is determined by RBAC, which evaluates:- The user’s role
- The tenant role
- Tenant Center settings
- A scope may appear disabled even though it is enabled on the token
- This indicates an RBAC restriction, not a token limitation
- This applies to both RBAC at a workspace level, and RBAC overrides on a tenant.
Revoking an Access Token
When you access the metadata API panel, you can review all of your currently issued tokens and their scopes. By choosing a token and clickingImportant: Token Authorization and Role Changes
If any of the following change after a token is issued:- User role
- Tenant role
- Tenant Center settings
- Metadata API access enablement
- Request History enablement
After changing roles or tenant permissions, generate a new Metadata API access token.
If a Metadata API option appears disabled when viewing a token, this reflects RBAC evaluation.
It does not necessarily mean the token was created without that scope.
Using the APIs
For more information on using the APIs, please see the following pages:Account API
The account API allows you access to various settings and information about your Xano account and instances.
Instance API
The instance API allows you access to your workspaces, including all contents contained within them, such as tables, APIs, and more.



