automations/qualify-close-leads.automation.ts
all.full_access and offline_access; API keys are scoped by Close to one user and organization. You can select a named binding with the optional second argument { account } on actions or the account trigger option.
List actions use offset pagination: limit defaults to 100 and skip defaults to 0. Close dates become JavaScript Date values, provider keys use public TypeScript field names, and custom fields appear under customFields using their cf_... IDs.
Close Smart View definition triggers use provider webhooks. Lead entry and exit triggers maintain a durable per-account membership baseline because Close does not emit native membership events. They support structured lead Smart Views with up to 10,000 results and emit only changes observed after the initial baseline.
Exports
closecontains the packaged Close actions and triggers.closeAccount("name")selects a named Close connection.getCloseApicreates the authenticated Close API helper for a custom account-backed action.
Triggers
- On Close event
- On Close Smart View created
- On Close Smart View updated
- On Close lead entered Smart View
- On Close lead exited Smart View
- On Close call answered
- On Close call completed
- On Close email received
- On Close email sent
- On Close SMS received
- On Close SMS sent
- On Close meeting scheduled
- On Close meeting started
- On Close meeting completed
- On Close meeting canceled
- On Close comment created
- On Close comment updated
- On Close comment deleted
- On Close sequence subscription created
- On Close sequence subscription updated
- On Close sequence subscription paused
- On Close sequence subscription resumed
- On Close sequence subscription finished
- On Close sequence subscription goal reached
- On Close sequence subscription errored
- On Close sequence subscription deleted
- On Close lead created
- On Close lead updated
- On Close lead deleted
- On Close lead merged
- On Close contact created
- On Close contact updated
- On Close contact deleted
- On Close opportunity created
- On Close opportunity updated
- On Close opportunity won
- On Close opportunity lost
- On Close opportunity deleted
- On Close task created
- On Close task updated
- On Close task completed
- On Close task deleted
Actions
- List leads
- Get lead
- Create lead
- Update lead
- Merge leads
- Delete lead
- List contacts
- Get contact
- Create contact
- Update contact
- Delete contact
- List opportunities
- Get opportunity
- Create opportunity
- Update opportunity
- Delete opportunity
- List tasks
- Get task
- Create task
- Update task
- Delete task
- List activities
- Upload file
- Get note
- Create note
- Update note
- Delete note
- List calls
- Get call
- Log call
- Update call
- Delete call
- List emails
- Get email
- Create email
- Update email
- Delete email
- List SMS messages
- Get SMS
- Create SMS
- Update SMS
- Delete SMS
- List comments
- Get comment
- Create comment
- Update comment
- Delete comment
- List sequences
- Get sequence
- List sequence subscriptions
- Get sequence subscription
- Subscribe contact to sequence
- Update sequence subscription
- Delete sequence subscription
- Get current user
- List users
- List lead statuses
- List pipelines
- List opportunity statuses