openapi: 3.2.0 info: title: AI Gateway MCP Server Tokens API description: Universal MCP Gateway with OAuth integration - Modern Architecture version: 2.0.3290 tags: - name: Tokens paths: /api/tokens/{token_id}: delete: summary: Revoke Token description: 'Revoke/delete an MCP or ChatGPT token Token ID formats: - MCP tokens: mcp_{hash} (e.g., mcp_aaaeb567) - ChatGPT tokens: chatgpt_access_{hash} or chatgpt_refresh_{hash}' operationId: revoke_token_api_tokens__token_id__delete parameters: - name: token_id in: path required: true schema: type: string title: Token Id responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' tags: - Tokens components: schemas: HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array title: Detail type: object title: HTTPValidationError ValidationError: properties: loc: items: anyOf: - type: string - type: integer type: array title: Location msg: type: string title: Message type: type: string title: Error Type input: title: Input ctx: type: object title: Context type: object required: - loc - msg - type title: ValidationError