---
title: "Manage API tokens"
description: "API tokens let applications and integrations connect to the Wagtail API on behalf of a user account. Learn how to create, rename, and revoke them."
last_modified: "2026-11-12"
---
> Documentation Index
> Fetch the complete documentation index at: https://guide.wagtail.org/llms.txt
> Use this file to discover all available pages before exploring further.

Page URL: https://guide.wagtail.org/en/how-to-guides/manage-api-tokens/

# Manage API tokens

## On this page

- [About API tokens](https://guide.wagtail.org/en/how-to-guides/manage-api-tokens/#about-api-tokens)
  - [Use dedicated accounts for integrations](https://guide.wagtail.org/en/how-to-guides/manage-api-tokens/#use-dedicated-accounts-for-integrations)
- [View API tokens](https://guide.wagtail.org/en/how-to-guides/manage-api-tokens/#view-api-tokens)
- [Create an API token](https://guide.wagtail.org/en/how-to-guides/manage-api-tokens/#create-an-api-token)
- [Rename an API token](https://guide.wagtail.org/en/how-to-guides/manage-api-tokens/#rename-an-api-token)
- [Revoke an API token](https://guide.wagtail.org/en/how-to-guides/manage-api-tokens/#revoke-an-api-token)
- [Permissions for managing tokens](https://guide.wagtail.org/en/how-to-guides/manage-api-tokens/#permissions-for-managing-tokens)

API tokens let applications and integrations connect to the [Wagtail API](https://guide.wagtail.org/en/concepts/wagtail-api/) on behalf of a user account. You can create, rename, and revoke tokens from the [Admin interface](https://guide.wagtail.org/en/concepts/wagtail-interfaces/).

API tokens are only available when developers have enabled the Wagtail API on your site. It's also possible that the token management features in your Admin interface are different from the default features. This is because Wagtail is highly customizable. If this is the case, contact your web developer for more information.

## About API tokens

An API token is a secret key that an integration sends with each request to the API. Each token belongs to a user account, and the integration acts as that user, with exactly the same permissions as the user has in the Admin interface.

A few things to know about tokens:

- **A token is only shown once.** Wagtail only stores a scrambled version of each token, so nobody can view it again after creation, not even administrators.
- **Tokens start with** **`wagtail_`****.** This makes it easier for security tools to detect a token that's been shared by mistake, for example in a public code repository.
- **Revoking is immediate.** Once you revoke a token, the API stops accepting it for anything other than public content.

Warning

Treat API tokens like passwords. Anyone who has a token can read and change content with the permissions of the user it belongs to.

### Use dedicated accounts for integrations

Consider creating a dedicated user account for each integration rather than using someone's personal account. You can give that account only the permissions the integration needs, for example editing pages in a single section of the site. This also means you can revoke the integration's access without affecting a real person's account, and the [page history](https://guide.wagtail.org/en/how-to-guides/manage-pages/) clearly shows which changes were made by the integration.

To learn how to set up users and their permissions, see [Manage users and roles](https://guide.wagtail.org/en/how-to-guides/manage-users-and-roles/).

## View API tokens

Go to **Settings > API tokens** from the [Sidebar](https://guide.wagtail.org/en/how-to-guides/find-your-way-around/) to see the tokens you can manage. The listing shows the following columns for each token:

- **Token**: the first few characters of the token, to help you recognize it.
- **Name**: the label given to the token when it was created.
- **User**: the user account the token belongs to.
- **Created**: when the token was created.
- **Last used**: when an integration last used the token.
- **Revoked**: when the token was revoked, if it has been.

You can filter the listing by user, by creation date, by last used date, and by whether tokens are revoked. The **Last used** filter is useful to find tokens that haven't been used in a while and may no longer be needed.

Note that the last used date is updated periodically rather than on every request, so it may be slightly behind.

## Create an API token

To create an API token:

1. Go to **Settings > API tokens** from the [Sidebar](https://guide.wagtail.org/en/how-to-guides/find-your-way-around/).
2. Click **Add API token**.
3. Enter a **Name** that describes what the token is for, such as the name of the integration that will use it.
4. Select the **User** the token will belong to. The list only shows the users you're allowed to create tokens for.
5. Click **Create**.
6. Click **Copy token** to copy the token to your clipboard, and store it somewhere safe, such as a password manager, or share it securely with the person setting up the integration.

Make sure you copy the token before leaving this screen. It will never be shown again. If you lose it, revoke it and create a new one.

Congratulations! Your integration can now connect to the API with this token.

## Rename an API token

To rename a token, go to **Settings > API tokens** and click the token you want to rename. Change its **Name**, then click **Save**. You can't change the user a token belongs to, or the token itself.

The status side panel on this screen shows whether the token is *Active* or *Revoked*, and when it was last used.

## Revoke an API token

Revoke a token when an integration no longer needs access, when a token may have been shared with the wrong people, or when the person responsible for an integration leaves your organization.

To revoke a token:

1. Go to **Settings > API tokens** from the [Sidebar](https://guide.wagtail.org/en/how-to-guides/find-your-way-around/).
2. Click the **More options** (three dots) icon next to the token, then click **Revoke**. Alternatively, click the token to open it and click **Revoke** from the edit screen.
3. Click **Yes, revoke** to confirm.

Revoking can't be undone. If an integration needs access again, create a new token for it. Revoked tokens stay in the listing with the date they were revoked, so you keep a record of past access.

## Permissions for managing tokens

Administrators can give users the permission to manage API tokens through groups, from **Settings > Groups**. The *API token* permissions let users add, change, and delete (revoke) tokens:

- Users with these permissions can manage tokens that belong to their own account.
- To manage tokens for other users, they also need the permission to change users. Keep in mind that this permission also gives access to sensitive account features, such as resetting passwords and changing group membership.
- Tokens that belong to administrators can only be managed by other administrators.

The creation and revocation of every token is recorded in the [Site history report](https://guide.wagtail.org/en/concepts/reports/), so you can check who created or revoked a token and when.

*Last updated: November 12, 2026*


## Site Map

Here is a list of every page of this guide:

- [Wagtail user guide](https://guide.wagtail.org/en/markdown/): This documentation is written for anyone creating content or managing content production in Wagtail. It covers everything you can expect when using a standard Wagtail site.
    - [Getting started](https://guide.wagtail.org/en/getting-started/markdown/): Here are our step-by-step tutorials to learn Wagtail concepts.
        - [Overview](https://guide.wagtail.org/en/getting-started/overview/markdown/): If you're brand new to Wagtail, we recommend you go through our guides in sequence. Otherwise, you can click through the different categories below to learn more about different aspects of Wagtail.
    - [How-to guides](https://guide.wagtail.org/en/how-to-guides/markdown/): Use our guides to learn how to do a specific task in the CMS.
        - [Find your way around](https://guide.wagtail.org/en/how-to-guides/find-your-way-around/markdown/): This section describes the different pages that you will see as you navigate around the CMS, and how you can find the content that you are looking for.
        - [Manage pages](https://guide.wagtail.org/en/how-to-guides/manage-pages/markdown/): How to create, edit, copy, and manage pages in the Wagtail admin, including block-based editing, comments, privacy, history, and aliases.
        - [Manage documents](https://guide.wagtail.org/en/how-to-guides/manage-documents/markdown/): Documents such as PDFs can be managed from the Documents interface, available in the left-hand menu.
        - [Manage images](https://guide.wagtail.org/en/how-to-guides/manage-images/markdown/): If you want to edit, add or remove images from the CMS outside of the individual pages you can do so from the Images interface.
        - [Manage snippets](https://guide.wagtail.org/en/how-to-guides/manage-snippets/markdown/): Snippets allow you to create elements on a website once and reuse them in multiple places.
        - [Manage forms](https://guide.wagtail.org/en/how-to-guides/manage-forms/markdown/): Build and manage forms from the Wagtail admin without any technical expertise, and review the submissions they collect.
        - [Manage collections](https://guide.wagtail.org/en/how-to-guides/manage-collections/markdown/): Access to specific sets of images and documents can be controlled by setting up ‘collections’.
        - [Manage redirects](https://guide.wagtail.org/en/how-to-guides/manage-redirects/markdown/): A redirect ensures that when a page is no longer available (404), the visitor and search engines are sent to a new page.
        - [Manage users and roles](https://guide.wagtail.org/en/how-to-guides/manage-users-and-roles/markdown/): As an administrator, a common task will be adding, modifying or removing user profiles.
        - [Manage sites](https://guide.wagtail.org/en/how-to-guides/manage-sites/markdown/): Learn how to manage Wagtail sites: list, add, edit, copy, and delete the site configurations that map hostnames to your page tree.
        - [Configure workflows for moderation](https://guide.wagtail.org/en/how-to-guides/configure-workflows-for-moderation/markdown/): Workflows allow you to configure how moderation works on your site. Workflows are sequences of tasks, all of which must be approved before the workflow completes (by default, this results in the publication of the page, but depends on your site settings).
        - [Promote search results](https://guide.wagtail.org/en/how-to-guides/promote-search-results/markdown/): Promoted search results are an optional Wagtail feature. For details of how to enable them on a Wagtail installation, see Promoted search results.
    - [Concepts](https://guide.wagtail.org/en/concepts/markdown/): Wagtail has strong opinions about CMS best practices. This section describes why Wagtail works how it does from a user’s perspective.
        - [Wagtail interfaces](https://guide.wagtail.org/en/concepts/wagtail-interfaces/markdown/): A Wagtail interface is a screen in the Wagtail portal where you can manage a particular content type. The following are the several interfaces available to you in the Wagtail CMS.
        - [Pages](https://guide.wagtail.org/en/concepts/pages/markdown/): You can use Wagtail Pages to organize the content of your Wagtail websites. It's common for a typical website to have multiple web pages, and the web pages themselves can have several sections. The same is true for Wagtail pages.
        - [Reports](https://guide.wagtail.org/en/concepts/reports/markdown/): Reports are lists of pages that match a specific search. These lists give you an overview of the different actions taken on your website.
        - [Users status](https://guide.wagtail.org/en/concepts/users-status/markdown/): A Wagtail user can either be active or inactive. A user is active if they have the right permissions to log in and perform any action in the Admin interface.
        - [Page status](https://guide.wagtail.org/en/concepts/page-status/markdown/): Page status has to do with the current state of your pages. Your pages can be in one of seven different states.
        - [Accessibility features](https://guide.wagtail.org/en/concepts/accessibility-features/markdown/): An overview of the accessibility features built into the Wagtail admin interface, including navigation, keyboard support, and screen reader aids.
        - [Scheduled publishing](https://guide.wagtail.org/en/concepts/scheduled-publishing/markdown/): Schedule pages and snippets to go live at a specific date and time, and manage scheduled content revisions.
        - [Wagtail API](https://guide.wagtail.org/en/concepts/wagtail-api/markdown/): The Wagtail API lets other applications and integrations read, create, edit, and publish your content, with the same permissions and rules as the Admin interface.
    - [Reference](https://guide.wagtail.org/en/reference/markdown/): Our reference material gets to the point, giving the key information at a glance.
        - [Browser compatibility](https://guide.wagtail.org/en/reference/browser-compatibility/markdown/): For the best experience and security, we recommend that you keep your browser up to date.
        - [Content checks](https://guide.wagtail.org/en/reference/content-checks/markdown/): A built-in content quality checker system to meet high standards on accessibility, SEO, tone of voice, and any other aspect of content performance.
            - [Page metadata](https://guide.wagtail.org/en/reference/content-checks/page-metadata/markdown/): How Wagtail checks page metadata fields, including previews for search engines and other crawlers
        - [Account settings](https://guide.wagtail.org/en/reference/account-settings/markdown/): User account settings are specific to your account. Includes user preferences, notification settings, and more.
        - [Multi-site](https://guide.wagtail.org/en/reference/multi-site/markdown/): Reference for running multiple websites with Wagtail: how sites map hostnames to pages, and multi-site, multi-instance and multi-tenancy compared.
    - [Releases](https://guide.wagtail.org/en/releases/markdown/): Here are overviews of changes made to Wagtail in specific new releases.
        - [New in Wagtail 8.1](https://guide.wagtail.org/en/releases/new-in-wagtail-8-1/markdown/): Discover Wagtail 8.1: SEO metadata directly in content checks, better sitemaps for multilingual sites, and API v3 improvements
        - [New in Wagtail 8.0](https://guide.wagtail.org/en/releases/new-in-wagtail-8-0/markdown/): Discover Wagtail 8.0: the new v3 API to create, edit, and publish content programmatically, plus improvements to the site switcher, workflow details, and image handling.
        - [New in Wagtail 7.4](https://guide.wagtail.org/en/releases/new-in-wagtail-7-4/markdown/): Explore Wagtail 7.4: refined autosave, draft‑saving incomplete blocks, customizable listings, enhanced search, content checks, UI tweaks, and security fixes.
        - [New in Wagtail 7.3](https://guide.wagtail.org/en/releases/new-in-wagtail-7-3/markdown/): New features and other highlights from Wagtail 7.3: autosave, llms.txt, image performance
        - [New in Wagtail 7.2](https://guide.wagtail.org/en/releases/new-in-wagtail-7-2/markdown/): Highlights from the new admin features in Wagtail 7.2
        - [New in Wagtail 7.1](https://guide.wagtail.org/en/releases/new-in-wagtail-7-1/markdown/): Highlights from the new admin features in Wagtail 7.1
        - [New in Wagtail 7.0](https://guide.wagtail.org/en/releases/new-in-wagtail-7-0/markdown/): Highlights from the new admin features in Wagtail 7.0
        - [New in Wagtail 6.4](https://guide.wagtail.org/en/releases/new-in-wagtail-6-4/markdown/): Highlights from the new admin features in Wagtail 6.4
        - [New in Wagtail 6.3](https://guide.wagtail.org/en/releases/new-in-wagtail-6-3/markdown/): Highlights from the new admin features in Wagtail 6.3
        - [New in Wagtail 6.2](https://guide.wagtail.org/en/releases/new-in-wagtail-6-2/markdown/): Highlights from the new admin features in Wagtail 6.2
        - [New in Wagtail 6.1](https://guide.wagtail.org/en/releases/new-in-wagtail-6-1/markdown/): Highlights from the new admin features in Wagtail 6.1
        - [New in Wagtail 6.0](https://guide.wagtail.org/en/releases/new-in-wagtail-6-0/markdown/): Highlights from the new admin features in Wagtail 6.0
        - [New in Wagtail 5.2](https://guide.wagtail.org/en/releases/new-in-wagtail-5-2/markdown/): Highlights from the new admin features in Wagtail 5.2
        - [New in Wagtail 5.1](https://guide.wagtail.org/en/releases/new-in-wagtail-5-1/markdown/): Here are highlights from Wagtail 5.0. For more details, view the full v5.0 release notes.
        - [New in Wagtail 5.0](https://guide.wagtail.org/en/releases/new-in-wagtail-5-0/markdown/): Here are highlights from Wagtail 5.0. For more details, view the full v5.0 release notes.
        - [New in Wagtail 4.2](https://guide.wagtail.org/en/releases/new-in-wagtail-4-2/markdown/): With Wagtail 4.0, 4.1, and now 4.2 – we've added many substantial updates to the Wagtail page editor as well as some other tools that support every member of a content team.
        - [New in Wagtail 4.1](https://guide.wagtail.org/en/releases/new-in-wagtail-4-1/markdown/): With Wagtail 4.0 and 4.1, we've added many substantial updates to the Wagtail page editor as well as some other tools that support every member of a content team.
    - [About](https://guide.wagtail.org/en/about/markdown/): The User Guide is a website to help content editors, moderators, administrators, and other users learn how to use the Wagtail content management system (CMS).
        - [Privacy policy](https://guide.wagtail.org/en/about/privacy-policy/markdown/): What information the Wagtail User Guide collects when you visit or use the site, why we collect it, and who we share it with.
        - [Documentation formats](https://guide.wagtail.org/en/about/documentation-formats/markdown/): The user guide is available in different formats, for people and for their agents: web pages, Markdown, llms.txt, an agent skill, a Model Context Protocol server, WebMCP tools, and an API.
        - [Digital emissions](https://guide.wagtail.org/en/about/digital-emissions/markdown/): How we measure the Wagtail User Guide's carbon emissions, and the services the site relies on.
