service-account
Create API key
Create a new API key for a service account. The secret key value is returned only once in this response — store it securely, as it cannot be retrieved again.
post/api/v2/service-account/{id}/api-key
Request
- Base URLhttps://central.zerotier.com
- AuthHTTP bearer
Path parameters
idstring required
The service account ID
Request body
Example request
{
"description": "CI deploy key — expires annually",
"expires": "2027-04-08T00:00:00Z"
}Response
Created API key (secret is only returned in this response)
Changes
No recorded changes to this operation across all 1 revision of this API.