POST /api/v1/cloud/vaults
Creates a new Vault. A Vault is used to securely store credentials for MCP servers. Add credentials with Create a credential after creating the Vault.
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer $QODER_PAT |
Content-Type | Yes | application/json |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
display_name | string | Yes | Vault display name, maximum 255 characters |
metadata | object | No | Custom metadata |
Example request
Example response
HTTP 200 OKResponse fields
| Field | Type | Description |
|---|---|---|
id | string | Vault unique identifier with the vault_ prefix |
type | string | Always "vault" |
display_name | string | Vault display name |
metadata | object | Custom metadata |
credentials | array | Empty array for normal create requests |
archived_at | string | null | Archive time, or null when active |
created_at | string | Creation time (ISO 8601) |
updated_at | string | Last update time (ISO 8601) |
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 400 | invalid_request_error | Missing display_name, invalid display_name, invalid metadata, or too many inline credentials |
| 401 | TOKEN_INVALID | Missing or invalid authentication token |
Related
Authenticate with vaults
Store and inject secrets safely into agent sessions.