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

# Revoke Client Token

> Revoke a client token immediately. The token travels in the request body, not the URL, so it stays out of access logs; only the minting vendor can revoke it.

See [Client tokens](/conversations/client-tokens).


## OpenAPI

````yaml post /v1/conversations/client_tokens/revoke
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.trychannel3.com
    description: Production
security: []
paths:
  /v1/conversations/client_tokens/revoke:
    post:
      tags:
        - v1
      summary: Revoke Client Token
      description: >-
        Revoke a client token immediately. The token travels in the request
        body, not the URL, so it stays out of access logs; only the minting
        vendor can revoke it.
      operationId: revoke_client_token_route_v1_conversations_client_tokens_revoke_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RevokeClientTokenRequest'
        required: true
      responses:
        '204':
          description: Successful Response
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationErrorBody'
        '402':
          description: Payment required
          content:
            application/json:
              examples:
                credits_exhausted:
                  summary: API key out of credits
                  value:
                    detail: >-
                      You have used all of your free credits. Add a payment
                      method to continue.
                mpp_challenge:
                  summary: MPP Tempo payment required
                  value:
                    detail: >-
                      Payment required. Satisfy the MPP Tempo challenge in
                      WWW-Authenticate.
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationErrorBody'
        '422':
          description: Request validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationErrorBody'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationErrorBody'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationErrorBody'
        '503':
          description: Client token service temporarily unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationErrorBody'
      security:
        - APIKeyHeader: []
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import Channel3 from '@channel3/sdk';

            const client = new Channel3({
              apiKey: process.env['CHANNEL3_API_KEY'], // This is the default and can be omitted
            });

            await client.conversations.clientTokens.revoke({ token: 'token' });
        - lang: Python
          source: |-
            import os
            from channel3_sdk import Channel3

            client = Channel3(
                api_key=os.environ.get("CHANNEL3_API_KEY"),  # This is the default and can be omitted
            )
            client.conversations.client_tokens.revoke(
                token="token",
            )
        - lang: Go
          source: "package main\n\nimport (\n\t\"context\"\n\n\t\"github.com/channel3-ai/sdk-go\"\n\t\"github.com/channel3-ai/sdk-go/option\"\n)\n\nfunc main() {\n\tclient := channel3go.NewClient(\n\t\toption.WithAPIKey(\"My API Key\"),\n\t)\n\terr := client.Conversations.ClientTokens.Revoke(context.TODO(), channel3go.ConversationClientTokenRevokeParams{\n\t\tRevokeClientTokenRequest: channel3go.RevokeClientTokenRequestParam{\n\t\t\tToken: \"token\",\n\t\t},\n\t})\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n}\n"
        - lang: CLI
          source: |-
            channel3 conversations:client-tokens revoke \
              --api-key 'My API Key' \
              --token token
components:
  schemas:
    RevokeClientTokenRequest:
      properties:
        token:
          type: string
          title: Token
      type: object
      required:
        - token
      title: RevokeClientTokenRequest
    ConversationErrorBody:
      properties:
        error:
          $ref: '#/components/schemas/ConversationError'
      type: object
      required:
        - error
      title: ConversationErrorBody
      description: Error envelope for all non-2xx ``/v1/conversations`` responses.
    ErrorResponse:
      properties:
        detail:
          anyOf:
            - type: string
            - items:
                additionalProperties: true
                type: object
              type: array
          title: Detail
      type: object
      required:
        - detail
      title: ErrorResponse
    ConversationError:
      properties:
        code:
          $ref: '#/components/schemas/TurnErrorCode'
        message:
          type: string
          title: Message
      type: object
      required:
        - code
        - message
      title: ConversationError
    TurnErrorCode:
      type: string
      enum:
        - invalid_request
        - unauthorized
        - insufficient_credits
        - conversation_not_found
        - turn_conflict
        - rate_limited
        - model_unavailable
        - token_not_found
        - service_unavailable
        - internal
      title: TurnErrorCode
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````