---
updatedAt: 2025-09-25T19:46:11.000Z
agentTools:
  projectIndex: https://developers.shine.fr/llms.txt
---

# Revoke a refresh token

Revoke a refresh token

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Authentication",
    "version": "2.0.0"
  },
  "paths": {
    "/authentication/oauth2/token/revoke": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "client_id": {
                    "description": "Application's client_id",
                    "type": "string"
                  },
                  "client_secret": {
                    "description": "Application's client_secret",
                    "type": "string"
                  },
                  "token": {
                    "description": "The refresh_token to revoke",
                    "type": "string"
                  }
                },
                "required": [
                  "client_id",
                  "client_secret",
                  "token"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Success"
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuth2ErrorResponse"
                }
              }
            }
          }
        },
        "security": [],
        "tags": [
          "OAuth2 Methods"
        ],
        "description": "Revoke a refresh token",
        "operationId": "revoke",
        "summary": "Revoke a refresh token",
        "x-shine-documentation-public": true
      }
    }
  },
  "security": [
    {
      "google_id_token": []
    }
  ],
  "x-components": {
    "requestBodies": {
      "BanOrUnbanTlsFingerprintsInput": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/BanOrUnbanTlsFingerprintsInput"
            }
          }
        },
        "required": true
      },
      "closeAccountBody": {
        "content": {
          "application/json": {
            "schema": {
              "additionalProperties": false,
              "properties": {
                "closeProof": {
                  "description": "If the account is closed by us on the user\\'s instruction, link to the intercom demand. Or uid of the user if an account has been created accidentally while changing phones.",
                  "type": "string"
                },
                "closeReason": {
                  "description": "Reason why we, or the user, close the account.",
                  "type": "string"
                },
                "operatorName": {
                  "type": "string"
                },
                "skipDelete": {
                  "type": "boolean"
                }
              },
              "required": [
                "closeReason",
                "operatorName"
              ],
              "type": "object"
            }
          }
        },
        "description": "Additional info"
      },
      "lockCompanyBody": {
        "content": {
          "application/json": {
            "schema": {
              "properties": {
                "lockedCustomMessage": {
                  "type": "string"
                },
                "lockedReason": {
                  "enum": [
                    "FRAUD_INVESTIGATION",
                    "APP_UPDATE_REQUIRED",
                    "TAKEOVER_ATTEMPT",
                    "COMPANY_SITUATION_UPDATE",
                    "COMPANY_ANOMALY",
                    "KYC_REFUSED",
                    "ACCOUNT_CLOSURE_REQUEST",
                    "UNDELIVERED_CARD",
                    "MISSING_INFORMATION",
                    "CUSTOM"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "lockedReason"
              ],
              "type": "object"
            }
          }
        },
        "description": "Additional info",
        "required": true
      }
    }
  },
  "x-google-endpoints": [
    {
      "allowCors": true,
      "name": "authentication-v2.endpoints.shine-163816.cloud.goog"
    }
  ],
  "servers": [
    {
      "url": "https://api.shine.fr/v2"
    }
  ],
  "components": {
    "securitySchemes": {
      "google_id_token": {
        "type": "oauth2",
        "x-google-issuer": "https://accounts.google.com",
        "flows": {
          "implicit": {
            "authorizationUrl": "/",
            "scopes": {}
          }
        }
      }
    },
    "schemas": {
      "OAuth2ErrorResponse": {
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "required": [
          "message"
        ],
        "type": "object"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```