Creates a Vault for centrally storing and managing Credentials. The request body carries the display name and optional metadata; the response returns the complete Vault object.
Prerequisites
Endpoint and authentication configured. For details, see API overview and authentication.
Endpoint
POST /vaults
Request bodydisplay_namestring (必选)Human-readable name of the Vault, 1-255 charactersmetadata object (可选)Custom key-value metadata for business use | Request example |
Response fieldsidstringVault ID, format vlt_xxxtype stringAlways vaultdisplay_name stringHuman-readable name of the Vaultmetadata objectCustom key-value pairsarchived_at string | nullArchive time; null if not archivedcreated_at stringCreation time, ISO 8601updated_at stringLast update time, ISO 8601 | Response |
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 400 | InvalidParameter | Required parameter missing or invalid. |
| 401 | InvalidApiKey | Invalid API-key provided. |