cURL
Vault
Create a Vault
Create a vault
cURL
Copy
curl --request POST \
--url 'https://{workspace_id}.{region}.maas.aliyuncs.com/api/v1/agentstudio/vaults' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '
{
"display_name": "生产环境密钥箱",
"metadata": {
"environment": "production"
}
}
'Copy
{
"id": "vlt_xxx",
"type": "vault",
"display_name": "生产环境密钥箱",
"metadata": {
"environment": "production"
},
"archived_at": null,
"created_at": "2026-06-20T10:00:00Z",
"updated_at": "2026-06-20T10:00:00Z"
}