Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Close connector

OAuth 2.0CRM & SalesCommunication

Connect to Close CRM. Manage leads, contacts, opportunities, tasks, activities, and sales workflows

Close connector

  1. Terminal window
    npm install @scalekit-sdk/node

    Full SDK reference: Node.js | Python

  2. Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Register your Close credentials with Scalekit so it handles the token lifecycle. You do this once per environment.

    Dashboard setup steps

    Register your Scalekit environment with the Close connector so Scalekit handles the OAuth flow and token lifecycle for you. The connection name you create will be used to identify and invoke the connection programmatically.

    1. Create a Close OAuth app

      • Sign in to Close and go to SettingsDeveloperOAuth Apps.
      • Click Create New OAuth App.
      • Enter an app name and description.
      • In the Redirect URIs field, paste the redirect URI from Scalekit (see next step — you can come back to add it).

      • Copy your Client ID and Client Secret from the app detail page.
    2. Set up the connection in Scalekit

      • In Scalekit dashboard, go to AgentKit > Connections > Create Connection.
      • Find Close and click Create.
      • Copy the Redirect URI shown — it looks like: https://<SCALEKIT_ENVIRONMENT_URL>/sso/v1/oauth/<CONNECTION_ID>/callback
      • Note the Connection name (e.g., close) — use this as connection_name in your code.

      • Return to your Close OAuth app and add the redirect URI you copied.
      • Back in Scalekit, enter your Client ID and Client Secret. Scopes are granted automatically by Close — no additional scope configuration is needed.
      • Click Save.
    3. Add a connected account

      Via dashboard (for testing)

      • In the connection page, click the Connected Accounts tab → Add account.
      • Enter a User ID and click Save. You will be redirected to Close to authorize access.

      Via API (for production)

      const { link } = await scalekit.actions.getAuthorizationLink({
      connectionName: 'close',
      identifier: 'user_123',
      });
      // Redirect your user to `link` to authorize access
      console.log('Authorize at:', link);
  4. quickstart.ts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENV_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET,
    )
    const actions = scalekit.actions
    const connector = 'close'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize Close:', link)
    process.stdout.write('Press Enter after authorizing...')
    await new Promise(r => process.stdin.once('data', r))
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'close_activities_list',
    toolInput: {},
    })
    console.log(result)

Connect this agent connector to let your agent:

  • List webhooks, users, tasks — List all webhook subscriptions in Close
  • Update webhook, task, sms — Update a webhook subscription’s URL or event subscriptions
  • Get webhook, user, task — Retrieve a single webhook subscription by ID
  • Delete webhook, task, sms — Delete a webhook subscription from Close
  • Create webhook, task, sms — Create a new webhook subscription to receive Close event notifications
  • Merge lead — Merge two leads into one
Proxy API call
// Fetch the authenticated user's profile
const me = await actions.request({
connectionName: 'close',
identifier: 'user_123',
path: '/api/v1/me/',
method: 'GET',
});
console.log(me);
Basic example — get the current user
const me = await actions.executeTool({
toolName: 'close_me_get',
connector: 'close',
identifier: 'user_123',
toolInput: {},
});
console.log(me);
Advanced enrichment workflow

This example shows a complete lead enrichment pipeline: find a lead, attach activities, enroll in a sequence, and track progress — all in one automated flow.

