Skip to navigation

Create application identity

Creates an AppRole or Kubernetes identity with an initial scope for this 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).
# STORE_ID: Secret store ID
curl -X POST "https://api.ibee.ai/v1/secret-store/stores/$STORE_ID/identities?workspace_id=$WORKSPACE_ID" \
-H "Authorization: Bearer $IBEE_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"auth_method": "approle", "name": "<name>"}'

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

store_idstringRequired
Secret store 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.
auth_methodenumRequired
Authentication method used by the application.
Allowed values:
namestringRequired1-128 characters

Display name of the identity (1-128 characters).

token_policy_modeenumOptionalDefaults to read_only

Default access mode for the identity’s tokens.

  • read_only (default)
  • read_write
Allowed values:
k8s_namespacestring or nullOptional

Required when auth_method is kubernetes.

k8s_service_accountstring or nullOptional

Required when auth_method is kubernetes.

Response

Identity created successfully. Fetch access details separately.
idstring
Unique ID of the identity.
organization_idstring
ID of the owning organization.
workspace_idstring
ID of the owning workspace.
namestring
Display name of the identity.
auth_methodenum
  • approle: authenticates with a role ID and secret ID.
  • kubernetes: authenticates with a Kubernetes service account token.
Allowed values:
openbao_role_namestring
Name of the backend authentication role created for the identity.
statusenum
  • active: can authenticate.
  • disabled: authentication is refused.
Allowed values:
token_policy_modeenum

Access mode of the identity’s tokens.

  • read_only
  • read_write
Allowed values:
created_atdatetime

When the record was created (ISO 8601).

updated_atdatetime

When the record was last changed (ISO 8601).

k8s_namespacestring or nullOptional

Kubernetes namespace of the service account, for kubernetes identities.

k8s_service_accountstring or nullOptional

Kubernetes service account name, for kubernetes identities.

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