Delete an API key
curl --request DELETE \
--url https://api.hyzecloud.com/api/api-keys/{keyId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hyzecloud.com/api/api-keys/{keyId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hyzecloud.com/api/api-keys/{keyId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hyzecloud.com/api/api-keys/{keyId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}API Keys
Delete an API key
Revoga a chave imediatamente. Requisições com ela passam a retornar 401.
DELETE
/
api
/
api-keys
/
{keyId}
Delete an API key
curl --request DELETE \
--url https://api.hyzecloud.com/api/api-keys/{keyId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hyzecloud.com/api/api-keys/{keyId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hyzecloud.com/api/api-keys/{keyId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hyzecloud.com/api/api-keys/{keyId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Última modificação em 1 de setembro de 2026