const opts = { connector: 'close', identifier: 'user_123' };
async function enrichAndEnrollLead(companyName: string, contactEmail: string) {
// 1. Find or create the lead
const searchResult = await actions.executeTool({
toolName: 'close_leads_list',
...opts,
toolInput: { query: companyName, _limit: 1 },
});
let leadId: string;
if (searchResult.data.length > 0) {
leadId = searchResult.data[0].id;
console.log(`Found existing lead: ${leadId}`);
} else {
const newLead = await actions.executeTool({
toolName: 'close_lead_create',
...opts,
toolInput: { name: companyName },
});
leadId = newLead.id;
console.log(`Created lead: ${leadId}`);
}
// 2. Create a contact on the lead
const contact = await actions.executeTool({
toolName: 'close_contact_create',
...opts,
toolInput: {
lead_id: leadId,
name: contactEmail.split('@')[0],
emails: JSON.stringify([{ email: contactEmail, type: 'office' }]),
},
});
console.log(`Created contact: ${contact.id}`);
// 3. Create an opportunity on the lead
const pipelines = await actions.executeTool({
toolName: 'close_pipelines_list',
...opts,
toolInput: {},
});
const pipeline = pipelines.data[0];
const activeStatus = pipeline.statuses.find((s: any) => s.type === 'active');
if (!activeStatus) throw new Error('No active status found in pipeline');
const opportunity = await actions.executeTool({
toolName: 'close_opportunity_create',
...opts,
toolInput: {
lead_id: leadId,
status_id: activeStatus.id,
value: 500000, // $5,000.00 in cents
value_currency: 'USD',
value_period: 'one_time',
confidence: 30,
},
});
console.log(`Created opportunity: ${opportunity.id} — $${opportunity.value / 100}`);
// 4. Log a note summarizing the enrichment
await actions.executeTool({
toolName: 'close_note_create',
...opts,
toolInput: {
lead_id: leadId,
note: `Lead enriched automatically. Contact ${contactEmail} created. Opportunity ${opportunity.id} opened.`,
},
});
// 5. Create a follow-up task
const tomorrow = new Date();
tomorrow.setDate(tomorrow.getDate() + 1);
await actions.executeTool({
toolName: 'close_task_create',
...opts,
toolInput: {
lead_id: leadId,
text: `Follow up with ${contactEmail}`,
date: tomorrow.toISOString().split('T')[0],
},
});
// 6. Enroll the contact in a sequence (if sequences exist)
const sequences = await actions.executeTool({
toolName: 'close_sequences_list',
...opts,
toolInput: { _limit: 1 },
});
if (sequences.data.length > 0) {
const subscription = await actions.executeTool({
toolName: 'close_sequence_subscription_create',
...opts,
toolInput: {
contact_id: contact.id,
sequence_id: sequences.data[0].id,
},
});
console.log(`Enrolled contact in sequence. Subscription: ${subscription.id}`);
}
return { leadId, contactId: contact.id, opportunityId: opportunity.id };
}
// Run the enrichment
enrichAndEnrollLead('Acme Corp', 'jane@acme.com').then(console.log);
Required scopes

Close OAuth apps automatically include both required scopes — no manual scope selection is needed.

ScopeRequired for
all.full_accessAll 81 tools (leads, contacts, opportunities, tasks, notes, calls, emails, SMS, pipelines, sequences, webhooks, users, custom fields)
offline_accessAll tools — enables the refresh token so sessions persist beyond 1 hour

Use the exact tool names from the Tool list below when you call execute_tool. If you’re not sure which name to use, list the tools available for the current user first.

close_activities_list#List all activity types for a lead in Close (calls, emails, notes, SMS, etc.).8 params

List all activity types for a lead in Close (calls, emails, notes, SMS, etc.).

NameTypeRequiredDescription
_fieldsstringoptionalComma-separated list of fields to return.
_limitintegeroptionalMaximum number of results to return.
_order_bystringoptionalSort field. Default: date_created.
_skipintegeroptionalNumber of results to skip (offset).
_typestringoptionalActivity type: Note, Call, Email, Sms, etc.
contact_idstringoptionalFilter by contact ID.
lead_idstringoptionalFilter by lead ID.
user_idstringoptionalFilter by user ID.
close_call_create#Log an external call activity on a lead in Close.8 params

Log an external call activity on a lead in Close.

NameTypeRequiredDescription
lead_idstringrequiredID of the lead for this call.
statusstringrequiredCall outcome: completed, no_answer, wrong_number, left_voicemail, etc.
contact_idstringoptionalID of the contact called.
directionstringoptionalCall direction: inbound or outbound.
durationintegeroptionalCall duration in seconds.
notestringoptionalNotes about the call.
phonestringoptionalPhone number called.
recording_urlstringoptionalHTTPS URL of the call recording.
close_call_delete#Delete a call activity from Close.1 param

