Assets
Generate AI tags for a service
Analyzes the service data (HTTP responses, tech stack, TLS, etc.) using AI and generates descriptive tags. Replaces existing tags with AI-generated ones.
POST
/
api
/
assets
/
service
/
tag
/
generate
Generate AI tags for a service
curl --request POST \
--url https://{baseUrl}/api/v1/api/assets/service/tag/generate \
--header 'Content-Type: application/json' \
--data '
{
"assetServiceId": "550e8400-e29b-41d4-a716-446655440000"
}
'import requests
url = "https://{baseUrl}/api/v1/api/assets/service/tag/generate"
payload = { "assetServiceId": "550e8400-e29b-41d4-a716-446655440000" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({assetServiceId: '550e8400-e29b-41d4-a716-446655440000'})
};
fetch('https://{baseUrl}/api/v1/api/assets/service/tag/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/assets/service/tag/generate"
payload := strings.NewReader("{\n \"assetServiceId\": \"550e8400-e29b-41d4-a716-446655440000\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"tags": [
"Technology",
"API",
"Cloud Service"
]
}⌘I
Generate AI tags for a service
curl --request POST \
--url https://{baseUrl}/api/v1/api/assets/service/tag/generate \
--header 'Content-Type: application/json' \
--data '
{
"assetServiceId": "550e8400-e29b-41d4-a716-446655440000"
}
'import requests
url = "https://{baseUrl}/api/v1/api/assets/service/tag/generate"
payload = { "assetServiceId": "550e8400-e29b-41d4-a716-446655440000" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({assetServiceId: '550e8400-e29b-41d4-a716-446655440000'})
};
fetch('https://{baseUrl}/api/v1/api/assets/service/tag/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/assets/service/tag/generate"
payload := strings.NewReader("{\n \"assetServiceId\": \"550e8400-e29b-41d4-a716-446655440000\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"tags": [
"Technology",
"API",
"Cloud Service"
]
}