Assign domains to the closest segment, with match score
oceanio.companies.segment.attributeAssign each input domain to the closest segment in a segmentation, with a 0-1 match score
- Price
- Preço pendentePelo preço do provedor
- Success rate
- —Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
- Latency p50
- ——
- Last verified
- —Not verified yet
POSThttps://toolswitch.dev/v1/tools/oceanio.companies.segment.attributePreview- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
the scoring half of segmentation — score inbound leads against an ICP you already built. NOT VERIFIED: on a freshly created segmentation the call returned HTTP 412 {"detail": "Segmentation must be re-run to enable attribution."}, and re-running a segmentation is a dashboard action we did not want to trigger on the test account. Price also unconfirmed for the same reason
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de caminho | ||||
segmentation_id | inteiro | Obrigatório | a segmentation whose status is SUCCESSFUL | 153746 |
- Parâmetros de caminho
segmentation_idinteiroObrigatórioa segmentation whose status is SUCCESSFUL
Exemplo:
153746
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
Preview
curl -X POST 'https://toolswitch.dev/v1/tools/oceanio.companies.segment.attribute' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"domains":["gocardless.com"]}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/oceanio.companies.segment.attribute",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"domains\":[\"gocardless.com\"]}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/oceanio.companies.segment.attribute", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"domains\":[\"gocardless.com\"]}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra.