DevZero Logo
DevZero

Create a secret for a user

POST
/users/secrets
/users/secrets

Request Body

application/jsonRequired

create user secret body

body
Required
array<object>

Header Parameters

Authorization
Required
string

Value: "Bearer <token>"; visit the "User Settings" page in the DevZero dashboard to generate a token

curl -X POST "https://api.devzero.io/backend/v0/users/secrets" \
  -H "Authorization: string" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "is_sensitive": true,
      "name": "string",
      "value": "string"
    }
  ]'

created user secret

[
  {
    "is_sensitive": true,
    "name": "string",
    "value": "string"
  }
]