Skip to content

Unauthorized ​

Type: response

Description ​

Authentication failed. Codes include token-required, token-expired and token_not_valid for an invalid or expired token.

TypeScript Definition ​

typescript
Unauthorized: {{
            headers: {
                [name: string]: unknown
}

OpenAPI Schema ​

json
{
  "description": "Authentication failed. Codes include `token-required`, `token-expired` and `token_not_valid` for an invalid or expired token.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "examples": [
              "Not authorized for given operation on the Resource."
            ],
            "x-speakeasy-error-message": true
          },
          "success": {
            "type": "boolean",
            "default": false
          },
          "code": {
            "type": "string",
            "examples": [
              "unauthorized"
            ]
          },
          "details": {
            "type": "string"
          }
        },
        "required": [
          "message",
          "success",
          "code"
        ]
      }
    }
  }
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: