Secrets

Get a secret

get

Returns a specific secret by name. The secret value is always masked.

Authorizations
AuthorizationstringRequired

OAuth 2.0 access token obtained from the Spice.ai authentication service

Path parameters
appIdintegerRequired

The ID of the app

secretNamestringRequired

The name of the secret

Responses
chevron-right
200

Secret details (value is masked)

application/json
idintegerOptional

Unique identifier for the secret

namestringOptional

Name of the secret

valuestringOptional

Always masked with asterisks

created_atstring · date-timeOptional

Timestamp when the secret was created

updated_atstring · date-timeOptional

Timestamp when the secret was last updated

get
/v1/apps/{appId}/secrets/{secretName}

Delete a secret

delete

Permanently deletes a secret by name.

Authorizations
AuthorizationstringRequired

OAuth 2.0 access token obtained from the Spice.ai authentication service

Path parameters
appIdintegerRequired

The ID of the app

secretNamestringRequired

The name of the secret

Responses
delete
/v1/apps/{appId}/secrets/{secretName}

No content

List secrets

get

Returns all secrets for the specified app. Secret values are always masked.

Authorizations
AuthorizationstringRequired

OAuth 2.0 access token obtained from the Spice.ai authentication service

Path parameters
appIdintegerRequired

The ID of the app

Responses
chevron-right
200

List of secrets

application/json
get
/v1/apps/{appId}/secrets

Create or update a secret

post

Creates a new secret or updates an existing secret with the same name. The secret value is encrypted at rest.

Authorizations
AuthorizationstringRequired

OAuth 2.0 access token obtained from the Spice.ai authentication service

Path parameters
appIdintegerRequired

The ID of the app

Body
namestringRequired

Secret name (must start with a letter or underscore, alphanumeric and underscores only)

Pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$
valuestringRequired

Secret value (will be encrypted at rest)

Responses
chevron-right
200

Secret created or updated successfully

application/json
idintegerOptional

Unique identifier for the secret

namestringOptional

Name of the secret

valuestringOptional

Always masked with asterisks

created_atstring · date-timeOptional

Timestamp when the secret was created

updated_atstring · date-timeOptional

Timestamp when the secret was last updated

post
/v1/apps/{appId}/secrets

Last updated

Was this helpful?