Suggest exclusion phrases for a company
curl --request POST \
--url https://api.noonum.ai/v2/exclusion-phrases \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"objective": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"inclusionReason": "<string>"
}
'import requests
url = "https://api.noonum.ai/v2/exclusion-phrases"
payload = {
"objective": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"inclusionReason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
objective: '<string>',
companyId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
inclusionReason: '<string>'
})
};
fetch('https://api.noonum.ai/v2/exclusion-phrases', 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://api.noonum.ai/v2/exclusion-phrases"
payload := strings.NewReader("{\n \"objective\": \"<string>\",\n \"companyId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"inclusionReason\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}{
"phrases": [
{
"phrase": "<string>",
"reason": "<string>"
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Helper
Suggest exclusion phrases for a company
Suggests phrases the user can add as exclusions to keep companies like the given one out of future results, based on the objective and why the company was included.
POST
/
exclusion-phrases
Suggest exclusion phrases for a company
curl --request POST \
--url https://api.noonum.ai/v2/exclusion-phrases \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"objective": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"inclusionReason": "<string>"
}
'import requests
url = "https://api.noonum.ai/v2/exclusion-phrases"
payload = {
"objective": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"inclusionReason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
objective: '<string>',
companyId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
inclusionReason: '<string>'
})
};
fetch('https://api.noonum.ai/v2/exclusion-phrases', 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://api.noonum.ai/v2/exclusion-phrases"
payload := strings.NewReader("{\n \"objective\": \"<string>\",\n \"companyId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"inclusionReason\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}{
"phrases": [
{
"phrase": "<string>",
"reason": "<string>"
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Body
application/json