Create Credential
post/v1/vaults/{vault_id}/credentials?beta=true
Path parameters
vault_idstring required
Path parameter vault_id
Headers
anthropic-versionstring
anthropic-betastring
Request body
Example request
{
"auth": {
"type": "static_bearer",
"token": "bearer_exampletoken",
"mcp_server_url": "https://example-server.modelcontextprotocol.io/sse"
},
"display_name": "Example credential",
"metadata": {
"environment": "production"
}
}Response
Successful response (OK)
Example response
{
"type": "vault_credential",
"id": "vcrd_011CZkZEMt8gZan2iYOQfSkw",
"vault_id": "vlt_011CZkZDLs7fYzm1hXNPeRjv",
"display_name": "Example credential",
"metadata": {
"environment": "production"
},
"created_at": "2026-03-15T10:00:00Z",
"updated_at": "2026-03-15T10:00:00Z",
"archived_at": null,
"auth": {
"type": "static_bearer",
"mcp_server_url": "https://example-server.modelcontextprotocol.io/sse"
}
}