---
updatedAt: 2025-11-11T22:56:01.000Z
agentTools:
  projectIndex: https://pegasus.digitalcomtech.com/llms.txt
---

# Log out

Destroy authentication token

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Pegasus Cloud IoT API",
    "description": "Pegasus IoT Cloud API reference documentation. [Github Repo](https://github.com/dctdevelop/pegasus) / [Release notes](https://github.com/dctdevelop/pegasus/tree/master/releases)",
    "contact": {
      "email": "developer@digitalcomtech.com"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "version": "1.0.12"
  },
  "servers": [
    {
      "url": "https://api.pegasusgateway.com",
      "description": "Production server"
    },
    {
      "url": "https://auth.pegasusgateway.com",
      "description": "Authentication server"
    }
  ],
  "tags": [
    {
      "name": "Authentication"
    }
  ],
  "paths": {
    "/logout": {
      "get": {
        "tags": [
          "Authentication"
        ],
        "summary": "Log out",
        "description": "Destroy authentication token",
        "operationId": "getLogout",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/responseLogout200"
                }
              }
            }
          }
        },
        "security": [
          {
            "apikeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "responseLogout200": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "example": "Session terminated"
          }
        }
      }
    },
    "securitySchemes": {
      "apikeyAuth": {
        "type": "apiKey",
        "name": "authenticate",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```