Delete a call activity from Close.

NameTypeRequiredDescription
call_idstringrequiredID of the call to delete.
close_call_get#Retrieve a single call activity by ID.1 param

Retrieve a single call activity by ID.

NameTypeRequiredDescription
call_idstringrequiredID of the call activity.
close_call_update#Update a call activity's note, status, or duration.4 params

Update a call activity's note, status, or duration.

NameTypeRequiredDescription
call_idstringrequiredID of the call to update.
durationintegeroptionalUpdated call duration in seconds.
notestringoptionalUpdated call notes.
statusstringoptionalUpdated call status.
close_calls_list#List call activities in Close, optionally filtered by lead, contact, or user.6 params

List call activities in Close, optionally filtered by lead, contact, or user.

NameTypeRequiredDescription
_fieldsstringoptionalComma-separated list of fields to return.
_limitintegeroptionalMaximum number of results to return.
_skipintegeroptionalNumber of results to skip (offset).
contact_idstringoptionalFilter by contact ID.
lead_idstringoptionalFilter by lead ID.
user_idstringoptionalFilter by user ID.
close_comment_create#Post a comment on a Close object (lead, opportunity, etc.).2 params

Post a comment on a Close object (lead, opportunity, etc.).

NameTypeRequiredDescription
bodystringrequiredComment text body.
object_idstringrequiredID of the object to comment on.
close_comment_delete#Delete a comment from Close.1 param

Delete a comment from Close.

NameTypeRequiredDescription
comment_idstringrequiredID of the comment to delete.
close_comment_get#Retrieve a single comment by ID.1 param

Retrieve a single comment by ID.

NameTypeRequiredDescription
comment_idstringrequiredID of the comment.
close_comment_update#Update the text of an existing comment.2 params

Update the text of an existing comment.

NameTypeRequiredDescription
commentstringrequiredUpdated comment text.
comment_idstringrequiredID of the comment to update.
close_comments_list#List comments on an object. Provide either object_id or thread_id to filter results.5 params

List comments on an object. Provide either object_id or thread_id to filter results.

NameTypeRequiredDescription
_fieldsstringoptionalComma-separated list of fields to return.
_limitintegeroptionalMaximum number of results to return.
_skipintegeroptionalNumber of results to skip (offset).
object_idstringoptionalID of the object to fetch comments for.
thread_idstringoptionalID of the comment thread.
close_contact_create#Create a new contact in Close and associate it with a lead.5 params

Create a new contact in Close and associate it with a lead.

NameTypeRequiredDescription
lead_idstringrequiredID of the lead to associate this contact with.
emailsstringoptionalJSON array of email objects, e.g. [{"email": "jane@acme.com", "type": "office"}].
namestringoptionalFull name of the contact.
phonesstringoptionalJSON array of phone objects, e.g. [{"phone": "+1234567890", "type": "office"}].
titlestringoptionalJob title of the contact.
close_contact_delete#Delete a contact from Close.1 param

Delete a contact from Close.

NameTypeRequiredDescription
contact_idstringrequiredID of the contact to delete.
close_contact_get#Retrieve a single contact by ID from Close.2 params

Retrieve a single contact by ID from Close.

NameTypeRequiredDescription
contact_idstringrequiredID of the contact.
_fieldsstringoptionalComma-separated list of fields to return.
close_contact_update#Update a contact's name, title, phone numbers, or email addresses.5 params

Update a contact's name, title, phone numbers, or email addresses.

NameTypeRequiredDescription
contact_idstringrequiredID of the contact to update.
emailsstringoptionalJSON array of email objects.
namestringoptionalNew full name.
phonesstringoptionalJSON array of phone objects.
titlestringoptionalNew job title.
close_contacts_list#List contacts in Close, optionally filtered by lead.4 params

List contacts in Close, optionally filtered by lead.

NameTypeRequiredDescription
_fieldsstringoptionalComma-separated list of fields to return.
_limitintegeroptionalMaximum number of results to return.
_skipintegeroptionalNumber of results to skip (offset).
lead_idstringoptionalFilter contacts by lead ID.
close_custom_field_contact_create#Create a new custom field for contacts in Close.2 params

