---
title: "Revoke current token and generate a new one"
date: "2025-02-21T12:41:59+00:00"
summary: "Learn how to revoke and generate new API tokens with our step-by-step guide. Secure your API access effortlessly."
image:
type: "page"
url: "/web-governance/revoke-current-token-and-generate-new-one"
id: "01594a45-183f-41a8-ba64-c29a723b6869"
---

postApiUsersApiUserIdRevokeToken
--------------------------------

This article provides advanced instructions on how to revoke the current API token and generate a new one.

### Path Parameters

*   api\_user\_id required
    *   integer <int32>

### Responses

*   201 Revoke current token and generate a new one
    
        {
         "id": "string",
         "description": "string",
         "token": "string",
         "scopes": "string"
        }
    
*   403 Not authorized
    
        {
         "message": "string",
         "errors": "string"
        }
    
*   404 not found
    
        {
         "message": "string",
         "errors": "string"
        }