Tools
Rotate tool API key
Regenerates a new API key for the specified security tool, invalidating the previous key.
POST
/
api
/
tools
/
{id}
/
api-key
/
rotate
Rotate tool API key
curl --request POST \
--url https://{baseUrl}/api/v1/api/tools/{id}/api-key/rotateimport requests
url = "https://{baseUrl}/api/v1/api/tools/{id}/api-key/rotate"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://{baseUrl}/api/v1/api/tools/{id}/api-key/rotate', 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://{baseUrl}/api/v1/api/tools/{id}/api-key/rotate"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"apiKey": "<string>"
}⌘I
Rotate tool API key
curl --request POST \
--url https://{baseUrl}/api/v1/api/tools/{id}/api-key/rotateimport requests
url = "https://{baseUrl}/api/v1/api/tools/{id}/api-key/rotate"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://{baseUrl}/api/v1/api/tools/{id}/api-key/rotate', 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://{baseUrl}/api/v1/api/tools/{id}/api-key/rotate"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"apiKey": "<string>"
}