Create a new custom field for contacts in Close.

NameTypeRequiredDescription
namestringrequiredName of the custom field.
typestringrequiredField type: text, number, date, url, choices, etc.
close_custom_field_contact_delete#Delete a contact custom field from Close.1 param

Delete a contact custom field from Close.

NameTypeRequiredDescription
custom_field_idstringrequiredID of the custom field to delete.
close_custom_field_contact_get#Retrieve a single contact custom field by ID.1 param

Retrieve a single contact custom field by ID.

NameTypeRequiredDescription
custom_field_idstringrequiredID of the custom field.
close_custom_field_contact_update#Update a contact custom field's name or choices.2 params

Update a contact custom field's name or choices.

NameTypeRequiredDescription
custom_field_idstringrequiredID of the custom field to update.
namestringoptionalNew name for the custom field.
close_custom_field_lead_create#Create a new custom field for leads in Close.2 params

Create a new custom field for leads in Close.

NameTypeRequiredDescription
namestringrequiredName of the custom field.
typestringrequiredField type: text, number, date, url, choices, etc.
close_custom_field_lead_delete#Delete a lead custom field from Close.1 param

Delete a lead custom field from Close.

NameTypeRequiredDescription
custom_field_idstringrequiredID of the custom field to delete.
close_custom_field_lead_get#Retrieve a single lead custom field by ID.1 param

Retrieve a single lead custom field by ID.

NameTypeRequiredDescription
custom_field_idstringrequiredID of the custom field.
close_custom_field_lead_update#Update a lead custom field's name or choices.2 params

Update a lead custom field's name or choices.

NameTypeRequiredDescription
custom_field_idstringrequiredID of the custom field to update.
namestringoptionalNew name for the custom field.
close_custom_field_opportunity_create#Create a new custom field for opportunitys in Close.2 params

Create a new custom field for opportunitys in Close.

NameTypeRequiredDescription
namestringrequiredName of the custom field.
typestringrequiredField type: text, number, date, url, choices, etc.
close_custom_field_opportunity_delete#Delete a opportunity custom field from Close.1 param

Delete a opportunity custom field from Close.

NameTypeRequiredDescription
custom_field_idstringrequiredID of the custom field to delete.
close_custom_field_opportunity_get#Retrieve a single opportunity custom field by ID.1 param

Retrieve a single opportunity custom field by ID.

NameTypeRequiredDescription
custom_field_idstringrequiredID of the custom field.
close_custom_field_opportunity_update#Update a opportunity custom field's name or choices.2 params

Update a opportunity custom field's name or choices.

NameTypeRequiredDescription
custom_field_idstringrequiredID of the custom field to update.
namestringoptionalNew name for the custom field.
close_custom_fields_contact_list#List all custom fields defined for contacts in Close.3 params

List all custom fields defined for contacts in Close.

NameTypeRequiredDescription
_fieldsstringoptionalComma-separated list of fields to return.
_limitintegeroptionalMaximum number of results to return.
_skipintegeroptionalNumber of results to skip (offset).
close_custom_fields_lead_list#List all custom fields defined for leads in Close.3 params

List all custom fields defined for leads in Close.

NameTypeRequiredDescription
_fieldsstringoptionalComma-separated list of fields to return.
_limitintegeroptionalMaximum number of results to return.
_skipintegeroptionalNumber of results to skip (offset).
close_custom_fields_opportunity_list#List all custom fields defined for opportunitys in Close.3 params

List all custom fields defined for opportunitys in Close.

NameTypeRequiredDescription
_fieldsstringoptionalComma-separated list of fields to return.
_limitintegeroptionalMaximum number of results to return.
_skipintegeroptionalNumber of results to skip (offset).
close_email_create#Log or send an email activity on a lead in Close.8 params

Log or send an email activity on a lead in Close.

NameTypeRequiredDescription
lead_idstringrequiredID of the lead for this email.
statusstringrequiredEmail status: inbox, draft, scheduled, outbox, sent.
body_htmlstringoptionalHTML email body.
body_textstringoptionalPlain text email body.
contact_idstringoptionalID of the contact this email is for.
senderstringoptionalSender email address.
subjectstringoptionalEmail subject line.
tostringoptionalJSON array of recipient emails, e.g. [{"email": "jane@acme.com"}].
close_email_delete#Delete an email activity from Close.1 param

Delete an email activity from Close.

NameTypeRequiredDescription
email_idstringrequiredID of the email to delete.
close_email_get#Retrieve a single email activity by ID.1 param

Retrieve a single email activity by ID.

NameTypeRequiredDescription
email_idstringrequiredID of the email activity.
close_email_update#Update an email activity's status, subject, or body.5 params

Update an email activity's status, subject, or body.

NameTypeRequiredDescription
email_idstringrequiredID of the email to update.
body_htmlstringoptionalNew HTML body.
body_textstringoptionalNew plain text body.
statusstringoptionalNew email status: draft, scheduled, outbox, sent.
subjectstringoptionalNew subject line.
close_emails_list#List email activities in Close, optionally filtered by lead or user.6 params

List email activities in Close, optionally filtered by lead or user.

NameTypeRequiredDescription
_fieldsstringoptionalComma-separated list of fields to return.
_limitintegeroptionalMaximum number of results to return.
_skipintegeroptionalNumber of results to skip (offset).
contact_idstringoptionalFilter by contact ID.
lead_idstringoptionalFilter by lead ID.
user_idstringoptionalFilter by user ID.
close_lead_create#Create a new lead in Close with name, contacts, addresses, and custom fields.4 params

Create a new lead in Close with name, contacts, addresses, and custom fields.

NameTypeRequiredDescription
namestringrequiredName of the lead / company.
descriptionstringoptionalDescription or notes about the lead.
status_idstringoptionalLead status ID.
urlstringoptionalWebsite URL of the lead.
close_lead_delete#Permanently delete a lead and all its associated data from Close.1 param

Permanently delete a lead and all its associated data from Close.

NameTypeRequiredDescription
lead_idstringrequiredID of the lead to delete.
close_lead_get#Retrieve a single lead by ID from Close.2 params

Retrieve a single lead by ID from Close.

NameTypeRequiredDescription
lead_idstringrequiredID of the lead to retrieve.
_fieldsstringoptionalComma-separated list of fields to return.
close_lead_merge#Merge two leads into one. The source lead is merged into the destination lead.2 params

Merge two leads into one. The source lead is merged into the destination lead.

NameTypeRequiredDescription
destinationstringrequiredID of the lead to merge into (will be kept).
sourcestringrequiredID of the lead to merge from (will be deleted).
close_lead_update#Update an existing lead's name, status, description, or custom fields.5 params

Update an existing lead's name, status, description, or custom fields.

NameTypeRequiredDescription
lead_idstringrequiredID of the lead to update.
descriptionstringoptionalUpdated description.
namestringoptionalNew name for the lead.
status_idstringoptionalNew lead status ID.
urlstringoptionalNew website URL.
close_leads_list#List and search leads in Close. Supports full-text search and sorting.5 params

List and search leads in Close. Supports full-text search and sorting.

NameTypeRequiredDescription
_fieldsstringoptionalComma-separated list of fields to return.
_limitintegeroptionalMaximum number of results to return.
_order_bystringoptionalField to sort by. Prefix with - for descending.
_skipintegeroptionalNumber of results to skip (offset).
querystringoptionalFull-text search query to filter leads.
close_me_get#Retrieve information about the authenticated Close user.0 params

Retrieve information about the authenticated Close user.

close_note_create#Create a note activity on a lead in Close.3 params

Create a note activity on a lead in Close.

NameTypeRequiredDescription
lead_idstringrequiredID of the lead to attach this note to.
notestringrequiredNote body text (plain text).
contact_idstringoptionalID of the contact this note relates to.
close_note_delete#Delete a note activity from Close.1 param

Delete a note activity from Close.

