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

# Revoke a token

> RFC 7009 revocation with one client authentication method (Basic or form). A refresh token revokes its renewable credential and all its access tokens. An access token revokes only itself. Unknown, foreign-client and already revoked tokens return 200 without affecting other credentials. Durable consent remains until explicit authorization disconnect.



## OpenAPI

````yaml /openapi/v3.json post /v3/link/revoke
openapi: 3.1.0
info:
  title: OFAuth API
  version: 1.0.0
  description: >-
    OFAuth V3 API for linking accounts, making OnlyFans API requests, and
    receiving events.
  contact:
    email: support@ofauth.com
    url: https://ofauth.com/
servers:
  - url: https://api.ofauth.com
security:
  - ExternalOAuth: []
tags:
  - name: Link
    description: Link accounts, get and refresh tokens, and end access.
  - name: Linked accounts
    description: The linked accounts of one authorization, and their settings.
  - name: Access
    description: Make OnlyFans API requests for a linked account.
  - name: Analytics
    description: 'Access: charts, rankings, and performance data.'
  - name: Earnings
    description: 'Access: earnings charts, transactions, and chargebacks.'
  - name: Messages
    description: 'Access: messaging, chats, queue, and mass messaging.'
  - name: Posts
    description: 'Access: create, edit, list, and manage posts.'
  - name: Promotions
    description: 'Access: promotions, trials, and bundles.'
  - name: Users
    description: 'Access: user profiles, subscriptions, and actions.'
  - name: Vault
    description: 'Access: vault folders, media, and management.'
  - name: Upload
    description: 'Access: media upload and processing.'
  - name: Self
    description: 'Access: linked account profile and settings.'
  - name: Stories
    description: 'Access: stories listing and management.'
  - name: Subscriptions
    description: 'Access: subscription offers, discounts, and management.'
  - name: Realtime
    description: Webhook event formats, including OnlyFans activity events.
externalDocs:
  description: OFAuth Developer Documentation
  url: https://docs.ofauth.com
paths:
  /v3/link/revoke:
    post:
      tags:
        - Link
      summary: Revoke a token
      description: >-
        RFC 7009 revocation with one client authentication method (Basic or
        form). A refresh token revokes its renewable credential and all its
        access tokens. An access token revokes only itself. Unknown,
        foreign-client and already revoked tokens return 200 without affecting
        other credentials. Durable consent remains until explicit authorization
        disconnect.
      operationId: linkRevoke
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                token:
                  type: string
                token_type_hint:
                  type: string
                  enum:
                    - access_token
                    - refresh_token
                client_id:
                  type: string
                client_secret:
                  type: string
                resource:
                  type: string
                  description: >-
                    Not needed. Accepted only for OAuth client libraries that
                    always send a resource indicator (RFC 8707): it must equal
                    `https://api.ofauth.com/v3` and is not stored.
                  format: uri
              required:
                - token
      responses:
        '200':
          description: The token is revoked or was already invalid.
          headers:
            Cache-Control:
              schema:
                type: string
                example: no-store
              required: true
            Pragma:
              schema:
                type: string
                example: no-cache
              required: true
        '400':
          description: '`invalid_request` (RFC 7009 section 2.2.1).'
          headers:
            Cache-Control:
              schema:
                type: string
                example: no-store
              required: true
            Pragma:
              schema:
                type: string
                example: no-cache
              required: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinkOAuthError'
        '401':
          description: '`invalid_client`: missing or wrong client credentials.'
          headers:
            Cache-Control:
              schema:
                type: string
                example: no-store
              required: true
            Pragma:
              schema:
                type: string
                example: no-cache
              required: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinkOAuthError'
        '429':
          description: '`rate_limited`.'
          headers:
            Cache-Control:
              schema:
                type: string
                example: no-store
              required: true
            Pragma:
              schema:
                type: string
                example: no-cache
              required: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinkOAuthError'
      security:
        - ClientSecretBasic: []
        - {}
components:
  schemas:
    LinkOAuthError:
      type: object
      properties:
        error:
          type: string
          enum:
            - invalid_request
            - invalid_client
            - invalid_grant
            - invalid_scope
            - invalid_target
            - unauthorized_client
            - unsupported_grant_type
            - rate_limited
            - server_error
          description: RFC 6749 section 5.2 error code.
        error_description:
          type: string
          example: request rejected
        reason:
          type: string
          description: Present when the client lifecycle blocks the grant.
          example: security_suspended
        recovery:
          type: object
          properties:
            action:
              type: string
          required:
            - action
      required:
        - error
  securitySchemes:
    ExternalOAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: Link access token for one Sandbox, Test, or Live authorization.
    ClientSecretBasic:
      type: http
      scheme: basic
      description: >-
        Client ID and client secret (`client_secret_basic`, RFC 6749 section
        2.3.1).

````

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