user

Add an API token

post/user/{userID}/token

Request

  • Base URL
    https://api.zerotier.com/api/v1
  • Auth
    HTTP token

Path parameters

userIDstring required

User ID

Request body

tokenNamestring

user specified token name

tokenstring

API Token. Minimum 32 characters. This token is encrypted in the database and can not be retrieved once set

Example request

{
  "tokenName": "my-super-secret-token",
  "token": "adsf98ashdkjh3689adsfnj3$ADn"
}

Response

API Token added

tokenNamestring

user specified token name

tokenstring

API Token. Minimum 32 characters. This token is encrypted in the database and can not be retrieved once set

Example response

{
  "tokenName": "my-super-secret-token",
  "token": "adsf98ashdkjh3689adsfnj3$ADn"
}

Changes

No recorded changes to this operation across all 1 revision of this API.