Skip to content

Forbidden ​

Type: response

Description ​

Access denied. token-required requires an authenticated session; permission-denied means the caller cannot access this resource. On POS, session-expired requires signing in again.

TypeScript Definition ​

typescript
Forbidden: {{
            headers: {
                [name: string]: unknown;
            };
            content: {
                "application/json": {
                    code: string;
                    message: string;
                    success: boolean;
                    details?: string;
                };
            };
        };
        /** @description The request timed out. */
}

OpenAPI Schema ​

json
{
  "description": "Access denied. `token-required` requires an authenticated session; `permission-denied` means the caller cannot access this resource. On POS, `session-expired` requires signing in again.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "required": [
          "code",
          "message",
          "success"
        ],
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string",
            "x-speakeasy-error-message": true
          },
          "success": {
            "type": "boolean"
          },
          "details": {
            "type": "string"
          }
        }
      }
    }
  }
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: