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

# Revoke a session

> Revoke an active session token



## OpenAPI

````yaml DELETE /platform/v1/sessions
openapi: 3.1.0
info:
  title: MoonPay
  version: 1.0.0
servers:
  - url: https://api.moonpay.com
    description: Production Environment
    variables: {}
  - url: https://api.moonpay.dev
    description: Sandbox Environment
    variables: {}
security: []
tags:
  - name: Assets
  - name: Quote
  - name: Customer
  - name: Identity
  - name: Transactions
paths:
  /platform/v1/sessions:
    delete:
      operationId: DevPlatform_revokeCustomerSessions
      parameters:
        - name: externalCustomerId
          in: query
          required: true
          description: The external customer identifier from your system.
          schema:
            type: string
          explode: false
      responses:
        '204':
          description: >-
            There is no content to send for this request, but the headers may be
            useful. 
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
        '401':
          description: Access is unauthorized.
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: number
                    enum:
                      - 401
                  type:
                    type: string
                  message:
                    type: string
                required:
                  - code
                  - type
                  - message
                unevaluatedProperties:
                  not: {}
      security:
        - SecretApiKeyInHeaderAuth: []
components:
  securitySchemes:
    SecretApiKeyInHeaderAuth:
      type: apiKey
      in: header
      name: X-Api-Key
      description: |-
        Secret key authentication via the `X-Api-Key` header.

        Example: `X-Api-Key: <secretKey>`

````