> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidocs.polytomic.com/2023-04-25/configuring-your-connections/connections/affinity/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.polytomic.com/_mcp/server.
# Affinity
Supports:
* ✅ Models
* ✅ Model sync destination
* ✅ Bulk sync source
* ✅ Connection Proxy
## Connection
### Configuration
| Name | Type | Description | Required |
api_key |
string |
API key |
true |
enable_webhooks |
boolean |
Enable Affinity webhook updates for bulk syncs |
false |
#### Example
```json
{
"name": "Affinity connection",
"type": "affinity",
"configuration": {
"api_key": "******",
"enable_webhooks": false
}
}
```
### Read-only properties
| Name | Type | Description | Required |
user |
string |
User |
false |
## Model Sync
### Source
#### Configuration
| Name | Type | Description | Required |
object |
string |
Object |
true |
#### Example
```json
{
...
"configuration": {
"object": "organization"
}
}
```
### Target
Affinity connections may be used as the destination in a model sync.
#### All targets
##### Configuration
| Name | Type | Description | Required |
search_domains |
boolean |
Search additional domains when matching organizations
Requires additional API calls to Affinity. |
false |
write_null_values |
boolean |
Copy null values
Removes the existing Affinity field value when the source value is null. Default fields such as names and email addresses are never cleared. |
false |
##### Example
```json
{
...
"target": {
"configuration": {
"search_domains": false,
"write_null_values": false
}
}
}
```
## Bulk Sync
### Source
Affinity connections may be used as a bulk sync source. No additional configuration options are required.