DevZero Logo
DevZero

Create a network key for a team, this is a legacy API and will create a key for the oldest network belonging to the team

POST
/teams/{team_id}/network-keys
/teams/{team_id}/network-keys

Request Body

application/jsonRequired

create network key for team body

ephemeralboolean

should this node be removed once inactive?

expirationstring

when should this key expire? (RFC3339 format)

Format: "date-time"

namestring

Name of the key

reusableboolean

can this key be used to authenticate more than one node?

Path Parameters

team_id
Required
string

Header Parameters

Authorization
Required
string

curl -X POST "https://api.devzero.io/backend/v0/teams/string/network-keys" \
  -H "Authorization: string" \
  -H "Content-Type: application/json" \
  -d '{
    "ephemeral": true,
    "expiration": "2019-08-24T14:15:22Z",
    "name": "string",
    "reusable": true
  }'

OK

{
  "ephemeral": true,
  "expiration": "2019-08-24T14:15:22Z",
  "key": "string",
  "name": "string",
  "reusable": true
}