Skip to main content
GET
/
v1
/
accounts
/
{account_id}
/
secrets
/
{secret_id}
Get Secret
curl --request GET \
  --url https://api.fireworks.ai/v1/accounts/{account_id}/secrets/{secret_id} \
  --header 'Authorization: Bearer <token>'
{
  "name": "<string>",
  "keyName": "<string>",
  "value": "sk-1234567890abcdef"
}

Authorizations

Authorization
string
header
required

Bearer authentication using your Fireworks API key. Format: Bearer <API_KEY>

Path Parameters

account_id
string
required

The Account Id

secret_id
string
required

The Secret Id

Query Parameters

readMask
string

The fields to be returned in the response. If empty or "*", all fields will be returned.

Response

200 - application/json

A successful response.

name
string
required
keyName
string
required
value
string

The secret value. This field is INPUT_ONLY and will not be returned in GET or LIST responses for security reasons. The value is only accepted when creating or updating secrets.

Example:

"sk-1234567890abcdef"