Link notes to CRM entities (people, companies, opportunities) in Dalil AI — create, read, update, delete, and list noteTarget records that associate a note with one or more target records.
Dalil AI: Note Relation API Skills
Quick Reference
Base URL:
https://app.usedalil.aiAuth:
Authorization: Bearer {apiKey}Content-Type:
application/json(POST/PATCH requests only)Accept:
application/json(GET requests)Resource path:
/rest/noteTargets
Endpoints
Operation | Method | Path | Required Fields |
|---|---|---|---|
Create | POST |
|
|
Get | GET |
|
|
List | GET |
| — |
Update | PATCH |
|
|
Delete | DELETE |
|
|
No search operation available.
Create Note Relation
Link note to a person
Link note to a company
Link note to an opportunity
Fields
noteId(UUID, required) — The note to linkpersonId(UUID, optional) — Target personcompanyId(UUID, optional) — Target companyopportunityId(UUID, optional) — Target opportunity
At least one target ID should be provided alongside noteId.
Update Note Relation
Updatable fields: noteId, personId, companyId, opportunityId
Get Note Relation
Default depth is 1 (includes linked note and target record).
List Note Relations
Delete Note Relation
Deletes the link only, not the note itself.
Common Workflows
Create a note and link it to a person
Find all notes for a person
The response includes the full note object when depth >= 1.
Find all notes for a company
Filter Examples
Gotchas
No search operation — Note relations can only be filtered via the list endpoint.
Default depth is 1 — Unlike most entities (default 0), note relations default to depth 1 to include linked records.
Deleting a relation does not delete the note — Only the link is removed.
One target per relation — Each note relation links a note to ONE target. To link a note to both a person and a company, create two separate note relations.
URL-encode GET filter params — Filter strings contain special characters (
[,],:) that break manually constructed URLs. Use URL encoding when making requests (e.g.,curl -G --data-urlencode "filter=...").