> ## Documentation Index
> Fetch the complete documentation index at: https://www.mill.fyi/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoke an OAuth token

> Revokes a token for the authenticated OAuth client. A successful response has an empty body.

Authenticate the OAuth client using its registered method: none, client\_secret\_basic or client\_secret\_post. Client credentials are distinct from a user's API key.

Revokes a token for the authenticated OAuth client. A successful response has an empty body.

[Request conventions](https://www.mill.fyi/api-reference/overview.md) · [API keys](https://www.mill.fyi/api-keys.md) · [MCP connections](https://www.mill.fyi/mcp-connections.md)


## OpenAPI

````yaml api-reference/openapi.json POST /oauth/revoke
openapi: 3.1.0
info:
  title: Mill HTTP API
  version: 1.0.6
  description: >-
    All registered task-board, account, OAuth, MCP transport and health
    operations. MCP tool schemas come from runtime validators; account
    operations follow their server handlers. Example data is fictional.
    Generation imports routes without issuing requests or connecting to a
    database.
servers:
  - url: https://mill-api.example.com
security: []
paths:
  /oauth/revoke:
    post:
      tags:
        - OAuth and MCP transport
      summary: Revoke an OAuth token
      description: >-
        Revokes a token for the authenticated OAuth client. A successful
        response has an empty body.


        Authenticate the OAuth client using its registered method: none,
        client_secret_basic or client_secret_post. Client credentials are
        distinct from a user's API key.
      operationId: post_oauth_revoke
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                client_id:
                  type: string
                client_secret:
                  type: string
                token:
                  type: string
                token_type_hint:
                  type: string
              required:
                - token
      responses:
        '200':
          description: >-
            Successful response. Examples are illustrative; field values vary by
            record.
        default:
          description: >-
            OAuth failure with error and error_description. Consent/session
            authority may also return the standard Mill error envelope.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  error_description:
                    type: string
      security:
        - oauthClientBasic: []
        - {}
components:
  securitySchemes:
    oauthClientBasic:
      type: http
      scheme: basic
      description: >-
        Registered OAuth client authentication, when client_secret_basic is
        selected

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.