Secrets

Get a secret

The org is orgId in the path. Returns a specific secret by name. The secret value is always masked.

get/v1/orgs/{orgId}/projects/{projectId}/secrets/{secretName}

Request

  • Base URL
    https://api.spice.ai
  • Auth
    HTTP bearer

Path parameters

orgIdinteger required

The org id from GET /v1/orgs

projectIdinteger required

The ID of the project

secretNamestring required

The name of the secret

Headers

X-Org-Namestring

When present, X-Org-Name must name the same org as orgId. Otherwise the request returns org_path_mismatch (400).

Response

Secret details (value is masked)

idinteger

Unique identifier for the secret

namestring

Name of the secret

valuestring

Always masked with asterisks

created_atstring date-time

Timestamp when the secret was created

updated_atstring date-time

Timestamp when the secret was last updated

Changes

No recorded changes to this operation across all 1 revision of this API.