Skip to main content
GET
/
api
/
v1
/
projects
/
{id}
/
secrets
/
{key}
Get a secret
curl --request GET \
  --url https://api.dualship.run/api/v1/projects/{id}/secrets/{key} \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Workspace-Id: <x-workspace-id>'
{
  "is_secret": true,
  "key": "API_KEY",
  "value": ""
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication

Headers

X-Workspace-Id
string
required

Workspace ID

Path Parameters

id
string
required

Project ID

key
string
required

Secret Key

Response

Secret details

is_secret
boolean
Example:

true

key
string
Example:

"API_KEY"

value
string
Example:

""