List secrets
GET / v1 / apps / secrets
List all secrets stored on the given scope.
Parameters
- scope object Required Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
More parameters
- ending _ before string
- limit integer
- starting _ after string
Returns
A dictionary with a data property that contains an array of up to limit Secrets, starting after Secret starting_after. Each entry in the array is a separate Secret object. If no more Secrets are available, the resulting array will be empty.
Response
Delete a Secret
POST / v1 / apps / secrets / delete
Deletes a secret from the secret store by name and scope.
Parameters
- name string Required A name for the secret that’s unique within the scope.
- scope object Required Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
Returns
Returns the deleted secret object.
Response
{ "id": "appsecret_5110hHS1707T6fjBnah1LkdIwHu7ix", "object": "apps.secret", "deleted": true}
Find a Secret
GET / v1 / apps / secrets / find
Finds a secret in the secret store by name and scope.
Parameters
- name string Required A name for the secret that’s unique within the scope.
- scope object Required Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
Returns
Returns a secret object.
Response
{ "id": "appsecret_5110hHS1707T6fjBnah1LkdIwHu7ix", "object": "apps.secret", "created": 1680209063, "expires_at": null, "livemode": false, "name": "my-api-key", "scope": { "type": "account" }}
