curl --request POST \
--url https://api.affinity.co/v2/suggested-field-updates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"subject": {
"type": "note",
"id": 6789
}
}
'{
"taskUrl": "https://api.affinity.co/v2/tasks/suggested-field-updates/create/7c9e6679-7425-40de-944b-e07fc1f90ae7"
}Generate suggested field updates
| ⚠️ This endpoint is currently in BETA |
|---|
The endpoint returns 404 when AI agents access is not enabled for the organization.
Generate suggested field updates from a note or a meeting. Generation runs asynchronously: poll the returned taskUrl until the task finishes, then retrieve the set. The set can also be retrieved while generation runs, with status pending.
Sets belong to the user who requested them. Sets generated automatically for a new note belong to the note’s creator. You have at most one pending set per subject. While it is generating, repeated requests return its task. Otherwise each request generates a new set, and your open set for the subject becomes done. Its undecided suggestions can no longer be decided. Other users’ sets for the subject are not affected.
Returns 404 when the subject does not exist or is not accessible to you.
curl --request POST \
--url https://api.affinity.co/v2/suggested-field-updates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"subject": {
"type": "note",
"id": 6789
}
}
'{
"taskUrl": "https://api.affinity.co/v2/tasks/suggested-field-updates/create/7c9e6679-7425-40de-944b-e07fc1f90ae7"
}Authorizations
Body
Was this page helpful?