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
- Precio pendienteAl precio del proveedor
- Success rate
- —Aún no hay datos de tasa de éxitoAún no hay datos de tasa de éxito
- 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 | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de ruta | ||||
segmentation_id | entero | Obligatorio | a segmentation whose status is SUCCESSFUL | 153746 |
- Parámetros de ruta
segmentation_identeroObligatorioa segmentation whose status is SUCCESSFUL
Ejemplo:
153746
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra.