Create a vault
Vaults
Create a vault
Register a secrets provider for your organization.
POST
Create a vault
Registers a vault (a link between your organization and an external secrets provider) so an agent can sign in to the sites it works on without you passing the secrets through the API. Today the only provider is 1Password: you record which 1Password vault to read (
op_vault_id) and a service account token that grants access to it.
The token is validated against the provider before it is stored, and is never returned by any endpoint.
Returns 201 with the created vault object (see Retrieve for the full field list).
Request body
Human-readable label for the config.
Provider settings.
provider(string, optional): Secrets provider. Defaults toonepassword, the only supported value.op_vault_id(string, required): Identifier of the 1Password vault to read credentials from.
The 1Password service account token granting access to the vault. Write-only: validated before storage and omitted from every response.
Examples
Response
Errors
| Status | Cause |
|---|---|
409 | A vault with this name already exists in your organization. Names are unique per org. |
422 | Body failed validation, or the provider rejected the token (it could not access op_vault_id). |