NameTypeRequiredDescription
note_idstringrequiredID of the note to delete.
close_note_get#Retrieve a single note activity by ID.1 param

Retrieve a single note activity by ID.

NameTypeRequiredDescription
note_idstringrequiredID of the note activity.
close_note_update#Update the body text of a note activity.2 params

Update the body text of a note activity.

NameTypeRequiredDescription
notestringrequiredUpdated note body text.
note_idstringrequiredID of the note to update.
close_notes_list#List note activities in Close, optionally filtered by lead or user.6 params

List note activities in Close, optionally filtered by lead or user.

NameTypeRequiredDescription
_fieldsstringoptionalComma-separated list of fields to return.
_limitintegeroptionalMaximum number of results to return.
_skipintegeroptionalNumber of results to skip (offset).
contact_idstringoptionalFilter by contact ID.
lead_idstringoptionalFilter by lead ID.
user_idstringoptionalFilter by user ID.
close_opportunities_list#List opportunities in Close, with optional filters by lead, user, or status.8 params

List opportunities in Close, with optional filters by lead, user, or status.

NameTypeRequiredDescription
_fieldsstringoptionalComma-separated list of fields to return.
_limitintegeroptionalMaximum number of results to return.
_order_bystringoptionalField to sort by. Prefix with - for descending.
_skipintegeroptionalNumber of results to skip (offset).
lead_idstringoptionalFilter by lead ID.
status_idstringoptionalFilter by opportunity status ID.
status_typestringoptionalFilter by status type: active, won, or lost.
user_idstringoptionalFilter by assigned user ID.
close_opportunity_create#Create a new opportunity (deal) in Close and associate it with a lead.9 params

Create a new opportunity (deal) in Close and associate it with a lead.

NameTypeRequiredDescription
lead_idstringrequiredID of the lead for this opportunity.
status_idstringrequiredID of the opportunity status.
confidenceintegeroptionalWin probability percentage (0-100).
date_wonstringoptionalDate won (YYYY-MM-DD), set when status is won.
expected_datestringoptionalExpected close date (YYYY-MM-DD).
notestringoptionalNote about this opportunity.
valueintegeroptionalMonetary value of the opportunity in cents.
value_currencystringoptionalCurrency code, e.g. USD.
value_periodstringoptionalBilling period: one_time, monthly, or annual.
close_opportunity_delete#Delete an opportunity from Close.1 param

Delete an opportunity from Close.

NameTypeRequiredDescription
opportunity_idstringrequiredID of the opportunity to delete.
close_opportunity_get#Retrieve a single opportunity by ID from Close.2 params

Retrieve a single opportunity by ID from Close.

NameTypeRequiredDescription
opportunity_idstringrequiredID of the opportunity.
_fieldsstringoptionalComma-separated list of fields to return.
close_opportunity_update#Update an opportunity's status, value, note, or confidence.9 params

Update an opportunity's status, value, note, or confidence.

NameTypeRequiredDescription
opportunity_idstringrequiredID of the opportunity to update.
confidenceintegeroptionalWin probability (0-100).
date_wonstringoptionalDate won (YYYY-MM-DD).
expected_datestringoptionalExpected close date (YYYY-MM-DD).
notestringoptionalUpdated note.
status_idstringoptionalNew status ID.
valueintegeroptionalUpdated monetary value in cents.
value_currencystringoptionalCurrency code, e.g. USD.
value_periodstringoptionalBilling period: one_time, monthly, or annual.
close_pipeline_create#Create a new opportunity pipeline in Close.1 param

Create a new opportunity pipeline in Close.

NameTypeRequiredDescription
namestringrequiredName of the pipeline.
close_pipeline_delete#Delete a pipeline from Close.1 param

Delete a pipeline from Close.

NameTypeRequiredDescription
pipeline_idstringrequiredID of the pipeline to delete.
close_pipeline_get#Retrieve a single pipeline by ID.1 param

Retrieve a single pipeline by ID.

NameTypeRequiredDescription
pipeline_idstringrequiredID of the pipeline.
close_pipeline_update#Update an existing pipeline's name or statuses.2 params

