Skip to main content
POST
/
api
/
v1
/
projects
/
{id}
/
secrets
Create a secret
curl --request POST \
  --url https://api.dualship.run/api/v1/projects/{id}/secrets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Workspace-Id: <x-workspace-id>' \
  --data '
{
  "key": "<string>",
  "value": "<string>",
  "is_secret": true
}
'
{
  "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

Body

application/json

Secret details

key
string
required
Required string length: 1 - 255
value
string
required
is_secret
boolean

Response

Secret created

is_secret
boolean
Example:

true

key
string
Example:

"API_KEY"

value
string
Example:

""