Generate an API key for automating tasks like DNS management. This returns a key that you must save securely, and an ID for subsequent API calls related to the key.
Accept Example Content-Type Example name string required scopes array required is_test boolean required description string expires_in_days integer allowed_dns_zones array dns_permissions array success boolean timestamp string requestId string data object https://cloud.hostup.se/api/keys curl -X POST "https://cloud.hostup.se/api/keys" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"scopes": [
"string"
],
"is_test": true,
"description": "string",
"expires_in_days": 0,
"allowed_dns_zones": [
"string"
],
"dns_permissions": [
"string"
]
}' {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"key_id": "string",
"key": "string",
"name": "string",
"description": "string",
"scopes": [
"string"
],
"dns_permissions": [
"string"
],
"created_at": "string",
"message": "string"
}
} {
"name": "string",
"scopes": [
"string"
],
"is_test": true,
"description": "string",
"expires_in_days": 0,
"allowed_dns_zones": [
"string"
],
"dns_permissions": [
"string"
]
}