v1beta
Double column
curl
API
CLI
API
CLI

POST /v1beta/projects/{project}/secrets

Example request

request body

curl

curl --header "Content-Type: application/json" \
  --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
  --request POST \
  --data '{"name":"Example Secret","description":"A description","secretType":"environment","priority":10,"restrictions":{"restricted":false,"nfObjects":[{"nfObjectId":"example-service","nfObjectType":"service"}]},"data":{"NODE_ENV":"production","MONGO_DB":"some_connection_string"}}' \
  https://api.northflank.com/v1beta/projects/{project}/secrets

Example response

200 OK

Details about the newly created secret.

JSON

{
  "secretType": "environment",
  "secretId": "new-secret"
}

Example response

409 Conflict

There is already a secret with the same derived identifier

© 2021 Northflank Ltd. All rights reserved.

TermsPrivacy

contact@northflank.com