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

# Revoke the session

> Ends every channel session of this number, for example when the user writes "salir". Their user tokens stop working.

#### Authentication

`Authorization: Bearer <channel token>`, from `POST /api/v1/channel/token`. The user token is not accepted here.

#### Production

Available in test today. In production these calls go to `https://partners-api.kravata.co` with your mTLS client certificate; ask your Kravata point of contact before going live.

See the [WhatsApp channel guide](/stack/whatsapp-channel) for the full flow.



## OpenAPI

````yaml /stack/openapi.json post /api/v1/channel/whatsapp/session/revoke
openapi: 3.1.0
info:
  title: Kravata Stack API
  version: '2.0'
  description: >-
    Kravata Stack API: users, accounts, custody wallets, liquidity ramps and
    fiat payments.
servers:
  - url: https://test-api-kore.kravata.co
    description: Test
  - url: https://partners-api.kravata.co
    description: Production (mTLS + IP allowlist)
security:
  - bearerAuth: []
tags:
  - name: Authentication
  - name: Users
  - name: Accounts
  - name: Earn
  - name: Custody
  - name: Liquidity Ramps
  - name: Payments
  - name: Webhooks
  - name: Request Logs
  - name: WhatsApp Channel
    description: >-
      Endpoints for a company's own WhatsApp bot acting for one end user at a
      time. See the WhatsApp channel guide.
paths:
  /api/v1/channel/whatsapp/session/revoke:
    post:
      tags:
        - WhatsApp Channel
      summary: Revoke the session
      description: >-
        Ends every channel session of this number, for example when the user
        writes "salir". Their user tokens stop working.


        #### Authentication


        `Authorization: Bearer <channel token>`, from `POST
        /api/v1/channel/token`. The user token is not accepted here.


        #### Production


        Available in test today. In production these calls go to
        `https://partners-api.kravata.co` with your mTLS client certificate; ask
        your Kravata point of contact before going live.


        See the [WhatsApp channel guide](/stack/whatsapp-channel) for the full
        flow.
      operationId: channel-session-revoke
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - waId
              properties:
                waId:
                  type: string
                  description: >-
                    The user's WhatsApp number as WhatsApp sends it: country
                    code, no `+`.
                  example: '573001234567'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                required:
                  - revoked
                properties:
                  revoked:
                    type: integer
                    description: Number of sessions closed.
                    example: 1
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Access token from POST /api/v1/client/token.

````

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