Skip to navigation

Add application identity scope

Grants an identity access to another store. Requires scope: secret-store.write.

# Example request with curl (set IBEE_API_TOKEN to a platform API token and WORKSPACE_ID to the workspace first).
# IDENTITY_ID: Secret Store application identity ID
curl -X POST "https://api.ibee.ai/v1/secret-store/identities/$IDENTITY_ID/scopes?workspace_id=$WORKSPACE_ID" \
-H "Authorization: Bearer $IBEE_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"store_id": "<store_id>"}'

Authentication

AuthorizationBearer

IBEE platform API token. Production tokens start with ibee_prod_key_; development tokens start with ibee_dev_key_. Use a token only with its matching gateway environment.

Path parameters

identity_idstringRequired
Secret Store application identity ID.

Query parameters

workspace_idstringRequiredformat: "^[1-9][0-9]*$">=1 character

The positive numeric workspace ID to scope this request to. Zero, negative, and non-numeric values are rejected.

Request

This endpoint expects an object.
store_idstringRequired
Store the identity gets access to.
access_modeenumOptionalDefaults to read_only
  • read_only: the identity can read secrets in the store.
  • read_write: the identity can also create and update them. Default read_only.
Allowed values:
allow_version_readbooleanOptionalDefaults to true

Whether the identity may read non-current versions of a secret.

allow_rollbackbooleanOptionalDefaults to false
Whether the identity may roll a secret back to an earlier version.
allow_destroybooleanOptionalDefaults to false
Whether the identity may destroy secret versions.

Response

Scope created successfully.
idstring
Unique ID of the scope.
identity_idstring
Identity the scope belongs to.
scope_typestring

Always store: scopes are granted per store.

store_idstring
Store the scope grants access to.
organization_idstring
ID of the owning organization.
workspace_idstring
ID of the owning workspace.
access_modeenum
  • read_only: the identity can read secrets in the store.
  • read_write: the identity can also create and update them.
Allowed values:
allow_version_readboolean

Whether the identity may read non-current versions of a secret.

allow_rollbackboolean
Whether the identity may roll a secret back to an earlier version.
allow_destroyboolean
Whether the identity may destroy secret versions.
created_atdatetime

When the scope was created (ISO 8601).

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
413
Content Too Large Error
422
Unprocessable Entity Error
423
Locked Error
429
Too Many Requests Error
500
Internal Server Error
502
Bad Gateway Error
503
Service Unavailable Error
504
Gateway Timeout Error