Update an existing pipeline's name or statuses.

NameTypeRequiredDescription
pipeline_idstringrequiredID of the pipeline to update.
namestringoptionalNew pipeline name.
close_pipelines_list#List all opportunity pipelines in the Close organization.3 params

List all opportunity pipelines in the Close organization.

NameTypeRequiredDescription
_fieldsstringoptionalComma-separated list of fields to return.
_limitintegeroptionalMaximum number of results to return.
_skipintegeroptionalNumber of results to skip (offset).
close_sequence_get#Retrieve a single sequence by ID.1 param

Retrieve a single sequence by ID.

NameTypeRequiredDescription
sequence_idstringrequiredID of the sequence.
close_sequence_subscription_create#Enroll a contact in a Close sequence.3 params

Enroll a contact in a Close sequence.

NameTypeRequiredDescription
contact_idstringrequiredID of the contact to enroll.
sequence_idstringrequiredID of the sequence to enroll in.
sender_account_idstringoptionalID of the sender email account.
close_sequence_subscription_get#Retrieve a single sequence subscription by ID.1 param

Retrieve a single sequence subscription by ID.

NameTypeRequiredDescription
subscription_idstringrequiredID of the subscription.
close_sequence_subscription_update#Pause or resume a contact's sequence subscription.2 params

Pause or resume a contact's sequence subscription.

NameTypeRequiredDescription
subscription_idstringrequiredID of the subscription to update.
pausebooleanoptionalSet to true to pause the subscription, false to resume.
close_sequence_subscriptions_list#List sequence subscriptions. Provide one of lead_id, contact_id, or sequence_id to filter results.6 params

List sequence subscriptions. Provide one of lead_id, contact_id, or sequence_id to filter results.

NameTypeRequiredDescription
_fieldsstringoptionalComma-separated list of fields to return.
_limitintegeroptionalMaximum number of results to return.
_skipintegeroptionalNumber of results to skip (offset).
contact_idstringoptionalFilter by contact ID.
lead_idstringoptionalFilter by lead ID.
sequence_idstringoptionalFilter by sequence ID.
close_sequences_list#List email/activity sequences in Close.3 params

List email/activity sequences in Close.

NameTypeRequiredDescription
_fieldsstringoptionalComma-separated list of fields to return.
_limitintegeroptionalMaximum number of results to return.
_skipintegeroptionalNumber of results to skip (offset).
close_sms_create#Log or send an SMS activity on a lead in Close.6 params

Log or send an SMS activity on a lead in Close.

NameTypeRequiredDescription
lead_idstringrequiredID of the lead for this SMS.
statusstringrequiredSMS status: inbox, draft, scheduled, outbox, sent.
contact_idstringoptionalID of the contact for this SMS.
local_phonestringoptionalYour local phone number to send from.
remote_phonestringoptionalRecipient phone number.
textstringoptionalBody text of the SMS message.
close_sms_delete#Delete an SMS activity from Close.1 param

Delete an SMS activity from Close.

NameTypeRequiredDescription
sms_idstringrequiredID of the SMS to delete.
close_sms_get#Retrieve a single SMS activity by ID.1 param

Retrieve a single SMS activity by ID.

NameTypeRequiredDescription
sms_idstringrequiredID of the SMS activity.
close_sms_list#List SMS activities in Close, optionally filtered by lead or user.6 params

List SMS activities in Close, optionally filtered by lead or user.

NameTypeRequiredDescription
_fieldsstringoptionalComma-separated list of fields to return.
_limitintegeroptionalMaximum number of results to return.
_skipintegeroptionalNumber of results to skip (offset).
contact_idstringoptionalFilter by contact ID.
lead_idstringoptionalFilter by lead ID.
user_idstringoptionalFilter by user ID.
close_sms_update#Update an SMS activity's text or status.3 params

Update an SMS activity's text or status.

NameTypeRequiredDescription
sms_idstringrequiredID of the SMS to update.
statusstringoptionalNew SMS status.
textstringoptionalUpdated message text.
close_task_create#Create a new task in Close and assign it to a lead and user.6 params

