---
updatedAt: 2026-10-06T17:40:47.000Z
agentTools:
  projectIndex: https://docs.akeyless.io/llms.txt
---

# /create-mcp-secret-bearer-token

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "contact": {
      "email": "support@akeyless.io",
      "name": "Akeyless",
      "url": "http://akeyless.io"
    },
    "description": "The purpose of this application is to provide access to Akeyless API.",
    "title": "Account Settings",
    "version": "3.0"
  },
  "paths": {
    "/create-mcp-secret-bearer-token": {
      "post": {
        "operationId": "createMcpSecretBearerToken",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/createMcpSecretBearerToken"
              }
            }
          },
          "required": true,
          "x-go-name": "Body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/createMcpSecretBearerTokenResponse"
          },
          "default": {
            "$ref": "#/components/responses/errorResponse"
          }
        },
        "tags": [
          "General"
        ],
        "x-docs-category": "Account Settings",
        "x-docs-group": "General",
        "x-generate-protobuf": "true"
      }
    }
  },
  "tags": [
    {
      "name": "General"
    }
  ],
  "x-readme": {
    "apply-tag-changes": true
  },
  "servers": [
    {
      "url": "https://api.akeyless.io"
    }
  ],
  "components": {
    "responses": {
      "createMcpSecretBearerTokenResponse": {
        "description": "",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/CreateSecretOutput"
            }
          }
        }
      },
      "errorResponse": {
        "description": "errorResponse wraps any error to return it as a JSON object with one \"error\"\nfield.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/JSONError"
            }
          }
        }
      }
    },
    "schemas": {
      "CreateSecretOutput": {
        "properties": {
          "name": {
            "type": "string",
            "x-go-name": "Name"
          }
        },
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client/commands"
      },
      "JSONError": {
        "properties": {
          "error": {
            "type": "string",
            "x-go-name": "Err"
          }
        },
        "title": "JSONError wraps an error with JSON object.",
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client"
      },
      "createMcpSecretBearerToken": {
        "properties": {
          "accessibility": {
            "default": "regular",
            "description": "for personal password manager",
            "type": "string",
            "x-go-name": "ItemAccessibilityString"
          },
          "ara-enabled": {
            "description": "Enable or disable Agentic Runtime Authority rule enforcement for this item.\nWhen false, user-defined input/output rules are stored but not enforced;\nthe base security validation still runs.\n\nAraEnabled is tri-state (nil/true/false), not a plain bool: it self-encodes\nits wire value (see akl.OptionalBool) so an explicit false survives the\ncurl-proxy relay instead of being dropped like a default-false bool flag.",
            "type": "boolean",
            "x-go-name": "AraEnabled",
            "nullable": true
          },
          "bearer-token": {
            "description": "Bearer token value",
            "type": "string",
            "x-go-name": "BearerToken"
          },
          "delete_protection": {
            "description": "Protection from accidental deletion of this object [true/false]",
            "type": "string",
            "x-go-name": "ObjectProtected"
          },
          "description": {
            "description": "Description of the object",
            "type": "string",
            "x-go-name": "Description"
          },
          "enable-agentic-runtime-authority": {
            "description": "EnableAra is the documented spelling of AraEnabled. Both set the same\nfield; --ara-enabled shipped first and stays as an undocumented alias\nso existing scripts and the Terraform provider keep working.",
            "type": "boolean",
            "x-go-name": "EnableAra",
            "nullable": true
          },
          "enable-ai-quorum": {
            "description": "Turns on AI Quorum checks for this item.",
            "type": "boolean",
            "x-go-name": "EnableAiQuorum",
            "nullable": true
          },
          "input-rule": {
            "description": "Agentic input rule in name=...,rule=... format (e.g. name=rule1,rule=Sanitize input)",
            "items": {
              "type": "string"
            },
            "type": "array",
            "x-go-name": "InputRules"
          },
          "json": {
            "default": false,
            "description": "Set output format to JSON",
            "type": "boolean",
            "x-go-name": "Json"
          },
          "max-versions": {
            "description": "Set the maximum number of versions, limited by the account settings defaults.",
            "type": "string",
            "x-go-name": "MaxVersions"
          },
          "metadata": {
            "description": "Deprecated - use description",
            "type": "string",
            "x-go-name": "Metadata"
          },
          "name": {
            "description": "Secret name",
            "type": "string",
            "x-go-name": "SecretName"
          },
          "output-rule": {
            "description": "Agentic output rule in name=...,rule=... format (e.g. name=rule1,rule=Mask secrets)",
            "items": {
              "type": "string"
            },
            "type": "array",
            "x-go-name": "OutputRules"
          },
          "protection_key": {
            "type": "string",
            "x-go-name": "ProtectionKey"
          },
          "tags": {
            "description": "Add tags attached to this object",
            "items": {
              "type": "string"
            },
            "type": "array",
            "x-go-name": "Tags"
          },
          "token": {
            "description": "Authentication token (see `/auth` and `/configure`)",
            "type": "string",
            "x-go-name": "Profile"
          },
          "uid-token": {
            "description": "The universal identity token, Required only for universal_identity authentication",
            "type": "string",
            "x-go-name": "UIDToken"
          },
          "url": {
            "description": "URL of the service",
            "type": "string",
            "x-go-name": "URL"
          }
        },
        "required": [
          "name"
        ],
        "title": "createMcpSecretBearerToken creates an MCP secret using Bearer Token authentication.",
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client/commands"
      }
    }
  }
}
```