# Assign domains to the closest segment, with match score

Provider: Ocean.io
Final price: n/a
Success rate: n/a

Assign each input domain to the closest segment in a segmentation, with a 0-1 match score

## Parameters

- segmentation_id (integer, required)

## Example

```curl
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"]}'
```

[View on Toolswitch](https://toolswitch.dev/fr/tools/oceanio.companies.segment.attribute)