Create a new task in Close and assign it to a lead and user.

NameTypeRequiredDescription
lead_idstringrequiredID of the lead to associate this task with.
_typestringoptionalTask type, default is lead.
assigned_tostringoptionalUser ID to assign the task to.
datestringoptionalTask due date (YYYY-MM-DD or ISO 8601).
is_completebooleanoptionalWhether the task is already complete.
textstringoptionalTask description / title.
close_task_delete#Delete a task from Close.1 param

Delete a task from Close.

NameTypeRequiredDescription
task_idstringrequiredID of the task to delete.
close_task_get#Retrieve a single task by ID from Close.2 params

Retrieve a single task by ID from Close.

NameTypeRequiredDescription
task_idstringrequiredID of the task.
_fieldsstringoptionalComma-separated list of fields to return.
close_task_update#Update a task's text, assigned user, due date, or completion status.5 params

Update a task's text, assigned user, due date, or completion status.

NameTypeRequiredDescription
task_idstringrequiredID of the task to update.
assigned_tostringoptionalNew assigned user ID.
datestringoptionalNew due date (YYYY-MM-DD).
is_completebooleanoptionalMark task as complete or incomplete.
textstringoptionalNew task description.
close_tasks_list#List tasks in Close. Filter by lead, assigned user, type, or completion status.9 params

List tasks in Close. Filter by lead, assigned user, type, or completion status.

NameTypeRequiredDescription
_fieldsstringoptionalComma-separated list of fields to return.
_limitintegeroptionalMaximum number of results to return.
_order_bystringoptionalSort field. Prefix with - for descending.
_skipintegeroptionalNumber of results to skip (offset).
_typestringoptionalTask type: lead, incoming_email, email, automated_email, outgoing_call.
assigned_tostringoptionalFilter by assigned user ID.
is_completebooleanoptionalFilter by completion: true or false.
lead_idstringoptionalFilter by lead ID.
viewstringoptionalPredefined view: inbox, future, or archive.
close_user_get#Retrieve a single user by ID from Close.2 params

Retrieve a single user by ID from Close.

NameTypeRequiredDescription
user_idstringrequiredID of the user.
_fieldsstringoptionalComma-separated list of fields to return.
close_users_list#List all users in the Close organization.3 params

List all users in the Close organization.

NameTypeRequiredDescription
_fieldsstringoptionalComma-separated list of fields to return.
_limitintegeroptionalMaximum number of results to return.
_skipintegeroptionalNumber of results to skip (offset).
close_webhook_create#Create a new webhook subscription to receive Close event notifications.3 params

Create a new webhook subscription to receive Close event notifications.

NameTypeRequiredDescription
eventsstringrequiredJSON array of event objects to subscribe to, e.g. [{"object_type":"lead","action":"created"}].
urlstringrequiredHTTPS endpoint URL to receive webhook events.
verify_sslbooleanoptionalWhether to verify SSL certificates.
close_webhook_delete#Delete a webhook subscription from Close.1 param

Delete a webhook subscription from Close.

NameTypeRequiredDescription
webhook_idstringrequiredID of the webhook to delete.
close_webhook_get#Retrieve a single webhook subscription by ID.1 param

Retrieve a single webhook subscription by ID.

NameTypeRequiredDescription
webhook_idstringrequiredID of the webhook.
close_webhook_update#Update a webhook subscription's URL or event subscriptions.4 params

Update a webhook subscription's URL or event subscriptions.

NameTypeRequiredDescription
webhook_idstringrequiredID of the webhook to update.
eventsstringoptionalNew JSON array of event objects.
urlstringoptionalNew HTTPS endpoint URL.
verify_sslbooleanoptionalWhether to verify SSL certificates.
close_webhooks_list#List all webhook subscriptions in Close.3 params

List all webhook subscriptions in Close.

NameTypeRequiredDescription
_fieldsstringoptionalComma-separated list of fields to return.
_limitintegeroptionalMaximum number of results to return.
_skipintegeroptionalNumber of results to skip (offset).