Before you start
Use a developer or administrator API key with write authority for the same Workspace selected in the Console. A read-only viewer key cannot create a Vault or add credentials. API keys are Workspace-bound; changing a browser tab does not change a key’s Workspace. See API access and request conventions. These examples requirecurl, jq, and openssl.
1. Create the Vault
vlt_… ID for subsequent operations.
2. Add the appropriate credential
Credential creation is a protected human setup operation. It is not exposed as a model-facing MCP tool. Use the Vault credential creation endpoint in the Create a credential API reference:POST /v1/vaults/{vault_id}/credentials. Choose an auth variant for the service:
For limited networking,
allowed_hosts contains bare hostnames or IPv4 addresses,
not URLs. Consult the generated contract for validation, limits, refresh fields,
and injection locations before submitting a credential.
Submit real secrets from a trusted backend or protected local input. Do not put
them in a Session message, screenshot, repository, or example copied into an
issue. Credential responses omit secret material: a readback confirms metadata
and auth configuration, not the original token or secret value. Keep the source
secret in your own secure custody.
Use a separate stable idempotency key for each credential creation. If that
request has an uncertain outcome, retry its unchanged body with that key rather
than adding a duplicate credential. Do not assume that a stored token proves
provider authorization, renewal, or successful runtime use.
3. Confirm the Vault and select it
vault_ids array of their Session creation request.
Selecting a Vault in a draft does not create a Session. Check the Agent,
Environment, permission and runtime prerequisites before submitting the Session.
A saved Vault and a selected draft resource are setup evidence; successful
service access requires a qualified runtime and the actual tool or service flow.