Manage Secret Manager with the IBEE API
The IBEE API manages Secret Manager the way the portal does: enable it for a workspace, list and search secret names, read version history, change a secret’s settings, delete, undelete or destroy versions, and create or revoke app credentials. It never reads or writes a secret value. Values go only over the Vault API at your workspace’s address, with an app credential.
Before you begin
- An API token with Secret Manager → Read (
secret-manager.read) or Edit (secret-manager.write), and your workspace ID. - Every call is
https://api.ibee.ai/v1/secret-manager/…withworkspace_idas a query parameter andAuthorization: Bearer <token>. See Authentication. - The token acts as the person who created it. Each call checks the token’s scope and that person’s current role in the workspace and, for changes, the organization’s identity verification:
Every operation
{secret_path} is the path with plain slashes, for example /secret-manager/secret-metadata/payments/db; an encoded %2F is answered with a 307 redirect to the plain-slash path. Calls that touch the store (listing, search, metadata, history, version actions, delete) are billed as one operation each; status, operations, the name check and app credential calls aren’t. The full request and response schemas are in the API reference.
Secrets
List a folder
The answer has keys (the names in the folder; folders end in /) and items, one per name, with current_version, retained_versions, max_versions and updated_time. Leave out prefix for the top level; add managed=true to list ibee-managed/. A folder lists in one answer; there are no pages.
Search
Search matches part of a path or display name, ignoring case. The answer has items and next_cursor; pass cursor=<next_cursor> for the next page (limit 1–100, default 50). Secrets written outside the portal can take a few minutes to appear; indexed: false means the workspace hasn’t been fully indexed yet.
Read a secret’s settings and history
The history answer has current_version and versions, keyed by version number, each with created_time, deletion_time (empty unless deleted) and destroyed. Add managed=true for a secret in ibee-managed/.
Change a secret’s settings
Calling PUT on a path that doesn’t exist creates it with settings but no value; the portal shows Value not saved until a value is written over the Vault API.
Delete, undelete and destroy versions
Send 1–100 version numbers. Use /undelete to bring deleted versions back and /destroy to erase them permanently.
Delete a secret
This removes the secret, every version and its settings. It can’t be undone.
App credentials
Create a read-only credential for the payments folder. Send an Idempotency-Key (8–128 characters: letters, digits, ., _, : and -):
The answer is 202 with credential (its id, name, access, folder, state) and an operation. Poll GET /secret-manager/operations/{id} until status is completed, then issue the Secret ID:
The secret_id is returned once and can’t be read again; store it straight away. Calling this again issues a new Secret ID and the previous one stops working at once. If the credential is still being set up, the call answers 409 app_credential_pending; wait and retry.
accessisread(default) orread_write.folderis optional; leave it out for every secret.GET /secret-manager/app-credentialsreturnsitems(never Secret IDs) and the workspace’slimit(50).DELETE /secret-manager/app-credentials/{id}revokes the credential:202with an operation. Apps lose access within seconds.
Errors
Errors come back as JSON:
Every error is listed in Troubleshooting.
