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

# POST /v1/oauth/revoke



## OpenAPI

````yaml /generated/openapi.json post /v1/oauth/revoke
openapi: 3.1.0
info:
  description: >-
    Forwarding, management, portal and OAuth APIs generated from Rust types.
    Input and output schemas preserve their respective Serde contracts.
    Streaming events and WebSocket messages are documented alongside HTTP
    payloads.
  title: GPROXY HTTP API
  version: 4.2.1
servers: []
security:
  - bearer: []
  - anthropicKey: []
  - googleKey: []
  - queryKey: []
paths:
  /v1/oauth/revoke:
    post:
      tags:
        - OAuth
      summary: POST /v1/oauth/revoke
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Input_RevokeRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Input_RevokeRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  revoked:
                    type: boolean
                required:
                  - revoked
                type: object
          description: Success
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_OAuthErrorBody'
          description: OAuth error
      security: []
components:
  schemas:
    Input_RevokeRequest:
      description: RFC 7009 §2.1.
      properties:
        client_id:
          default: null
          description: >-
            When present, the token must belong to this client. A public client
            has

            no secret to prove with, so this cannot authorize a revocation — it
            can

            only refuse one, which is the direction that matters.
          type:
            - string
            - 'null'
        token:
          default: ''
          type: string
        token_type_hint:
          default: null
          description: >-
            `access_token` or `refresh_token`. A hint only: RFC 7009 §2.1
            requires

            the server to search the other kind anyway, so this is not used to

            narrow anything.
          type:
            - string
            - 'null'
      type: object
    Output_OAuthErrorBody:
      description: RFC 6749 §5.2's error body, which RFC 7009 and RFC 8628 reuse.
      properties:
        error:
          type: string
        error_description:
          type: string
      required:
        - error
        - error_description
      type: object
  securitySchemes:
    bearer:
      scheme: bearer
      type: http
    anthropicKey:
      in: header
      name: x-api-key
      type: apiKey
    googleKey:
      in: header
      name: x-goog-api-key
      type: apiKey
    queryKey:
      in: query
      name: key
      type: apiKey

````

## Related topics

- [POST /v1/oauth/token](https://gproxy.leenhawk.com/api-reference/oauth/post-v1oauthtoken.md)
- [POST /v1/oauth/authorize](https://gproxy.leenhawk.com/api-reference/oauth/post-v1oauthauthorize.md)
- [POST /v1/oauth/device/code](https://gproxy.leenhawk.com/api-reference/oauth/post-v1oauthdevicecode.md)
- [POST /admin/api/oauth-clients](https://gproxy.leenhawk.com/api-reference/management/post-adminapioauth-clients.md)
- [POST /admin/api/oauth-clients/{id}/retire](https://gproxy.leenhawk.com/api-reference/management/post-adminapioauth-clients-retire.md)


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