---
title: "Create a new private vault as a GitHub repository under the user's account. Requires the user to have completed the GitHub App install flow first."
method: POST
path: "/api/mcp/tools/vault_create"
tags: ["vaults"]
---

# Create a new private vault as a GitHub repository under the user's account. Requires the user to have completed the GitHub App install flow first.

`POST /api/mcp/tools/vault_create`

## Request

- Base URL: `https://api.ainote.dev`
- URL: `https://api.ainote.dev/api/mcp/tools/vault_create`
- Auth: API key in header `Authorization`

Create a new private vault as a GitHub repository under the user's account. Requires the user to have completed the GitHub App install flow first.

## Request body

- object
  - `name` string, required: Vault display name. The GitHub repo name (slug) is derived from it unless `slug` is given.
  - `slug` string: Optional explicit repo slug (ASCII lowercase-hyphen). Required when `name` has no ASCII letters or digits — e.g. a Korean-only name — because GitHub repo names are ASCII-only.
  - `description` string: Optional GitHub repo description.

## Response `200`

Tool executed successfully

- ToolSuccessResponse: Successful tool invocation. `content` mirrors the MCP `tools/call` result shape: an array of content blocks (text and optionally a structured resource payload).
  - `content` object[]
    - `type` 'text' | 'resource'
    - `text` string

## Other responses

- `400`: Invalid arguments or business-rule violation
- `401`: Missing or invalid McpKey

---

[API](https://skmtc.dev/ainote/apis/ainote-mcp-openapi-mirror.md) · [All operations](https://skmtc.dev/ainote/apis/ainote-mcp-openapi-mirror/llms.txt) · [OpenAPI document](https://skmtc.dev/ainote/apis/ainote-mcp-openapi-mirror/revisions/f6c91d85e027?raw)
