Open Connector
All tools

Close

Connect to Close to manage CRM leads, contacts, opportunities, activities, tasks, calls, emails, and reporting.

closev1.0.0295 tools

Authentication

MethodKindStatusDetails
OAuth 2.0oauth2available

Call a tool

import { createClient } from "@open-connector/sdk";const oc = createClient({  baseUrl: "https://api.openconnector.dev",  apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await oc.executeTool({  slug: "CLOSE_ADD_MEMBER",  connectedAccountId: "conn_...",  arguments: { /* match this tool's input schema */ },});
import Composio from "@composio/client";const composio = new Composio({  baseURL: "https://api.openconnector.dev/composio",  apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await composio.tools.execute("CLOSE_ADD_MEMBER", {  connected_account_id: "conn_...",  arguments: { /* match this tool's input schema */ },});
oc tools execute CLOSE_ADD_MEMBER --data '{ }'

Tool catalog

Available tools

295 callable operations

Add a User to a GroupCLOSE_ADD_MEMBERAdd a user to a group by providing the `user_id`. If the user is already a member, nothing changes.

Add a user to a group by providing the `user_id`. If the user is already a member, nothing changes.

Authentication

Connected account required

Tags

groups
Archive a playbookCLOSE_ARCHIVEArchive an existing playbook. Archived playbooks are hidden from active listings but retain their associated history.

Archive an existing playbook. Archived playbooks are hidden from active listings but retain their associated history.

Authentication

Connected account required

Tags

playbooks
Edit Send As Associations in bulkCLOSE_BULK_CREATEYou can allow and disallow many other users to send as you in a single command by supplying the user IDs you want to allow and disallow. Once completed, this endpoint returns all existing associations where your user is the allowing user.

You can allow and disallow many other users to send as you in a single command by supplying the user IDs you want to allow and disallow. Once completed, this endpoint returns all existing associations where your user is the allowing user.

Authentication

Connected account required

Tags

send_as
Bulk-update tasksCLOSE_BULK_UPDATEAny of the filters of the GET endpoint may be used as query parameters or passed in the request body (see [Filter Parameters](https://developer.close.com/api/overview/filter-parameters)). For example: ```json {"_params": {"id__in": "task_A,task_B,task_C"}, "is_complete": true} ``` Only the `assigned_to`, `date` and `is_complete` fields may be updated.

Any of the filters of the GET endpoint may be used as query parameters or passed in the request body (see [Filter Parameters](https://developer.close.com/api/overview/filter-parameters)). For example: ```json {"_params": {"id__in": "task_A,task_B,task_C"}, "is_complete": true} ``` Only the `assigned_to`, `date` and `is_complete` fields may be updated.

Authentication

Connected account required

Tags

tasks
Create a new leadCLOSE_CREATEContacts, addresses, and custom fields can all be nested in the lead. Activities, tasks, and opportunities must be posted separately. **status / status_id** (optional): Post either `status` or `status_id` (but not both). If neither is provided, the organization's default (first) status will be used. Using `status_id` is recommended so that users can rename statuses in the UI without breaking your implementation. **custom.FIELD_ID** (optional): Set custom fields by setting `custom.FIELD_ID` to the field value, where FIELD_ID is the ID of the custom field, e.g.: ```json { "custom.cf_v6S011I6MqcbVvB2FA5Nk8dr5MkL8sWuCiG8cUleO9c": "value", "custom.cf_8wtBWsdRU2Fur7GDnEeXQ7ra2Vu7R4hG1SNYdiEhh0F": "other value" } ``` If a custom field has `accepts_multiple_values: true`, the entire value will be replaced. For example, given a Lead has a Custom Choice Field with value `["A", "B"]`, adding choice `"C"` would mean setting the value to `["A", "B", "C"]`. Note that using the `custom` field dict or the `custom.FIELD_NAME` syntax (instead of custom field IDs) is deprecated and will be removed from the API. See [Custom Fields](https://developer.close.com/api/resources/custom-fields) for more details.

Contacts, addresses, and custom fields can all be nested in the lead. Activities, tasks, and opportunities must be posted separately. **status / status_id** (optional): Post either `status` or `status_id` (but not both). If neither is provided, the organization's default (first) status will be used. Using `status_id` is recommended so that users can rename statuses in the UI without breaking your implementation. **custom.FIELD_ID** (optional): Set custom fields by setting `custom.FIELD_ID` to the field value, where FIELD_ID is the ID of the custom field, e.g.: ```json { "custom.cf_v6S011I6MqcbVvB2FA5Nk8dr5MkL8sWuCiG8cUleO9c": "value", "custom.cf_8wtBWsdRU2Fur7GDnEeXQ7ra2Vu7R4hG1SNYdiEhh0F": "other value" } ``` If a custom field has `accepts_multiple_values: true`, the entire value will be replaced. For example, given a Lead has a Custom Choice Field with value `["A", "B"]`, adding choice `"C"` would mean setting the value to `["A", "B", "C"]`. Note that using the `custom` field dict or the `custom.FIELD_NAME` syntax (instead of custom field IDs) is deprecated and will be removed from the API. See [Custom Fields](https://developer.close.com/api/resources/custom-fields) for more details.

Authentication

Connected account required

Tags

leads
Associate a Shared Custom Field with an object typeCLOSE_CREATE_ASSOCIATIONAssociates a Shared Custom Field with an object type such as Lead, Contact, or Custom Activity Type. Once associated, the Shared Custom Field can be set on objects of that type. This endpoint accepts the following attributes: - `object_type` – can be one of: `lead`, `contact`, `opportunity`, `custom_activity_type`, `custom_object_type`. - `custom_activity_type_id` – ID of the Custom Activity Type that you want to associate this Shared Field with. Only relevant if you chose the `object_type` of `custom_activity_type`. - `custom_object_type_id` – ID of the Custom Object Type that you want to associate this Shared Field with. Only relevant if you chose the `object_type` of `custom_object_type`. - `editable_with_roles` – list of [Roles](https://developer.close.com/api/resources/roles) that can edit the values of this Field on the given object. Note that this is a per-association setting, meaning that editing of the Shared Custom Field can be restricted on one object and not restricted on another. - `required` – whether a value *must* be provided for this Field on the given object. Only relevant if you chose the `object_type` of `custom_activity_type` or `custom_object_type`. Note that this is a per-association setting, meaning that this Shared Custom Field can be required on one object and not required on another.

Associates a Shared Custom Field with an object type such as Lead, Contact, or Custom Activity Type. Once associated, the Shared Custom Field can be set on objects of that type. This endpoint accepts the following attributes: - `object_type` – can be one of: `lead`, `contact`, `opportunity`, `custom_activity_type`, `custom_object_type`. - `custom_activity_type_id` – ID of the Custom Activity Type that you want to associate this Shared Field with. Only relevant if you chose the `object_type` of `custom_activity_type`. - `custom_object_type_id` – ID of the Custom Object Type that you want to associate this Shared Field with. Only relevant if you chose the `object_type` of `custom_object_type`. - `editable_with_roles` – list of [Roles](https://developer.close.com/api/resources/roles) that can edit the values of this Field on the given object. Note that this is a per-association setting, meaning that editing of the Shared Custom Field can be restricted on one object and not restricted on another. - `required` – whether a value *must* be provided for this Field on the given object. Only relevant if you chose the `object_type` of `custom_activity_type` or `custom_object_type`. Note that this is a per-association setting, meaning that this Shared Custom Field can be required on one object and not required on another.

Authentication

Connected account required

Tags

custom_fields.shared
Create or update third-party Meeting integrationCLOSE_CREATE_INTEGRATIONPlease note that only OAuth apps can perform this operation. Using API key will result in an error. See [Authentication with OAuth](https://developer.close.com/api/overview/oauth-authentication) for more information. Third party integrations are presented as tabs titled with OAuth app name in the activity feed. When invoked for the first time with a given OAuth app a new integration is created, subsequent calls with the same OAuth app will update an existing integration. Submitting an empty JSON body does nothing.

Please note that only OAuth apps can perform this operation. Using API key will result in an error. See [Authentication with OAuth](https://developer.close.com/api/overview/oauth-authentication) for more information. Third party integrations are presented as tabs titled with OAuth app name in the activity feed. When invoked for the first time with a given OAuth app a new integration is created, subsequent calls with the same OAuth app will update an existing integration. Submitting an empty JSON body does nothing.

Authentication

Connected account required

Tags

activities.meetings
Export leads based on a search queryCLOSE_CREATE_LEADYou will receive a link to the generated file via email once the export is done. The exported file is GZIP compressed to make your download and our upload faster. The `content-encoding` HTTP header will be set to `gzip` and the `content-type` HTTP header will be set to `text/csv` for CSV exports or `application/json` for JSON exports. Parameters: - `s_query/results_limit/sort` (optional) - The [Advanced Filtering API](https://developer.close.com/api/resources/advanced-filtering) parameters used to narrow the exported results down. By default, all leads are exported. - `format` - Format of the exported file. The choices are: `csv`, `json`. JSON is recommended for raw backups or data migrations. - `type` - Type of the export. - `leads` - For CSV exports, it results in one row per lead. For JSON exports, this is the recommended type and is a superset of the other two types. - `contacts` - For CSV exports, it results in one row per contact. - `lead_opps` - For CSV exports, it results in one row per opportunity. - `date_format` (optional) - Controls the format of date objects. Note: this only works with the `csv` format. - `original` (default) - A date format that includes microseconds and timezone information. - Date: `[YYYY]-[MM]-[DD]` - Date w/ time: `[YYYY]-[MM]-[DD] [hh]:[mm]:[ss.sssss]±[hh]:[mm]` - `iso8601` (recommended) - An [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) compatible date representation that does not include microseconds. - Date: `[YYYY]-[MM]-[DD]` - Date w/ time: `[YYYY]-[MM]-[DD]T[hh]:[mm]:[ss]±[hh]:[mm]` - `excel` - An Excel compatible date format. Dates are always in UTC, do not include timezone information or microseconds, and use a 12 hour clock with an AM or PM designation. - Date: `[YYYY]-[MM]-[DD]` - Date w/ time: `[YYYY]-[MM]-[DD] [hh]:[mm]:[ss] [AM|PM]` - `fields` (optional) - By default we return all the data fields in each export type. If you only need specific fields exported, you can explicitly list them in `fields` to get smaller exports. - `include_activities` (optional) - Activities aren't included in any exports by default. If you want all your Activities exported as well, pass `"include_activities": true`. Note: this only works for `leads` type with `json` format. - `include_smart_fields` (optional) - Smart Fields aren't included in any exports by default. If you want all of them exported as well, pass `"include_smart_fields": true`. Note: this only works for `leads` type with `json` format or any type formatted as `csv`. Smart fields are calculated fields, like number of emails on a lead. - `send_done_email` - Set to `false` if you don't want to get a confirmation email after the bulk action is done.

You will receive a link to the generated file via email once the export is done. The exported file is GZIP compressed to make your download and our upload faster. The `content-encoding` HTTP header will be set to `gzip` and the `content-type` HTTP header will be set to `text/csv` for CSV exports or `application/json` for JSON exports. Parameters: - `s_query/results_limit/sort` (optional) - The [Advanced Filtering API](https://developer.close.com/api/resources/advanced-filtering) parameters used to narrow the exported results down. By default, all leads are exported. - `format` - Format of the exported file. The choices are: `csv`, `json`. JSON is recommended for raw backups or data migrations. - `type` - Type of the export. - `leads` - For CSV exports, it results in one row per lead. For JSON exports, this is the recommended type and is a superset of the other two types. - `contacts` - For CSV exports, it results in one row per contact. - `lead_opps` - For CSV exports, it results in one row per opportunity. - `date_format` (optional) - Controls the format of date objects. Note: this only works with the `csv` format. - `original` (default) - A date format that includes microseconds and timezone information. - Date: `[YYYY]-[MM]-[DD]` - Date w/ time: `[YYYY]-[MM]-[DD] [hh]:[mm]:[ss.sssss]±[hh]:[mm]` - `iso8601` (recommended) - An [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) compatible date representation that does not include microseconds. - Date: `[YYYY]-[MM]-[DD]` - Date w/ time: `[YYYY]-[MM]-[DD]T[hh]:[mm]:[ss]±[hh]:[mm]` - `excel` - An Excel compatible date format. Dates are always in UTC, do not include timezone information or microseconds, and use a 12 hour clock with an AM or PM designation. - Date: `[YYYY]-[MM]-[DD]` - Date w/ time: `[YYYY]-[MM]-[DD] [hh]:[mm]:[ss] [AM|PM]` - `fields` (optional) - By default we return all the data fields in each export type. If you only need specific fields exported, you can explicitly list them in `fields` to get smaller exports. - `include_activities` (optional) - Activities aren't included in any exports by default. If you want all your Activities exported as well, pass `"include_activities": true`. Note: this only works for `leads` type with `json` format. - `include_smart_fields` (optional) - Smart Fields aren't included in any exports by default. If you want all of them exported as well, pass `"include_smart_fields": true`. Note: this only works for `leads` type with `json` format or any type formatted as `csv`. Smart fields are calculated fields, like number of emails on a lead. - `send_done_email` - Set to `false` if you don't want to get a confirmation email after the bulk action is done.

Authentication

Connected account required

Tags

exports
Export opportunities, based on opportunity filtersCLOSE_CREATE_OPPORTUNITYParameters: - `params` (optional) - A dictionary of filters, which would be used for the `/opportunity/` endpoint. - `format` - Format of the exported file. The choices are: `csv`, `json` - `date_format` (optional) - Controls the format of date objects. Note: this only works with the `csv` format. - `original` (default) - A date format that includes microseconds and timezone information. - Date: `[YYYY]-[MM]-[DD]` - Date w/ time: `[YYYY]-[MM]-[DD] [hh]:[mm]:[ss.sssss]±[hh]:[mm]` - `iso8601` (recommended) - An [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) compatible date representation that does not include microseconds. - Date: `[YYYY]-[MM]-[DD]` - Date w/ time: `[YYYY]-[MM]-[DD]T[hh]:[mm]:[ss]±[hh]:[mm]` - `excel` - An Excel compatible date format. Dates are always in UTC, do not include timezone information or microseconds, and use a 12 hour clock with an AM or PM designation. - Date: `[YYYY]-[MM]-[DD]` - Date w/ time: `[YYYY]-[MM]-[DD] [hh]:[mm]:[ss] [AM|PM]` - `fields` (optional) - By default we return all the data fields. If you only need specific fields exported, you can explicitly list them in fields to get smaller exports. - `send_done_email` - Set to `false` if you don't want to get a confirmation email after the bulk action is done.

Parameters: - `params` (optional) - A dictionary of filters, which would be used for the `/opportunity/` endpoint. - `format` - Format of the exported file. The choices are: `csv`, `json` - `date_format` (optional) - Controls the format of date objects. Note: this only works with the `csv` format. - `original` (default) - A date format that includes microseconds and timezone information. - Date: `[YYYY]-[MM]-[DD]` - Date w/ time: `[YYYY]-[MM]-[DD] [hh]:[mm]:[ss.sssss]±[hh]:[mm]` - `iso8601` (recommended) - An [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) compatible date representation that does not include microseconds. - Date: `[YYYY]-[MM]-[DD]` - Date w/ time: `[YYYY]-[MM]-[DD]T[hh]:[mm]:[ss]±[hh]:[mm]` - `excel` - An Excel compatible date format. Dates are always in UTC, do not include timezone information or microseconds, and use a 12 hour clock with an AM or PM designation. - Date: `[YYYY]-[MM]-[DD]` - Date w/ time: `[YYYY]-[MM]-[DD] [hh]:[mm]:[ss] [AM|PM]` - `fields` (optional) - By default we return all the data fields. If you only need specific fields exported, you can explicitly list them in fields to get smaller exports. - `send_done_email` - Set to `false` if you don't want to get a confirmation email after the bulk action is done.

Authentication

Connected account required

Tags

exports
Create a Shared Scheduling LinkCLOSE_CREATE_SHAREDCreate a Shared Scheduling Link

Create a Shared Scheduling Link

Authentication

Connected account required

Tags

scheduling_links
Map a Shared Scheduling LinkCLOSE_CREATE_SHARED_ASSOCIATIONMap a Shared Scheduling Link to either a User Scheduling Link or a URL. See the examples below for both mapping options.

Map a Shared Scheduling Link to either a User Scheduling Link or a URL. See the examples below for both mapping options.

Authentication

Connected account required

Tags

scheduling_links
Subscribe a Contact to a SequenceCLOSE_CREATE_SUBSCRIPTIONSubscribe a Contact to a Sequence

Subscribe a Contact to a Sequence

Authentication

Connected account required

Tags

sequences
Delete a leadCLOSE_DELETEDelete a lead

Delete a lead

Authentication

Connected account required

Tags

leads
Delete a Call activityCLOSE_DELETE_ACTIVITY_CALL_IDDelete a Call activity

Delete a Call activity

Authentication

Connected account required

Tags

activities.calls
Delete a Custom Activity instanceCLOSE_DELETE_ACTIVITY_CUSTOM_IDDelete a Custom Activity instance

Delete a Custom Activity instance

Authentication

Connected account required

Tags

activities.custom_activities
Delete an Email activityCLOSE_DELETE_ACTIVITY_EMAIL_IDDelete an Email activity

Delete an Email activity

Authentication

Connected account required

Tags

activities.emails
Delete an EmailThread activityCLOSE_DELETE_ACTIVITY_EMAILTHREAD_IDThis will also delete all the email activities belonging to this thread.

This will also delete all the email activities belonging to this thread.

Authentication

Connected account required

Tags

activities.email_threads
Delete a FormSubmission activityCLOSE_DELETE_ACTIVITY_FORM_SUBMISSION_IDDelete a FormSubmission activity

Delete a FormSubmission activity

Authentication

Connected account required

Tags

activities.form_submissions
Delete a Meeting activityCLOSE_DELETE_ACTIVITY_MEETING_IDDelete a Meeting activity

Delete a Meeting activity

Authentication

Connected account required

Tags

activities.meetings
Delete a Note activityCLOSE_DELETE_ACTIVITY_NOTE_IDDelete a Note activity

Delete a Note activity

Authentication

Connected account required

Tags

activities.notes
Delete an SMS activityCLOSE_DELETE_ACTIVITY_SMS_IDDelete an SMS activity

Delete an SMS activity

Authentication

Connected account required

Tags

activities.sms
Delete a single LeadStatusChange activityCLOSE_DELETE_ACTIVITY_STATUS_CHANGE_LEAD_IDDeleting a LeadStatusChange does not change the status of the Lead. It only removes the status change event from the Lead's activity feed. It should only be used if the status change is irrelevant (such as records for a change that has been reverted) and having it in the activity feed is causing integration problems with another system.

Deleting a LeadStatusChange does not change the status of the Lead. It only removes the status change event from the Lead's activity feed. It should only be used if the status change is irrelevant (such as records for a change that has been reverted) and having it in the activity feed is causing integration problems with another system.

Authentication

Connected account required

Tags

activities.lead_status_changes
Delete a single OpportunityStatusChange activityCLOSE_DELETE_ACTIVITY_STATUS_CHANGE_OPPORTUNITY_IDDeleting an OpportunityStatusChange does not change the status of the Opportunity. It only removes the status change event from the Lead's activity feed. It should only be used if the status change is irrelevant (such as records for a change that has been reverted) and having it in the activity feed is causing integration problems with another system.

Deleting an OpportunityStatusChange does not change the status of the Opportunity. It only removes the status change event from the Lead's activity feed. It should only be used if the status change is irrelevant (such as records for a change that has been reverted) and having it in the activity feed is causing integration problems with another system.

Authentication

Connected account required

Tags

activities.opportunity_status_changes
Delete a TaskCompleted activityCLOSE_DELETE_ACTIVITY_TASK_COMPLETED_IDDelete a TaskCompleted activity

Delete a TaskCompleted activity

Authentication

Connected account required

Tags

activities.task_completions
Delete a WhatsAppMessage activityCLOSE_DELETE_ACTIVITY_WHATSAPP_MESSAGE_IDDelete a WhatsAppMessage activity

Delete a WhatsAppMessage activity

Authentication

Connected account required

Tags

activities.whatsapp_messages
Disassociate a Shared Custom Field from an object typeCLOSE_DELETE_ASSOCIATIONRemove the association between a shared custom field and an object type. The field will immediately disappear from API responses for that object type and all stored values will be permanently deleted. The `object_type` in the URL can be `lead`, `contact`, `opportunity`, `custom_activity_type/<catype_id>`, or `custom_object_type/<cotype_id>`. If the field was `required` on the associated type, removing the association also removes that requirement.

Remove the association between a shared custom field and an object type. The field will immediately disappear from API responses for that object type and all stored values will be permanently deleted. The `object_type` in the URL can be `lead`, `contact`, `opportunity`, `custom_activity_type/<catype_id>`, or `custom_object_type/<cotype_id>`. If the field was `required` on the associated type, removing the association also removes that requirement.

Authentication

Connected account required

Tags

custom_fields.shared
Delete a Blocked Phone NumberCLOSE_DELETE_BLOCKED_PHONE_NUMBER_IDOnce the given Blocked Phone Number record is deleted, the specified " "phone number will again be able to make calls into your organization " "and you'll be able to make calls to it.

Once the given Blocked Phone Number record is deleted, the specified " "phone number will again be able to make calls into your organization " "and you'll be able to make calls to it.

Authentication

Connected account required

Tags

blocked_phone_numbers
Delete a Send As Association by allowed userCLOSE_DELETE_BY_USERThe `allowing_user_id` must be equal to your user ID. Supply both the `allowing_user_id` and the `allowed_user_id` to delete an association by those users.

The `allowing_user_id` must be equal to your user ID. Supply both the `allowing_user_id` and the `allowed_user_id` to delete an association by those users.

Authentication

Connected account required

Tags

send_as
Remove a commentCLOSE_DELETE_COMMENT_IDNote that contrary to the HTTP verb, this does not necessarily _delete_ a comment (but it will _remove_ it). Comments bodies are removed, but the comment object still exists until all comments in a thread are removed (at which point the entire thread is deleted). Permissions around removing comments inherit from the users permission to delete their own or other users' activities.

Note that contrary to the HTTP verb, this does not necessarily _delete_ a comment (but it will _remove_ it). Comments bodies are removed, but the comment object still exists until all comments in a thread are removed (at which point the entire thread is deleted). Permissions around removing comments inherit from the users permission to delete their own or other users' activities.

Authentication

Connected account required

Tags

comments
Delete a contactCLOSE_DELETE_CONTACT_IDDelete a contact

Delete a contact

Authentication

Connected account required

Tags

contacts
Delete a Custom Activity TypeCLOSE_DELETE_CUSTOM_ACTIVITY_IDDelete a Custom Activity Type

Delete a Custom Activity Type

Authentication

Connected account required

Tags

custom_activity_types
Delete an Activity Custom FieldCLOSE_DELETE_CUSTOM_FIELD_ACTIVITY_IDDelete an activity custom field. The field will immediately disappear from API responses and values on existing activities will be permanently removed.

Delete an activity custom field. The field will immediately disappear from API responses and values on existing activities will be permanently removed.

Authentication

Connected account required

Tags

custom_fields.activity
Delete a Contact Custom FieldCLOSE_DELETE_CUSTOM_FIELD_CONTACT_IDDelete a contact custom field. The field will immediately disappear from API responses and values on existing contacts will be permanently removed.

Delete a contact custom field. The field will immediately disappear from API responses and values on existing contacts will be permanently removed.

Authentication

Connected account required

Tags

custom_fields.contact
Delete a Custom Object Custom FieldCLOSE_DELETE_CUSTOM_FIELD_CUSTOM_OBJECT_TYPE_IDDelete a custom field from a custom object type. The field will immediately disappear from API responses and values on existing custom object instances will be permanently removed.

Delete a custom field from a custom object type. The field will immediately disappear from API responses and values on existing custom object instances will be permanently removed.

Authentication

Connected account required

Tags

custom_fields.custom_object
Delete a Lead Custom FieldCLOSE_DELETE_CUSTOM_FIELD_LEAD_IDDelete a lead custom field. The field will immediately disappear from API responses and values on existing leads will be permanently removed.

Delete a lead custom field. The field will immediately disappear from API responses and values on existing leads will be permanently removed.

Authentication

Connected account required

Tags

custom_fields.lead
Delete an Opportunity Custom FieldCLOSE_DELETE_CUSTOM_FIELD_OPPORTUNITY_IDDelete an opportunity custom field. The field will immediately disappear from API responses and values on existing opportunities will be permanently removed.

Delete an opportunity custom field. The field will immediately disappear from API responses and values on existing opportunities will be permanently removed.

Authentication

Connected account required

Tags

custom_fields.opportunity
Delete a Shared Custom FieldCLOSE_DELETE_CUSTOM_FIELD_SHARED_IDDelete a shared custom field and all its associations. The field will immediately disappear from API responses and values on all associated object types will be permanently removed.

Delete a shared custom field and all its associations. The field will immediately disappear from API responses and values on all associated object types will be permanently removed.

Authentication

Connected account required

Tags

custom_fields.shared
Delete a Custom Object instanceCLOSE_DELETE_CUSTOM_OBJECT_IDDelete a Custom Object instance

Delete a Custom Object instance

Authentication

Connected account required

Tags

custom_objects
Delete a Custom Object TypeCLOSE_DELETE_CUSTOM_OBJECT_TYPE_IDDelete a Custom Object Type

Delete a Custom Object Type

Authentication

Connected account required

Tags

custom_object_types
Delete an email templateCLOSE_DELETE_EMAIL_TEMPLATE_IDDelete an email template

Delete an email template

Authentication

Connected account required

Tags

email_templates
Delete a GroupCLOSE_DELETE_GROUP_IDDelete a group. Members will be removed from the group but not from the organization. Deletion is only allowed if the group is not referenced by saved reports or smart views.

Delete a group. Members will be removed from the group but not from the organization. Deletion is only allowed if the group is not referenced by saved reports or smart views.

Authentication

Connected account required

Tags

groups
Delete a User Scheduling Link via OAuth integrationCLOSE_DELETE_INTEGRATIONPlease note that only OAuth apps can perform this operation. Using API key will result in an error. See [Authentication with OAuth](https://developer.close.com/api/overview/oauth-authentication) for more information. Uses the `source_id` field to identify and delete the specified User Scheduling Link created by your OAuth Application.

Please note that only OAuth apps can perform this operation. Using API key will result in an error. See [Authentication with OAuth](https://developer.close.com/api/overview/oauth-authentication) for more information. Uses the `source_id` field to identify and delete the specified User Scheduling Link created by your OAuth Application.

Authentication

Connected account required

Tags

scheduling_links
Delete an integration linkCLOSE_DELETE_INTEGRATION_LINK_IDDelete an integration link

Delete an integration link

Authentication

Connected account required

Tags

integration_links
Delete a membershipCLOSE_DELETE_MEMBERSHIP_IDDeactivates a membership, removing the user from the associated organization.

Deactivates a membership, removing the user from the associated organization.

Authentication

Connected account required

Tags

memberships
Delete an opportunityCLOSE_DELETE_OPPORTUNITY_IDDelete an opportunity

Delete an opportunity

Authentication

Connected account required

Tags

opportunities
Delete an outcomeCLOSE_DELETE_OUTCOME_IDDelete an existing outcome. All of the calls and/or meetings associated with this outcome will still retain that reference, but you won't be able to set that outcome on any new calls & meetings nor find its definition in the API.

Delete an existing outcome. All of the calls and/or meetings associated with this outcome will still retain that reference, but you won't be able to set that outcome on any new calls & meetings nor find its definition in the API.

Authentication

Connected account required

Tags

outcomes
Delete a phone numberCLOSE_DELETE_PHONE_NUMBER_IDYou need the "Manage Group Phone Numbers" permission to delete a group number. You can only delete your own personal numbers.

You need the "Manage Group Phone Numbers" permission to delete a group number. You can only delete your own personal numbers.

Authentication

Connected account required

Tags

phone_numbers
Delete a PipelineCLOSE_DELETE_PIPELINE_IDDeletion is only allowed if the Pipeline doesn't contain any Opportunity Statuses. Delete all statuses first or move them to another pipeline.

Deletion is only allowed if the Pipeline doesn't contain any Opportunity Statuses. Delete all statuses first or move them to another pipeline.

Authentication

Connected account required

Tags

pipelines
Delete a playbookCLOSE_DELETE_PLAYBOOK_IDDelete an existing playbook.

Delete an existing playbook.

Authentication

Connected account required

Tags

playbooks
Delete a roleCLOSE_DELETE_ROLE_IDDelete a custom role. You must first move all users off this role by reassigning them to another role.

Delete a custom role. You must first move all users off this role by reassigning them to another role.

Authentication

Connected account required

Tags

roles
Delete a Smart ViewCLOSE_DELETE_SAVED_SEARCH_IDDelete a Smart View

Delete a Smart View

Authentication

Connected account required

Tags

smart_views
Delete a User Scheduling LinkCLOSE_DELETE_SCHEDULING_LINK_IDDelete a User Scheduling Link

Delete a User Scheduling Link

Authentication

Connected account required

Tags

scheduling_links
Delete a Send As Association by IDCLOSE_DELETE_SEND_AS_IDDelete a Send As Association by ID

Delete a Send As Association by ID

Authentication

Connected account required

Tags

send_as
Delete a SequenceCLOSE_DELETE_SEQUENCE_IDDelete a Sequence

Delete a Sequence

Authentication

Connected account required

Tags

sequences
Delete a Shared Scheduling LinkCLOSE_DELETE_SHAREDDelete a Shared Scheduling Link

Delete a Shared Scheduling Link

Authentication

Connected account required

Tags

scheduling_links
Unmap a Shared Scheduling LinkCLOSE_DELETE_SHARED_ASSOCIATIONUnmap a Shared Scheduling Link

Unmap a Shared Scheduling Link

Authentication

Connected account required

Tags

scheduling_links
Delete an SMS templateCLOSE_DELETE_SMS_TEMPLATE_IDDelete an SMS template

Delete an SMS template

Authentication

Connected account required

Tags

sms_templates
Delete a lead statusCLOSE_DELETE_STATUS_LEAD_IDYou should make sure no leads are assigned this status, first.

You should make sure no leads are assigned this status, first.

Authentication

Connected account required

Tags

lead_statuses
Delete an opportunity statusCLOSE_DELETE_STATUS_OPPORTUNITY_IDYou should make sure no opportunities are assigned this status, first.

You should make sure no opportunities are assigned this status, first.

Authentication

Connected account required

Tags

opportunity_statuses
Delete a Sequence SubscriptionCLOSE_DELETE_SUBSCRIPTIONUnsubscribe a contact from a sequence by deleting their subscription.

Unsubscribe a contact from a sequence by deleting their subscription.

Authentication

Connected account required

Tags

sequences
Delete a taskCLOSE_DELETE_TASK_IDDelete a task

Delete a task

Authentication

Connected account required

Tags

tasks
Resubscribe an email addressCLOSE_DELETE_UNSUBSCRIBE_EMAIL_EMAIL_ADDRESSResubscribe an email address

Resubscribe an email address

Authentication

Connected account required

Tags

unsubscribed_emails
Delete Webhook subscriptionCLOSE_DELETE_WEBHOOK_IDDelete Webhook subscription

Delete Webhook subscription

Authentication

Connected account required

Tags

webhooks
Retrieve a FormCLOSE_FETCHRetrieve a single form and its published field definitions by ID.

Retrieve a single form and its published field definitions by ID.

Authentication

Connected account required

Tags

forms
Get a single LeadCLOSE_GETGet a single Lead

Get a single Lead

Authentication

Connected account required

Tags

leads
Get an activity reportCLOSE_GET_ACTIVITYThe activity report returns the organization's metrics per time period (**overview** report) or user (**comparison** report). Every report accepts the following parameters: * `datetime_range`: a time range to fetch data for. Either this field or `relative_range` needs to be specified. * `relative_range`: a relative time range to fetch data for. The allowed values are: `today`, `this-week`, `this-month`, `this-quarter`, `this-year`, `yesterday`, `last-week`, `last-month`, `last-quarter`, `last-year`, and `all-time`. Either this field or `datetime_range` needs to be specified. * `query`: a query to apply to the report to filter out data. The value of the field is a dictionary with the key `type` and any type-specific keys. For now only the type `saved_search` is allowed which takes the extra key `saved_search_id` to specify the ID of a saved search. This parameter is *optional*. * `users`: a list of user IDs to limit the report results to. This parameter is *optional*. * `type`: the type of the report. The available values are `overview` and `comparison`. This parameter is *mandatory*. * `metrics`: a list of metrics (see [List Activity Metrics](/api/resources/reporting/list-activity-metrics)) to fetch for the report. This parameter is *mandatory*. The report can be requested either in a JSON format or in a CSV file. The format can be specified with the `accept` header.

The activity report returns the organization's metrics per time period (**overview** report) or user (**comparison** report). Every report accepts the following parameters: * `datetime_range`: a time range to fetch data for. Either this field or `relative_range` needs to be specified. * `relative_range`: a relative time range to fetch data for. The allowed values are: `today`, `this-week`, `this-month`, `this-quarter`, `this-year`, `yesterday`, `last-week`, `last-month`, `last-quarter`, `last-year`, and `all-time`. Either this field or `datetime_range` needs to be specified. * `query`: a query to apply to the report to filter out data. The value of the field is a dictionary with the key `type` and any type-specific keys. For now only the type `saved_search` is allowed which takes the extra key `saved_search_id` to specify the ID of a saved search. This parameter is *optional*. * `users`: a list of user IDs to limit the report results to. This parameter is *optional*. * `type`: the type of the report. The available values are `overview` and `comparison`. This parameter is *mandatory*. * `metrics`: a list of metrics (see [List Activity Metrics](/api/resources/reporting/list-activity-metrics)) to fetch for the report. This parameter is *mandatory*. The report can be requested either in a JSON format or in a CSV file. The format can be specified with the `accept` header.

Authentication

Connected account required

Tags

reporting
List or filter all Call activitiesCLOSE_GET_ACTIVITY_CALLList or filter all Call activities

List or filter all Call activities

Authentication

Connected account required

Tags

activities.calls
Get a single Call activityCLOSE_GET_ACTIVITY_CALL_IDGet a single Call activity

Get a single Call activity

Authentication

Connected account required

Tags

activities.calls
List or filter all Created activitiesCLOSE_GET_ACTIVITY_CREATEDList or filter all Created activities

List or filter all Created activities

Authentication

Connected account required

Tags

activities.creations
Get a single Created activityCLOSE_GET_ACTIVITY_CREATED_IDGet a single Created activity

Get a single Created activity

Authentication

Connected account required

Tags

activities.creations
List or filter all Custom Activity instancesCLOSE_GET_ACTIVITY_CUSTOMCustom Fields appear in the format: `custom.{custom_field_id}`. See [Custom Fields](https://developer.close.com/api/resources/custom-fields/custom-fields-activity). If you're filtering by `custom_activity_type_id` or `custom_activity_type_id__in` parameter, the `lead_id` parameter will be required as well. If you want to retrieve all Custom Activity instances of a specific type regardless of the lead, you will need to get leads that contain such an activity type using [Advanced Filtering](https://developer.close.com/api/resources/advanced-filtering) and provide those Lead IDs one at a time to this endpoint.

Custom Fields appear in the format: `custom.{custom_field_id}`. See [Custom Fields](https://developer.close.com/api/resources/custom-fields/custom-fields-activity). If you're filtering by `custom_activity_type_id` or `custom_activity_type_id__in` parameter, the `lead_id` parameter will be required as well. If you want to retrieve all Custom Activity instances of a specific type regardless of the lead, you will need to get leads that contain such an activity type using [Advanced Filtering](https://developer.close.com/api/resources/advanced-filtering) and provide those Lead IDs one at a time to this endpoint.

Authentication

Connected account required

Tags

activities.custom_activities
Get a single Custom Activity instanceCLOSE_GET_ACTIVITY_CUSTOM_IDGet a single Custom Activity instance

Get a single Custom Activity instance

Authentication

Connected account required

Tags

activities.custom_activities
List or filter all Email activitiesCLOSE_GET_ACTIVITY_EMAILYou'll get one object per email message.

You'll get one object per email message.

Authentication

Connected account required

Tags

activities.emails
Get a single Email activityCLOSE_GET_ACTIVITY_EMAIL_IDGet a single Email activity

Get a single Email activity

Authentication

Connected account required

Tags

activities.emails
List or filter all EmailThread activitiesCLOSE_GET_ACTIVITY_EMAILTHREADYou'll get one object per email conversation (generally grouped by subject).

You'll get one object per email conversation (generally grouped by subject).

Authentication

Connected account required

Tags

activities.email_threads
Get a single EmailThread activityCLOSE_GET_ACTIVITY_EMAILTHREAD_IDGet a single EmailThread activity

Get a single EmailThread activity

Authentication

Connected account required

Tags

activities.email_threads
List or filter all FormSubmission activitiesCLOSE_GET_ACTIVITY_FORM_SUBMISSIONGet a list of matching FormSubmission activities. In addition to standard Activity filtering parameters, you can filter by specific form(s) using the `form_id` or `form_id__in` parameters.

Get a list of matching FormSubmission activities. In addition to standard Activity filtering parameters, you can filter by specific form(s) using the `form_id` or `form_id__in` parameters.

Authentication

Connected account required

Tags

activities.form_submissions
Get a single FormSubmission activityCLOSE_GET_ACTIVITY_FORM_SUBMISSION_IDGet a single FormSubmission activity

Get a single FormSubmission activity

Authentication

Connected account required

Tags

activities.form_submissions
List or filter all LeadMerge activitiesCLOSE_GET_ACTIVITY_LEAD_MERGEList or filter all LeadMerge activities

List or filter all LeadMerge activities

Authentication

Connected account required

Tags

activities.lead_merges
Get a single LeadMerge activityCLOSE_GET_ACTIVITY_LEAD_MERGE_IDGet a single LeadMerge activity

Get a single LeadMerge activity

Authentication

Connected account required

Tags

activities.lead_merges
List or filter all Meeting activitiesCLOSE_GET_ACTIVITY_MEETINGList or filter all Meeting activities

List or filter all Meeting activities

Authentication

Connected account required

Tags

activities.meetings
Get a single Meeting activityCLOSE_GET_ACTIVITY_MEETING_IDMeeting transcripts can be accessed using this API but are not loaded by default. To load transcripts, use the `_fields` parameter with `transcripts` value. The `transcripts` field is an array of objects for each Close Notetaker bot that joined the meeting. Typically, there will be only one transcript. Transcripts are ordered by the time bots joined the meeting. Example transcripts in response: ```json { "transcripts": [ { "utterances": [ { "speaker_label": "John Lead", "speaker_side": "contact", "start": 0.1, "end": 1.2, "text": "Hey, what's up? How is it going?" }, { "speaker_label": "Jane User", "speaker_side": "close-user", "start": 1.3, "end": 2.4, "text": "Hey John, I'm doing great. How about you?" } ], "summary_text": "Summary text", "summary_html": "<p>Summary text</p>" } ] } ```

Meeting transcripts can be accessed using this API but are not loaded by default. To load transcripts, use the `_fields` parameter with `transcripts` value. The `transcripts` field is an array of objects for each Close Notetaker bot that joined the meeting. Typically, there will be only one transcript. Transcripts are ordered by the time bots joined the meeting. Example transcripts in response: ```json { "transcripts": [ { "utterances": [ { "speaker_label": "John Lead", "speaker_side": "contact", "start": 0.1, "end": 1.2, "text": "Hey, what's up? How is it going?" }, { "speaker_label": "Jane User", "speaker_side": "close-user", "start": 1.3, "end": 2.4, "text": "Hey John, I'm doing great. How about you?" } ], "summary_text": "Summary text", "summary_html": "<p>Summary text</p>" } ] } ```

Authentication

Connected account required

Tags

activities.meetings
List or filter all Note activitiesCLOSE_GET_ACTIVITY_NOTEList or filter all Note activities

List or filter all Note activities

Authentication

Connected account required

Tags

activities.notes
Get a single Note activityCLOSE_GET_ACTIVITY_NOTE_IDGet a single Note activity

Get a single Note activity

Authentication

Connected account required

Tags

activities.notes
List or filter all SMS activitiesCLOSE_GET_ACTIVITY_SMSGet a list of matching SMS activities. MMS messages are considered SMS messages with attachments. Attachments have identical fields to email attachments (`url`, `filename`, `size` and `content_type`), a `media_id` uniquely identifying an attachment, and if Close was able to generate a thumbnail, a `thumbnail_url` too. Accessing `url` or `thumbnail_url` requires an authenticated session and leads to a temporarily signed S3 URL.

Get a list of matching SMS activities. MMS messages are considered SMS messages with attachments. Attachments have identical fields to email attachments (`url`, `filename`, `size` and `content_type`), a `media_id` uniquely identifying an attachment, and if Close was able to generate a thumbnail, a `thumbnail_url` too. Accessing `url` or `thumbnail_url` requires an authenticated session and leads to a temporarily signed S3 URL.

Authentication

Connected account required

Tags

activities.sms
Get a single SMS activityCLOSE_GET_ACTIVITY_SMS_IDGet a single SMS activity

Get a single SMS activity

Authentication

Connected account required

Tags

activities.sms
List or filter all LeadStatusChange activitiesCLOSE_GET_ACTIVITY_STATUS_CHANGE_LEADList or filter all LeadStatusChange activities

List or filter all LeadStatusChange activities

Authentication

Connected account required

Tags

activities.lead_status_changes
Get a single LeadStatusChange activityCLOSE_GET_ACTIVITY_STATUS_CHANGE_LEAD_IDGet a single LeadStatusChange activity

Get a single LeadStatusChange activity

Authentication

Connected account required

Tags

activities.lead_status_changes
List or filter all OpportunityStatusChange activitiesCLOSE_GET_ACTIVITY_STATUS_CHANGE_OPPORTUNITYList or filter all OpportunityStatusChange activities

List or filter all OpportunityStatusChange activities

Authentication

Connected account required

Tags

activities.opportunity_status_changes
Get a single OpportunityStatusChange activityCLOSE_GET_ACTIVITY_STATUS_CHANGE_OPPORTUNITY_IDGet a single OpportunityStatusChange activity

Get a single OpportunityStatusChange activity

Authentication

Connected account required

Tags

activities.opportunity_status_changes
List or filter all TaskCompleted activitiesCLOSE_GET_ACTIVITY_TASK_COMPLETEDList or filter all TaskCompleted activities

List or filter all TaskCompleted activities

Authentication

Connected account required

Tags

activities.task_completions
Get a single TaskCompleted activityCLOSE_GET_ACTIVITY_TASK_COMPLETED_IDGet a single TaskCompleted activity

Get a single TaskCompleted activity

Authentication

Connected account required

Tags

activities.task_completions
List or filter all WhatsAppMessage activitiesCLOSE_GET_ACTIVITY_WHATSAPP_MESSAGEFilter by `external_whatsapp_message_id` to find messages to update or delete based on changes in WhatsApp.

Filter by `external_whatsapp_message_id` to find messages to update or delete based on changes in WhatsApp.

Authentication

Connected account required

Tags

activities.whatsapp_messages
Get a single WhatsAppMessage activityCLOSE_GET_ACTIVITY_WHATSAPP_MESSAGE_IDGet a single WhatsAppMessage activity

Get a single WhatsAppMessage activity

Authentication

Connected account required

Tags

activities.whatsapp_messages
Fetch a Shared Custom Field AssociationCLOSE_GET_ASSOCIATIONFetch a Shared Custom Field Association

Fetch a Shared Custom Field Association

Authentication

Connected account required

Tags

custom_fields.shared
List Blocked Phone NumbersCLOSE_GET_BLOCKED_PHONE_NUMBERList Blocked Phone Numbers

List Blocked Phone Numbers

Authentication

Connected account required

Tags

blocked_phone_numbers
Retrieve a single Blocked Phone NumberCLOSE_GET_BLOCKED_PHONE_NUMBER_IDRetrieve a single Blocked Phone Number

Retrieve a single Blocked Phone Number

Authentication

Connected account required

Tags

blocked_phone_numbers
List bulk deletesCLOSE_GET_BULK_ACTION_DELETEList bulk deletes

List bulk deletes

Authentication

Connected account required

Tags

bulk_actions.delete
Fetch a single bulk delete objectCLOSE_GET_BULK_ACTION_DELETE_IDFetch a single bulk delete object

Fetch a single bulk delete object

Authentication

Connected account required

Tags

bulk_actions.delete
List bulk editsCLOSE_GET_BULK_ACTION_EDITList bulk edits

List bulk edits

Authentication

Connected account required

Tags

bulk_actions.edit
Fetch a single bulk edit objectCLOSE_GET_BULK_ACTION_EDIT_IDFetch a single bulk edit object

Fetch a single bulk edit object

Authentication

Connected account required

Tags

bulk_actions.edit
List bulk emailsCLOSE_GET_BULK_ACTION_EMAILList bulk emails

List bulk emails

Authentication

Connected account required

Tags

bulk_actions.email
Fetch a single bulk email objectCLOSE_GET_BULK_ACTION_EMAIL_IDFetch a single bulk email object

Fetch a single bulk email object

Authentication

Connected account required

Tags

bulk_actions.email
List bulk sequence subscriptionsCLOSE_GET_BULK_ACTION_SEQUENCE_SUBSCRIPTIONList bulk sequence subscriptions

List bulk sequence subscriptions

Authentication

Connected account required

Tags

bulk_actions.sequence_subscriptions
Fetch a single bulk sequence subscription objectCLOSE_GET_BULK_ACTION_SEQUENCE_SUBSCRIPTION_IDFetch a single bulk sequence subscription object

Fetch a single bulk sequence subscription object

Authentication

Connected account required

Tags

bulk_actions.sequence_subscriptions
Fetch multiple commentsCLOSE_GET_COMMENTComments may be fetched by `object_id` (the object that was commented on) or by `thread_id`. Exactly one of those filters must be provided. Comments on leads the requestor cannot see are omitted from the response.

Comments may be fetched by `object_id` (the object that was commented on) or by `thread_id`. Exactly one of those filters must be provided. Comments on leads the requestor cannot see are omitted from the response.

Authentication

Connected account required

Tags

comments
Fetch an individual commentCLOSE_GET_COMMENT_IDA `404` is returned both when the comment does not exist and when the requestor cannot see its lead.

A `404` is returned both when the comment does not exist and when the requestor cannot see its lead.

Authentication

Connected account required

Tags

comments
List connected accountsCLOSE_GET_CONNECTED_ACCOUNTYou can filter down to a specific user by passing the `?user_id` query parameter.

You can filter down to a specific user by passing the `?user_id` query parameter.

Authentication

Connected account required

Tags

connected_accounts
Fetch a single connected accountCLOSE_GET_CONNECTED_ACCOUNT_IDFetch a single connected account

Fetch a single connected account

Authentication

Connected account required

Tags

connected_accounts
List contactsCLOSE_GET_CONTACTList contacts

List contacts

Authentication

Connected account required

Tags

contacts
Fetch a single contactCLOSE_GET_CONTACT_IDFetch a single contact

Fetch a single contact

Authentication

Connected account required

Tags

contacts
Get custom report (Explorer)CLOSE_GET_CUSTOMThis endpoint returns data that allows graphing of arbitrary metrics and is what powers "Explorer" in the UI. - `query` is an optional search query filter. When reporting on leads, any regular lead search query may be used. When reporting on activities or opportunities, only properties of the chosen object type may be used. For example, `direction:incoming` may be used if `x` starts with `email.`. Defaults to `*`, which includes all objects. - `y` is made up of the object type and field which is reported on the Y axis. For example the value `lead.count` (used by default) may be used to graph the number of leads, or a numeric field may be used. Examples: `call.duration` (for call length), `opportunity.value` (for value of opportunities). - `x` is the field which is reported on the X axis, for example "lead.custom.MRR" or "opportunity.date_created". - `interval`: Graph interval, i.e. the precision of the X axis. For time based graphs (`x` is a date field), one of `auto`, `hour`, `day`, `week`, `month`, `quarter`, `year` (defaults to `auto`, which is chosen based on `start` and `end`). For graphs with a numeric X axis, an integer number can be specified to indicate the histogram interval (`auto` by default). - `group_by`: Optional field name by which the report will be grouped. When grouping, a separate series will be returned for each group. By default no grouping is applied. - `transform_y`: Transformation function that gets applied to the `y` parameter. One of `sum` (default), `avg`, `min`, or `max`. Does not apply for `.count` `y` values if `x` is of the same object type. - `start`: Date or integer of the start of the X axis range. For dates, defaults to the date of creation of your organization. - `end`: Date or integer of the end of the X axis range. For dates, defaults to now. To get a full list of fields that can be used, do a GET to `/report/custom/fields/`. Only the `number` data type can be used for the `y` parameter.

This endpoint returns data that allows graphing of arbitrary metrics and is what powers "Explorer" in the UI. - `query` is an optional search query filter. When reporting on leads, any regular lead search query may be used. When reporting on activities or opportunities, only properties of the chosen object type may be used. For example, `direction:incoming` may be used if `x` starts with `email.`. Defaults to `*`, which includes all objects. - `y` is made up of the object type and field which is reported on the Y axis. For example the value `lead.count` (used by default) may be used to graph the number of leads, or a numeric field may be used. Examples: `call.duration` (for call length), `opportunity.value` (for value of opportunities). - `x` is the field which is reported on the X axis, for example "lead.custom.MRR" or "opportunity.date_created". - `interval`: Graph interval, i.e. the precision of the X axis. For time based graphs (`x` is a date field), one of `auto`, `hour`, `day`, `week`, `month`, `quarter`, `year` (defaults to `auto`, which is chosen based on `start` and `end`). For graphs with a numeric X axis, an integer number can be specified to indicate the histogram interval (`auto` by default). - `group_by`: Optional field name by which the report will be grouped. When grouping, a separate series will be returned for each group. By default no grouping is applied. - `transform_y`: Transformation function that gets applied to the `y` parameter. One of `sum` (default), `avg`, `min`, or `max`. Does not apply for `.count` `y` values if `x` is of the same object type. - `start`: Date or integer of the start of the X axis range. For dates, defaults to the date of creation of your organization. - `end`: Date or integer of the end of the X axis range. For dates, defaults to now. To get a full list of fields that can be used, do a GET to `/report/custom/fields/`. Only the `number` data type can be used for the `y` parameter.

Authentication

Connected account required

Tags

reporting
List Custom Activity TypesCLOSE_GET_CUSTOM_ACTIVITYList all custom activity types defined in the organization. The response includes all Custom Activity Types, including their Custom Field metadata.

List all custom activity types defined in the organization. The response includes all Custom Activity Types, including their Custom Field metadata.

Authentication

Connected account required

Tags

custom_activity_types
Retrieve a single Custom Activity TypeCLOSE_GET_CUSTOM_ACTIVITY_IDThe response contains the Custom Activity Type including most Custom Field metadata.

The response contains the Custom Activity Type including most Custom Field metadata.

Authentication

Connected account required

Tags

custom_activity_types
List Activity Custom FieldsCLOSE_GET_CUSTOM_FIELD_ACTIVITYList all the activity custom fields for your organization.

List all the activity custom fields for your organization.

Authentication

Connected account required

Tags

custom_fields.activity
Fetch Activity Custom Field's detailsCLOSE_GET_CUSTOM_FIELD_ACTIVITY_IDFetch Activity Custom Field's details

Fetch Activity Custom Field's details

Authentication

Connected account required

Tags

custom_fields.activity
List Contact Custom FieldsCLOSE_GET_CUSTOM_FIELD_CONTACTList all the contact custom fields for your organization.

List all the contact custom fields for your organization.

Authentication

Connected account required

Tags

custom_fields.contact
Fetch Contact Custom Field's detailsCLOSE_GET_CUSTOM_FIELD_CONTACT_IDFetch Contact Custom Field's details

Fetch Contact Custom Field's details

Authentication

Connected account required

Tags

custom_fields.contact
List Custom Object Custom FieldsCLOSE_GET_CUSTOM_FIELD_CUSTOM_OBJECT_TYPEList all the custom object custom fields for your organization.

List all the custom object custom fields for your organization.

Authentication

Connected account required

Tags

custom_fields.custom_object
Fetch Custom Object Custom Field's detailsCLOSE_GET_CUSTOM_FIELD_CUSTOM_OBJECT_TYPE_IDFetch Custom Object Custom Field's details

Fetch Custom Object Custom Field's details

Authentication

Connected account required

Tags

custom_fields.custom_object
List Lead Custom FieldsCLOSE_GET_CUSTOM_FIELD_LEADList all the lead custom fields for your organization.

List all the lead custom fields for your organization.

Authentication

Connected account required

Tags

custom_fields.lead
Fetch Lead Custom Field's detailsCLOSE_GET_CUSTOM_FIELD_LEAD_IDFetch Lead Custom Field's details

Fetch Lead Custom Field's details

Authentication

Connected account required

Tags

custom_fields.lead
List Opportunity Custom FieldsCLOSE_GET_CUSTOM_FIELD_OPPORTUNITYList all the opportunity custom fields for your organization.

List all the opportunity custom fields for your organization.

Authentication

Connected account required

Tags

custom_fields.opportunity
Fetch Opportunity Custom Field's detailsCLOSE_GET_CUSTOM_FIELD_OPPORTUNITY_IDFetch Opportunity Custom Field's details

Fetch Opportunity Custom Field's details

Authentication

Connected account required

Tags

custom_fields.opportunity
Retrieve a custom field schemaCLOSE_GET_CUSTOM_FIELD_SCHEMA_OBJECT_TYPERetrieve a custom field schema

Retrieve a custom field schema

Authentication

Connected account required

Tags

custom_field_schemas
List Shared Custom FieldsCLOSE_GET_CUSTOM_FIELD_SHAREDList all the shared custom fields for your organization.

List all the shared custom fields for your organization.

Authentication

Connected account required

Tags

custom_fields.shared
Fetch Shared Custom Field's detailsCLOSE_GET_CUSTOM_FIELD_SHARED_IDFetch Shared Custom Field's details

Fetch Shared Custom Field's details

Authentication

Connected account required

Tags

custom_fields.shared
List Custom Object instancesCLOSE_GET_CUSTOM_OBJECTThe `lead_id` parameter is required. If you want to retrieve all Custom Object instances regardless of the lead, you will need to use [Advanced Filtering](https://developer.close.com/api/resources/advanced-filtering). Custom Fields values appear in the format: `custom.{custom_field_id}`. See [Custom Fields](https://developer.close.com/api/resources/custom-fields/custom-fields-custom-object). Back references to each Custom Object are not collected in this response. If you need to access this information, please use the `back_reference_fields` on the Custom Object Type and [Advanced Filtering](https://developer.close.com/api/resources/advanced-filtering) to search for objects that reference the Custom Object Instance.

The `lead_id` parameter is required. If you want to retrieve all Custom Object instances regardless of the lead, you will need to use [Advanced Filtering](https://developer.close.com/api/resources/advanced-filtering). Custom Fields values appear in the format: `custom.{custom_field_id}`. See [Custom Fields](https://developer.close.com/api/resources/custom-fields/custom-fields-custom-object). Back references to each Custom Object are not collected in this response. If you need to access this information, please use the `back_reference_fields` on the Custom Object Type and [Advanced Filtering](https://developer.close.com/api/resources/advanced-filtering) to search for objects that reference the Custom Object Instance.

Authentication

Connected account required

Tags

custom_objects
Retrieve a single Custom Object instanceCLOSE_GET_CUSTOM_OBJECT_IDRetrieve a single Custom Object instance

Retrieve a single Custom Object instance

Authentication

Connected account required

Tags

custom_objects
List Custom Object TypesCLOSE_GET_CUSTOM_OBJECT_TYPEThe response will include all Custom Object Types, including Custom Field metadata for your organization. Each Custom Object Type has two lists of Custom Fields. The `fields` property contains the list of fields that belong to the Custom Object Type. The `back_reference_fields` property contains the list of any objects (Leads, Contacts, Opportunities, Custom Activities, Custom Objects) that reference the Custom Object Type.

The response will include all Custom Object Types, including Custom Field metadata for your organization. Each Custom Object Type has two lists of Custom Fields. The `fields` property contains the list of fields that belong to the Custom Object Type. The `back_reference_fields` property contains the list of any objects (Leads, Contacts, Opportunities, Custom Activities, Custom Objects) that reference the Custom Object Type.

Authentication

Connected account required

Tags

custom_object_types
Retrieve a single Custom Object TypeCLOSE_GET_CUSTOM_OBJECT_TYPE_IDRetrieve a single custom object type by ID. The response contains the Custom Object Type including most Custom Field metadata.

Retrieve a single custom object type by ID. The response contains the Custom Object Type including most Custom Field metadata.

Authentication

Connected account required

Tags

custom_object_types
List or filter all dialer sessionsCLOSE_GET_DIALERList or filter all dialer sessions

List or filter all dialer sessions

Authentication

Connected account required

Tags

dialers
Get a single dialer sessionCLOSE_GET_DIALER_IDOnce you have a `source_value` for a dialer session and `source_type=saved-search`, you can use the [saved_search endpoint](https://developer.close.com/api/resources/smart-views/get) to find out more information about the Smart View being used.

Once you have a `source_value` for a dialer session and `source_type=saved-search`, you can use the [saved_search endpoint](https://developer.close.com/api/resources/smart-views/get) to find out more information about the Smart View being used.

Authentication

Connected account required

Tags

dialers
List email templatesCLOSE_GET_EMAIL_TEMPLATEList email templates

List email templates

Authentication

Connected account required

Tags

email_templates
Fetch an email templateCLOSE_GET_EMAIL_TEMPLATE_IDFetch an email template

Fetch an email template

Authentication

Connected account required

Tags

email_templates
Retrieve a list of eventsCLOSE_GET_EVENTThe list of available object types and actions is available [here](https://developer.close.com/api/resources/events/list-of-event-types). The event log can be filtered by the following parameters: - `date_updated`: The date/time of when the event was last updated, in ISO format. Can be filtered by range (`date_updated__gte=X&date_updated__lte=Y`). Note: For pagination, it is recommended to use cursors instead of this filter (see below). - `object_type`: If specified, only events for objects of a given type are returned. Example: `object_type=lead` - `object_id`: If specified, only events for the given object are returned. No related object events are returned. Example: `object_id=lead_123` - `action`: Only events of specified actions are returned. Example: `action=deleted` - `lead_id`: If specified, events for the given lead, including any of its related objects (contacts, activities, opportunities, tasks) are returned. - `user_id`: Only return events of the given user. - `request_id`: Only events emitted while processing this specific API request. Only certain combinations of filters are supported. `date_updated` can be optionally used with any allowed filter combination. Supported combinations are: - `object_type` and `object_id` - `object_type` and `action` - `object_id` and `action` - `lead_id` and `object_type` - `lead_id`, `object_type` and `action` - `lead_id`, `user_id` and `object_type` - `lead_id`, `user_id`, `object_type` and `action` - `lead_id` and `user_id` - `user_id` and `object_id` - `user_id`, `object_id` and `action` - `user_id` and `object_type` - `user_id`, `object_type` and `action` - Just `lead_id` - Just `user_id` - Just `request_id` The response is a dictionary with the following fields: - `data`: A list of events (dictionaries), using the format outlined in “Event format”. - `cursor_next`: Cursor string to retrieve the next page of events, i.e. events before the given ID (earlier date), or `null` if no more objects are available. - `cursor_previous`: Cursor string to retrieve the previous page of events, i.e. events after the given ID (later date), or `null` if no more objects are available. Events are always ordered by date (latest first), i.e. the `date_updated` field. Note that even though `date_created` and `date_updated` may only have millisecond-precision, two or more events for the same object are guaranteed to be returned in the proper order. The endpoint supports the following parameters for pagination, and does *not* support `_skip`: - `_cursor`: Pagination using a cursor string (`cursor_next` or `cursor_previous` from a previous response). Note that you still need to supply any other filters (except for `date_updated`) that were used in the previous query. - `_limit`: Maximum number of events to return (capped at and defaulting to 50). Cursors are a reliable way to go to the next or previous page of events (unlike filtering by `date_updated`, where you may need to account for and filter out multiple events happening in the same millisecond). However, cursors are not designed to stream new events: Events may be visible through the API in a different order than they were triggered (but the ordering returned by the API is correct). Also, event consolidation of multiple recent events to the same object may occur. To avoid missing recent events when paginating, we recommend to scan the latest five minutes of events. In the example response, to retrieve the next older batch of events, specify `_cursor=cursor2`.

The list of available object types and actions is available [here](https://developer.close.com/api/resources/events/list-of-event-types). The event log can be filtered by the following parameters: - `date_updated`: The date/time of when the event was last updated, in ISO format. Can be filtered by range (`date_updated__gte=X&date_updated__lte=Y`). Note: For pagination, it is recommended to use cursors instead of this filter (see below). - `object_type`: If specified, only events for objects of a given type are returned. Example: `object_type=lead` - `object_id`: If specified, only events for the given object are returned. No related object events are returned. Example: `object_id=lead_123` - `action`: Only events of specified actions are returned. Example: `action=deleted` - `lead_id`: If specified, events for the given lead, including any of its related objects (contacts, activities, opportunities, tasks) are returned. - `user_id`: Only return events of the given user. - `request_id`: Only events emitted while processing this specific API request. Only certain combinations of filters are supported. `date_updated` can be optionally used with any allowed filter combination. Supported combinations are: - `object_type` and `object_id` - `object_type` and `action` - `object_id` and `action` - `lead_id` and `object_type` - `lead_id`, `object_type` and `action` - `lead_id`, `user_id` and `object_type` - `lead_id`, `user_id`, `object_type` and `action` - `lead_id` and `user_id` - `user_id` and `object_id` - `user_id`, `object_id` and `action` - `user_id` and `object_type` - `user_id`, `object_type` and `action` - Just `lead_id` - Just `user_id` - Just `request_id` The response is a dictionary with the following fields: - `data`: A list of events (dictionaries), using the format outlined in “Event format”. - `cursor_next`: Cursor string to retrieve the next page of events, i.e. events before the given ID (earlier date), or `null` if no more objects are available. - `cursor_previous`: Cursor string to retrieve the previous page of events, i.e. events after the given ID (later date), or `null` if no more objects are available. Events are always ordered by date (latest first), i.e. the `date_updated` field. Note that even though `date_created` and `date_updated` may only have millisecond-precision, two or more events for the same object are guaranteed to be returned in the proper order. The endpoint supports the following parameters for pagination, and does *not* support `_skip`: - `_cursor`: Pagination using a cursor string (`cursor_next` or `cursor_previous` from a previous response). Note that you still need to supply any other filters (except for `date_updated`) that were used in the previous query. - `_limit`: Maximum number of events to return (capped at and defaulting to 50). Cursors are a reliable way to go to the next or previous page of events (unlike filtering by `date_updated`, where you may need to account for and filter out multiple events happening in the same millisecond). However, cursors are not designed to stream new events: Events may be visible through the API in a different order than they were triggered (but the ordering returned by the API is correct). Also, event consolidation of multiple recent events to the same object may occur. To avoid missing recent events when paginating, we recommend to scan the latest five minutes of events. In the example response, to retrieve the next older batch of events, specify `_cursor=cursor2`.

Authentication

Connected account required

Tags

events
Retrieve a single event by IDCLOSE_GET_EVENT_IDThe response contains a dictionary with a single event, using the format outlined in “Event format”.

The response contains a dictionary with a single event, using the format outlined in “Event format”.

Authentication

Connected account required

Tags

events
List all the exportsCLOSE_GET_EXPORTList all the exports

List all the exports

Authentication

Connected account required

Tags

exports
Get a single ExportCLOSE_GET_EXPORT_IDYou can get a single export to do things like check its `status` or get a `download_url` - `status` can have one of these values: `created`, `started`, `in_progress`, `done`, `error`.

You can get a single export to do things like check its `status` or get a `download_url` - `status` can have one of these values: `created`, `started`, `in_progress`, `done`, `error`.

Authentication

Connected account required

Tags

exports
List FormsCLOSE_GET_FORMList all forms and their published field definitions for your organization.

List all forms and their published field definitions for your organization.

Authentication

Connected account required

Tags

forms
Get a funnel report (stages)CLOSE_GET_FUNNEL_STAGESThe opportunity funnel "stages" report returns the pipeline funnel's metrics for the selected opportunities, aggregated (JSON format only) and per-user (JSON and CSV formats). Every report accepts the following parameters: * `pipeline`: ID of the pipeline defining the funnel statuses. * `type`: the type of the report. The available values are `created-cohort` and `active-stage-cohort`. * `report_relative_range`: a relative time range to fetch data for. The allowed values are: `today`, `this-week`, `this-month`, `this-quarter`, `this-year`, `yesterday`, `last-week`, `last-month`, `last-quarter`, `last-year`, and `all-time`. * `report_datetime_range`: a time range to fetch data for. * `cohort_relative_range`: a relative time range defining the cohort of created opportunities to fetch data for, by date of creation of those opportunities. The allowed values are: `today`, `this-week`, `this-month`, `this-quarter`, `this-year`, `yesterday`, `last-week`, `last-month`, `last-quarter`, `last-year`, and `all-time`. Either this field or `cohort_datetime_range` needs to be specified for `created-cohort` reports. Its value will be ignored for `active-stage-cohort` reports. * `cohort_datetime_range`: a time range defining the cohort of created opportunities to fetch data for, by date of creation of those opportunities. Either this field or `cohort_relative_range` needs to be specified for `created-cohort` reports. Its value will be ignored for `active-stage-cohort` reports. * `compared_relative_range`: a relative time range to fetch comparison data for. Only allowed in combination with `report_relative_range` (for `active-stage-cohort` reports) or `cohort_relative_range` (for `created-cohort` reports). The allowed values are: `today`, `this-week`, `this-month`, `this-quarter`, `this-year`, `yesterday`, `last-week`, `last-month`, `last-quarter`, `last-year`, and `all-time`. * `compared_datetime_range`: a relative time range to fetch comparison data for. Only allowed in combination with `report_datetime_range` (for `active-stage-cohort` reports) or `cohort_datetime_range` (for `created-cohort` reports). The allowed values are: `same-days-last-week`, `same-days-last-month`, `same-days-last-quarter`, `same-days-last-year`. * `compared_custom_range`: a time range to fetch comparison data for. * `query`: a query to apply to the report to filter out data. The value of the field is a dictionary with the key `type` and any type-specific keys. For now only the type `saved_search` is allowed which takes the extra key `saved_search_id` to specify the ID of a saved search. This parameter is *optional*. * `users`: a list of user IDs or group IDs to limit the report results to. When it's empty, the report will include all the available users. This parameter is *optional*. The report can be requested either in JSON format or in CSV format. The format can be specified with the `accept` header. In JSON format, it includes aggregated and per-user data. When requested in CSV format, it includes only per-user data. When `compared_datetime_range`, `compared_relative_range`, or `compared_custom_range` are used, the report returned is the compared one, not the base one.

The opportunity funnel "stages" report returns the pipeline funnel's metrics for the selected opportunities, aggregated (JSON format only) and per-user (JSON and CSV formats). Every report accepts the following parameters: * `pipeline`: ID of the pipeline defining the funnel statuses. * `type`: the type of the report. The available values are `created-cohort` and `active-stage-cohort`. * `report_relative_range`: a relative time range to fetch data for. The allowed values are: `today`, `this-week`, `this-month`, `this-quarter`, `this-year`, `yesterday`, `last-week`, `last-month`, `last-quarter`, `last-year`, and `all-time`. * `report_datetime_range`: a time range to fetch data for. * `cohort_relative_range`: a relative time range defining the cohort of created opportunities to fetch data for, by date of creation of those opportunities. The allowed values are: `today`, `this-week`, `this-month`, `this-quarter`, `this-year`, `yesterday`, `last-week`, `last-month`, `last-quarter`, `last-year`, and `all-time`. Either this field or `cohort_datetime_range` needs to be specified for `created-cohort` reports. Its value will be ignored for `active-stage-cohort` reports. * `cohort_datetime_range`: a time range defining the cohort of created opportunities to fetch data for, by date of creation of those opportunities. Either this field or `cohort_relative_range` needs to be specified for `created-cohort` reports. Its value will be ignored for `active-stage-cohort` reports. * `compared_relative_range`: a relative time range to fetch comparison data for. Only allowed in combination with `report_relative_range` (for `active-stage-cohort` reports) or `cohort_relative_range` (for `created-cohort` reports). The allowed values are: `today`, `this-week`, `this-month`, `this-quarter`, `this-year`, `yesterday`, `last-week`, `last-month`, `last-quarter`, `last-year`, and `all-time`. * `compared_datetime_range`: a relative time range to fetch comparison data for. Only allowed in combination with `report_datetime_range` (for `active-stage-cohort` reports) or `cohort_datetime_range` (for `created-cohort` reports). The allowed values are: `same-days-last-week`, `same-days-last-month`, `same-days-last-quarter`, `same-days-last-year`. * `compared_custom_range`: a time range to fetch comparison data for. * `query`: a query to apply to the report to filter out data. The value of the field is a dictionary with the key `type` and any type-specific keys. For now only the type `saved_search` is allowed which takes the extra key `saved_search_id` to specify the ID of a saved search. This parameter is *optional*. * `users`: a list of user IDs or group IDs to limit the report results to. When it's empty, the report will include all the available users. This parameter is *optional*. The report can be requested either in JSON format or in CSV format. The format can be specified with the `accept` header. In JSON format, it includes aggregated and per-user data. When requested in CSV format, it includes only per-user data. When `compared_datetime_range`, `compared_relative_range`, or `compared_custom_range` are used, the report returned is the compared one, not the base one.

Authentication

Connected account required

Tags

reporting
Get a funnel report (totals)CLOSE_GET_FUNNEL_TOTALSThe opportunity funnel "totals" report returns the pipeline funnel's metrics for the selected opportunities, aggregated (JSON format only) and per-user (JSON and CSV formats). Every report accepts the following parameters: * `pipeline`: ID of the pipeline defining the funnel statuses. * `type`: the type of the report. The available values are `created-cohort` and `active-stage-cohort`. * `report_relative_range`: a relative time range to fetch data for. The allowed values are: `today`, `this-week`, `this-month`, `this-quarter`, `this-year`, `yesterday`, `last-week`, `last-month`, `last-quarter`, `last-year`, and `all-time`. * `report_datetime_range`: a time range to fetch data for. * `cohort_relative_range`: a relative time range defining the cohort of created opportunities to fetch data for, by date of creation of those opportunities. The allowed values are: `today`, `this-week`, `this-month`, `this-quarter`, `this-year`, `yesterday`, `last-week`, `last-month`, `last-quarter`, `last-year`, and `all-time`. Either this field or `cohort_datetime_range` needs to be specified for `created-cohort` reports. Its value will be ignored for `active-stage-cohort` reports. * `cohort_datetime_range`: a time range defining the cohort of created opportunities to fetch data for, by date of creation of those opportunities. Either this field or `cohort_relative_range` needs to be specified for `created-cohort` reports. Its value will be ignored for `active-stage-cohort` reports. * `compared_relative_range`: a relative time range to fetch comparison data for. Only allowed in combination with `report_relative_range` (for `active-stage-cohort` reports) or `cohort_relative_range` (for `created-cohort` reports). The allowed values are: `today`, `this-week`, `this-month`, `this-quarter`, `this-year`, `yesterday`, `last-week`, `last-month`, `last-quarter`, `last-year`, and `all-time`. * `compared_datetime_range`: a relative time range to fetch comparison data for. Only allowed in combination with `report_datetime_range` (for `active-stage-cohort` reports) or `cohort_datetime_range` (for `created-cohort` reports). The allowed values are: `same-days-last-week`, `same-days-last-month`, `same-days-last-quarter`, `same-days-last-year`. * `compared_custom_range`: a time range to fetch comparison data for. * `query`: a query to apply to the report to filter out data. The value of the field is a dictionary with the key `type` and any type-specific keys. For now only the type `saved_search` is allowed which takes the extra key `saved_search_id` to specify the ID of a saved search. This parameter is *optional*. * `users`: a list of user IDs or group IDs to limit the report results to. When it's empty, the report will include all the available users. This parameter is *optional*. The report can be requested either in JSON format or in CSV format. The format can be specified with the `accept` header. In JSON format, it includes aggregated and per-user data. When requested in CSV format, it includes only per-user data. When `compared_datetime_range`, `compared_relative_range`, or `compared_custom_range` are used, the report returned is the compared one, not the base one.

The opportunity funnel "totals" report returns the pipeline funnel's metrics for the selected opportunities, aggregated (JSON format only) and per-user (JSON and CSV formats). Every report accepts the following parameters: * `pipeline`: ID of the pipeline defining the funnel statuses. * `type`: the type of the report. The available values are `created-cohort` and `active-stage-cohort`. * `report_relative_range`: a relative time range to fetch data for. The allowed values are: `today`, `this-week`, `this-month`, `this-quarter`, `this-year`, `yesterday`, `last-week`, `last-month`, `last-quarter`, `last-year`, and `all-time`. * `report_datetime_range`: a time range to fetch data for. * `cohort_relative_range`: a relative time range defining the cohort of created opportunities to fetch data for, by date of creation of those opportunities. The allowed values are: `today`, `this-week`, `this-month`, `this-quarter`, `this-year`, `yesterday`, `last-week`, `last-month`, `last-quarter`, `last-year`, and `all-time`. Either this field or `cohort_datetime_range` needs to be specified for `created-cohort` reports. Its value will be ignored for `active-stage-cohort` reports. * `cohort_datetime_range`: a time range defining the cohort of created opportunities to fetch data for, by date of creation of those opportunities. Either this field or `cohort_relative_range` needs to be specified for `created-cohort` reports. Its value will be ignored for `active-stage-cohort` reports. * `compared_relative_range`: a relative time range to fetch comparison data for. Only allowed in combination with `report_relative_range` (for `active-stage-cohort` reports) or `cohort_relative_range` (for `created-cohort` reports). The allowed values are: `today`, `this-week`, `this-month`, `this-quarter`, `this-year`, `yesterday`, `last-week`, `last-month`, `last-quarter`, `last-year`, and `all-time`. * `compared_datetime_range`: a relative time range to fetch comparison data for. Only allowed in combination with `report_datetime_range` (for `active-stage-cohort` reports) or `cohort_datetime_range` (for `created-cohort` reports). The allowed values are: `same-days-last-week`, `same-days-last-month`, `same-days-last-quarter`, `same-days-last-year`. * `compared_custom_range`: a time range to fetch comparison data for. * `query`: a query to apply to the report to filter out data. The value of the field is a dictionary with the key `type` and any type-specific keys. For now only the type `saved_search` is allowed which takes the extra key `saved_search_id` to specify the ID of a saved search. This parameter is *optional*. * `users`: a list of user IDs or group IDs to limit the report results to. When it's empty, the report will include all the available users. This parameter is *optional*. The report can be requested either in JSON format or in CSV format. The format can be specified with the `accept` header. In JSON format, it includes aggregated and per-user data. When requested in CSV format, it includes only per-user data. When `compared_datetime_range`, `compared_relative_range`, or `compared_custom_range` are used, the report returned is the compared one, not the base one.

Authentication

Connected account required

Tags

reporting
List Groups for your organizationCLOSE_GET_GROUPNote that list endpoint does not support retrieving members for all groups. Use individual group endpoint instead.

Note that list endpoint does not support retrieving members for all groups. Use individual group endpoint instead.

Authentication

Connected account required

Tags

groups
Fetch an individual GroupCLOSE_GET_GROUP_IDFetch an individual Group

Fetch an individual Group

Authentication

Connected account required

Tags

groups
Get all integration links for your organizationCLOSE_GET_INTEGRATION_LINKGet all integration links for your organization

Get all integration links for your organization

Authentication

Connected account required

Tags

integration_links
Get a single integration linkCLOSE_GET_INTEGRATION_LINK_IDGet a single integration link

Get a single integration link

Authentication

Connected account required

Tags

integration_links
Get a single Lead ExportCLOSE_GET_LEADGet a single lead export to do things like check its `status` or get a `download_url`. `status` can have one of these values: `created`, `started`, `in_progress`, `done`, `error`.

Get a single lead export to do things like check its `status` or get a `download_url`. `status` can have one of these values: `created`, `started`, `in_progress`, `done`, `error`.

Authentication

Connected account required

Tags

exports
Get lead status change reportCLOSE_GET_LEAD_STATUSESGet a lead status change report. The date range is optional. A report may be requested for a specific time period or overall. You can specify either a `query` or `smart_view_id` (but not both) to filter leads included in the report. The following fields are returned (when requesting an overall report, some inapplicable fields will not be returned): * `status_overview`: A list of all statuses with: * `status_id`, `status_label`, `status_is_deleted`: The ID and label of the status, and whether it was deleted. * `started`: Number of leads in this status at the start of the period. * `ended`: Number in this status at the end. * `change`: Net change during the period (`ended` minus `started`). * `change_percent`: Net change in percent. * `gained`: Number that were not in this status at the beginning but were at the end. * `lost`: Number that were in this status at the beginning but were not at the end. * `entered`: Number that entered this status at some point during the period. * `left`: Number that left this status at some point during the period. * `_queries`: A dictionary containing search queries for the different states (`started`, `ended`, `gained`, `lost`, `entered`, `left`). * `_leads_page_urls`: A dictionary containing paths to the lead search UI page. * `status_transitions`: A list of all status transitions (aggregated by start/end status) for the given period with: * `from_status_id`, `from_status_label`, `from_status_is_deleted`: Starting status (null for created leads). * `to_status_id`, `to_status_label`, `to_status_is_deleted`: Ending status. * `count`: The number that transitioned. * `_query`: The search query for those records. * `_leads_page_url`: Path to the search UI page. * `status_transitions_summary`: Status transitions summarized for the period. E.g. a lead that went A→B→C is counted as A→C.

Get a lead status change report. The date range is optional. A report may be requested for a specific time period or overall. You can specify either a `query` or `smart_view_id` (but not both) to filter leads included in the report. The following fields are returned (when requesting an overall report, some inapplicable fields will not be returned): * `status_overview`: A list of all statuses with: * `status_id`, `status_label`, `status_is_deleted`: The ID and label of the status, and whether it was deleted. * `started`: Number of leads in this status at the start of the period. * `ended`: Number in this status at the end. * `change`: Net change during the period (`ended` minus `started`). * `change_percent`: Net change in percent. * `gained`: Number that were not in this status at the beginning but were at the end. * `lost`: Number that were in this status at the beginning but were not at the end. * `entered`: Number that entered this status at some point during the period. * `left`: Number that left this status at some point during the period. * `_queries`: A dictionary containing search queries for the different states (`started`, `ended`, `gained`, `lost`, `entered`, `left`). * `_leads_page_urls`: A dictionary containing paths to the lead search UI page. * `status_transitions`: A list of all status transitions (aggregated by start/end status) for the given period with: * `from_status_id`, `from_status_label`, `from_status_is_deleted`: Starting status (null for created leads). * `to_status_id`, `to_status_label`, `to_status_is_deleted`: Ending status. * `count`: The number that transitioned. * `_query`: The search query for those records. * `_leads_page_url`: Path to the search UI page. * `status_transitions_summary`: Status transitions summarized for the period. E.g. a lead that went A→B→C is counted as A→C.

Authentication

Connected account required

Tags

reporting
Fetch information about yourselfCLOSE_GET_MEA special instance of the Users endpoint for the current user. Useful for determining your own `id` and `organization_id`.

A special instance of the Users endpoint for the current user. Useful for determining your own `id` and `organization_id`.

Authentication

Connected account required

Tags

users
Get a single Opportunity ExportCLOSE_GET_OPPORTUNITYGet a single opportunity export to do things like check its `status` or get a `download_url`. `status` can have one of these values: `created`, `started`, `in_progress`, `done`, `error`.

Get a single opportunity export to do things like check its `status` or get a `download_url`. `status` can have one of these values: `created`, `started`, `in_progress`, `done`, `error`.

Authentication

Connected account required

Tags

exports
Retrieve an opportunityCLOSE_GET_OPPORTUNITY_IDRetrieve an opportunity

Retrieve an opportunity

Authentication

Connected account required

Tags

opportunities
Get opportunity status change reportCLOSE_GET_OPPORTUNITY_STATUSESGet an opportunity status change report. The date range is optional. A report may be requested for a specific time period or overall. You can specify either a `query` or `smart_view_id` (but not both) to filter opportunities included in the report. The report may optionally be filtered by the opportunity user. The following fields are returned (when requesting an overall report, some inapplicable fields will not be returned): * `status_overview`: A list of all statuses with: * `status_id`, `status_label`, `status_is_deleted`: The ID and label of the status, and whether it was deleted. * `started`: Number of opportunities in this status at the start of the period. * `ended`: Number in this status at the end. * `change`: Net change during the period (`ended` minus `started`). * `change_percent`: Net change in percent. * `gained`: Number that were not in this status at the beginning but were at the end. * `lost`: Number that were in this status at the beginning but were not at the end. * `entered`: Number that entered this status at some point during the period. * `left`: Number that left this status at some point during the period. * `_queries`: A dictionary containing search queries for the different states (`started`, `ended`, `gained`, `lost`, `entered`, `left`). Search queries are wrapped in a nested `opportunity(...)` clause. To pass the query to the opportunities API endpoint, use only the query within the parentheses. * `_leads_page_urls`: A dictionary containing paths to the lead search UI page. * `_opportunities_page_urls`: A dictionary containing paths to the opportunity UI page. * `status_transitions`: A list of all status transitions (aggregated by start/end status) for the given period with: * `from_status_id`, `from_status_label`, `from_status_is_deleted`: Starting status (null for created opportunities). * `to_status_id`, `to_status_label`, `to_status_is_deleted`: Ending status. * `count`: The number that transitioned. * `_query`: The search query for those records. * `_leads_page_url`: Path to the search UI page. * `_opportunities_page_url`: Path to the opportunity UI page. * `status_transitions_summary`: Status transitions summarized for the period. E.g. an opportunity that went A→B→C is counted as A→C.

Get an opportunity status change report. The date range is optional. A report may be requested for a specific time period or overall. You can specify either a `query` or `smart_view_id` (but not both) to filter opportunities included in the report. The report may optionally be filtered by the opportunity user. The following fields are returned (when requesting an overall report, some inapplicable fields will not be returned): * `status_overview`: A list of all statuses with: * `status_id`, `status_label`, `status_is_deleted`: The ID and label of the status, and whether it was deleted. * `started`: Number of opportunities in this status at the start of the period. * `ended`: Number in this status at the end. * `change`: Net change during the period (`ended` minus `started`). * `change_percent`: Net change in percent. * `gained`: Number that were not in this status at the beginning but were at the end. * `lost`: Number that were in this status at the beginning but were not at the end. * `entered`: Number that entered this status at some point during the period. * `left`: Number that left this status at some point during the period. * `_queries`: A dictionary containing search queries for the different states (`started`, `ended`, `gained`, `lost`, `entered`, `left`). Search queries are wrapped in a nested `opportunity(...)` clause. To pass the query to the opportunities API endpoint, use only the query within the parentheses. * `_leads_page_urls`: A dictionary containing paths to the lead search UI page. * `_opportunities_page_urls`: A dictionary containing paths to the opportunity UI page. * `status_transitions`: A list of all status transitions (aggregated by start/end status) for the given period with: * `from_status_id`, `from_status_label`, `from_status_is_deleted`: Starting status (null for created opportunities). * `to_status_id`, `to_status_label`, `to_status_is_deleted`: Ending status. * `count`: The number that transitioned. * `_query`: The search query for those records. * `_leads_page_url`: Path to the search UI page. * `_opportunities_page_url`: Path to the opportunity UI page. * `status_transitions_summary`: Status transitions summarized for the period. E.g. an opportunity that went A→B→C is counted as A→C.

Authentication

Connected account required

Tags

reporting
Get an organization's detailsCLOSE_GET_ORGANIZATION_IDBy default, `memberships` and `inactive_memberships` are populated with user data prefixed with `user_`. If you'd rather have a nested `user` field, use a query string like `?_expand=memberships__user,inactive_memberships__user`.

By default, `memberships` and `inactive_memberships` are populated with user data prefixed with `user_`. If you'd rather have a nested `user` field, use a query string like `?_expand=memberships__user,inactive_memberships__user`.

Authentication

Connected account required

Tags

organizations
List or filter outcomesCLOSE_GET_OUTCOMEFetch a list of outcomes.

Fetch a list of outcomes.

Authentication

Connected account required

Tags

outcomes
Fetch a single outcomeCLOSE_GET_OUTCOME_IDFetch a single outcome

Fetch a single outcome

Authentication

Connected account required

Tags

outcomes
List or search for phone numbersCLOSE_GET_PHONE_NUMBERList or search for phone numbers

List or search for phone numbers

Authentication

Connected account required

Tags

phone_numbers
Retrieve a single phone numberCLOSE_GET_PHONE_NUMBER_IDRetrieve a single phone number

Retrieve a single phone number

Authentication

Connected account required

Tags

phone_numbers
Get pinned views for a membershipCLOSE_GET_PINNED_VIEWSGet the ordered list of pinned views for the given membership.

Get the ordered list of pinned views for the given membership.

Authentication

Connected account required

Tags

memberships
List Pipelines for your organizationCLOSE_GET_PIPELINEList Pipelines for your organization

List Pipelines for your organization

Authentication

Connected account required

Tags

pipelines
Fetch a single PipelineCLOSE_GET_PIPELINE_IDFetch a single Pipeline

Fetch a single Pipeline

Authentication

Connected account required

Tags

pipelines
List or filter playbooksCLOSE_GET_PLAYBOOKFetch a list of playbooks for the organization. Results are sorted by position ascending.

Fetch a list of playbooks for the organization. Results are sorted by position ascending.

Authentication

Connected account required

Tags

playbooks
Fetch a single playbookCLOSE_GET_PLAYBOOK_IDFetch a single playbook

Fetch a single playbook

Authentication

Connected account required

Tags

playbooks
List all the roles defined for your organizationCLOSE_GET_ROLEList all the roles defined for your organization

List all the roles defined for your organization

Authentication

Connected account required

Tags

roles
Fetch a single roleCLOSE_GET_ROLE_IDFetch a single role

Fetch a single role

Authentication

Connected account required

Tags

roles
List Smart ViewsCLOSE_GET_SAVED_SEARCHAccepts: - A `type` filter that accepts either `lead` or `contact`. Defaults to `lead`. - A `type__in` filter that can be used to select multiple comma-separated types: `lead,contact`.

Accepts: - A `type` filter that accepts either `lead` or `contact`. Defaults to `lead`. - A `type__in` filter that can be used to select multiple comma-separated types: `lead,contact`.

Authentication

Connected account required

Tags

smart_views
Get a single Smart ViewCLOSE_GET_SAVED_SEARCH_IDGet a single Smart View

Get a single Smart View

Authentication

Connected account required

Tags

smart_views
List User Scheduling LinksCLOSE_GET_SCHEDULING_LINKList User Scheduling Links

List User Scheduling Links

Authentication

Connected account required

Tags

scheduling_links
Fetch a User Scheduling LinkCLOSE_GET_SCHEDULING_LINK_IDFetch a User Scheduling Link

Fetch a User Scheduling Link

Authentication

Connected account required

Tags

scheduling_links
List Send As AssociationsCLOSE_GET_SEND_ASA user only has access to associations they are involved in. This means that when using this endpoint, `allowing_user_id` or `allowed_user_id` must be equal to your user ID. If neither filter is provided, `allowing_user_id` is assumed by default.

A user only has access to associations they are involved in. This means that when using this endpoint, `allowing_user_id` or `allowed_user_id` must be equal to your user ID. If neither filter is provided, `allowing_user_id` is assumed by default.

Authentication

Connected account required

Tags

send_as
Retrieve a single Send As AssociationCLOSE_GET_SEND_AS_IDRetrieve a single Send As Association

Retrieve a single Send As Association

Authentication

Connected account required

Tags

send_as
Get sent emails reportCLOSE_GET_SENT_EMAILSGet sent emails report

Get sent emails report

Authentication

Connected account required

Tags

reporting
List SequencesCLOSE_GET_SEQUENCEList Sequences

List Sequences

Authentication

Connected account required

Tags

sequences
Fetch a SequenceCLOSE_GET_SEQUENCE_IDFetch a Sequence

Fetch a Sequence

Authentication

Connected account required

Tags

sequences
Retrieve Blocked Phone Number settingsCLOSE_GET_SETTINGSRetrieve Blocked Phone Number settings

Retrieve Blocked Phone Number settings

Authentication

Connected account required

Tags

blocked_phone_numbers
Fetch a Shared Scheduling LinkCLOSE_GET_SHAREDFetch a Shared Scheduling Link

Fetch a Shared Scheduling Link

Authentication

Connected account required

Tags

scheduling_links
List SMS templatesCLOSE_GET_SMS_TEMPLATEList SMS templates

List SMS templates

Authentication

Connected account required

Tags

sms_templates
Fetch an SMS templateCLOSE_GET_SMS_TEMPLATE_IDFetch an SMS template

Fetch an SMS template

Authentication

Connected account required

Tags

sms_templates
List lead statuses for your organizationCLOSE_GET_STATUS_LEADList lead statuses for your organization

List lead statuses for your organization

Authentication

Connected account required

Tags

lead_statuses
Fetch a single lead statusCLOSE_GET_STATUS_LEAD_IDFetch a single lead status

Fetch a single lead status

Authentication

Connected account required

Tags

lead_statuses
List opportunity statuses for your organizationCLOSE_GET_STATUS_OPPORTUNITYList opportunity statuses for your organization

List opportunity statuses for your organization

Authentication

Connected account required

Tags

opportunity_statuses
Fetch a single opportunity statusCLOSE_GET_STATUS_OPPORTUNITY_IDFetch a single opportunity status

Fetch a single opportunity status

Authentication

Connected account required

Tags

opportunity_statuses
Fetch a single Sequence SubscriptionCLOSE_GET_SUBSCRIPTIONFetch a single Sequence Subscription

Fetch a single Sequence Subscription

Authentication

Connected account required

Tags

sequences
List or filter tasksCLOSE_GET_TASKThe `view` parameter can be used to conveniently access the different task views. It accepts one of the following values: * `inbox`: Shows incomplete tasks up to the end of the user's day only (taking the time zone into account). * `future`: Shows incomplete tasks starting from the user's tomorrow only (taking the time zone into account). * `archive`: Shows complete tasks only. Note that a `view` value of `inbox` or `future` will override any `date__lt` or `date__gte` parameters included in the same request. The `_order_by` field allows ordering by `date` or `date_created` (descending order by prepending a minus, e.g. `_order_by=-date`).

The `view` parameter can be used to conveniently access the different task views. It accepts one of the following values: * `inbox`: Shows incomplete tasks up to the end of the user's day only (taking the time zone into account). * `future`: Shows incomplete tasks starting from the user's tomorrow only (taking the time zone into account). * `archive`: Shows complete tasks only. Note that a `view` value of `inbox` or `future` will override any `date__lt` or `date__gte` parameters included in the same request. The `_order_by` field allows ordering by `date` or `date_created` (descending order by prepending a minus, e.g. `_order_by=-date`).

Authentication

Connected account required

Tags

tasks
Fetch a task's detailsCLOSE_GET_TASK_IDFetch a task's details

Fetch a task's details

Authentication

Connected account required

Tags

tasks
Fetch an individual comment threadCLOSE_GET_THREADA `404` is returned both when the comment thread does not exist and when the requestor cannot see its lead.

A `404` is returned both when the comment thread does not exist and when the requestor cannot see its lead.

Authentication

Connected account required

Tags

comments
List all unsubscribed emailsCLOSE_GET_UNSUBSCRIBE_EMAILGet a list of unsubscribed email addresses.

Get a list of unsubscribed email addresses.

Authentication

Connected account required

Tags

unsubscribed_emails
List users in your organizationCLOSE_GET_USERList all the users who are members of the same organizations as you are.

List all the users who are members of the same organizations as you are.

Authentication

Connected account required

Tags

users
Fetch a single userCLOSE_GET_USER_IDFetch a single user

Fetch a single user

Authentication

Connected account required

Tags

users
List Webhook subscriptionsCLOSE_GET_WEBHOOKList all webhook subscriptions for the organization.

List all webhook subscriptions for the organization.

Authentication

Connected account required

Tags

webhooks
Retrieve a single Webhook subscriptionCLOSE_GET_WEBHOOK_IDThe response contains the subscription details.

The response contains the subscription details.

Authentication

Connected account required

Tags

webhooks
List LeadsCLOSE_LISTList Leads

List Leads

Authentication

Connected account required

Tags

leads
List the predefined metrics used in activity reportsCLOSE_LIST_ACTIVITY_METRICSList available metrics that can be used in activity reports.

List available metrics that can be used in activity reports.

Authentication

Connected account required

Tags

reporting
List user availability statusesCLOSE_LIST_AVAILABILITIESList user availability statuses for all users in an organization. The `active_calls` field is an array of call metadata for calls that the user is currently participating in.

List user availability statuses for all users in an organization. The `active_calls` field is an array of call metadata for calls that the user is currently participating in.

Authentication

Connected account required

Tags

users
List Lead ExportsCLOSE_LIST_LEADList Lead Exports

List Lead Exports

Authentication

Connected account required

Tags

exports
List Opportunity ExportsCLOSE_LIST_OPPORTUNITYList Opportunity Exports

List Opportunity Exports

Authentication

Connected account required

Tags

exports
List Shared Scheduling LinksCLOSE_LIST_SHAREDList Shared Scheduling Links

List Shared Scheduling Links

Authentication

Connected account required

Tags

scheduling_links
List Sequence SubscriptionsCLOSE_LIST_SUBSCRIPTIONSAt least one of `sequence_id`, `contact_id`, and `lead_id` is required.

At least one of `sequence_id`, `contact_id`, and `lead_id` is required.

Authentication

Connected account required

Tags

sequences
Fetch multiple comment threadsCLOSE_LIST_THREADSUsers with restricted lead visibility cannot list comment threads across all leads, and must scope the request to specific threads or objects via the `ids` or `object_ids` filters. Unscoped requests from such users return a `403`.

Users with restricted lead visibility cannot list comment threads across all leads, and must scope the request to specific threads or objects via the `ids` or `object_ids` filters. Unscoped requests from such users return a `403`.

Authentication

Connected account required

Tags

comments
Merge two leadsCLOSE_MERGEFor details and definitions of 'source' and 'destination', see the Merge Leads feature in the UI.

For details and definitions of 'source' and 'destination', see the Merge Leads feature in the UI.

Authentication

Connected account required

Tags

leads
Log an external Call activityCLOSE_POST_ACTIVITY_CALLUse this endpoint to log calls made outside of the Close built-in VoIP system. *status*: defaults to `completed` *direction* (optional): `outbound` or `inbound` *recording_url*: you can post a URL pointing to the MP3 recording of your call. For security reasons, we require the URL to be secure (i.e. starting with https://)

Use this endpoint to log calls made outside of the Close built-in VoIP system. *status*: defaults to `completed` *direction* (optional): `outbound` or `inbound` *recording_url*: you can post a URL pointing to the MP3 recording of your call. For security reasons, we require the URL to be secure (i.e. starting with https://)

Authentication

Connected account required

Tags

activities.calls
Create a new Custom Activity instanceCLOSE_POST_ACTIVITY_CUSTOMCustom Activity instances will be created by default with the 'published' status. All required fields will be validated in this status. To create an activity without setting all required fields, you can use the "draft" status. A Custom Activity can be pinned or unpinned by setting the `pinned` field to `true` or `false` when creating or updating a Custom Activity.

Custom Activity instances will be created by default with the 'published' status. All required fields will be validated in this status. To create an activity without setting all required fields, you can use the "draft" status. A Custom Activity can be pinned or unpinned by setting the `pinned` field to `true` or `false` when creating or updating a Custom Activity.

Authentication

Connected account required

Tags

activities.custom_activities
Create an Email activityCLOSE_POST_ACTIVITY_EMAIL*status* must be one of the following: - `inbox` to log an already received email. - `draft` to create a draft email. - `scheduled` to send an email at a scheduled date and time, which must be specified in the `date_scheduled` field. - `outbox` to actually **send** an email. To delay email sending by a few seconds (to allow undo), specify `send_in` in seconds (must be less than 60). - `sent` to log an already sent email. Only drafts can be modified, and their status can be changed to `scheduled` (to send later) or `outbox` (to send immediately). Scheduled emails, or emails in outbox that weren't sent yet can be canceled by setting the status back to `draft`. For scheduled, outbox, or sent emails, a `followup_date` may be posted, which will have Close create an email followup task if no response was received. We'll render an Email Template server-side if you include a `template_id` _without_ including `body_text` or `body_html` in your POST. To specify both a sender name and a sender email address when posting an email, you can use the `sender` field with the format `"sender": ""John Smith" <[email protected]>"` The `sender` field is **required** for emails with status `inbox`, `scheduled`, `outbox`, or `error`. It may be omitted for `draft` (since the sender can be specified later before sending) and `sent` (where it defaults to the email address of the `user` associated with the email or the owner of the API key). To include an attachment, you must first upload the file to Close using the [Files API](https://developer.close.com/api/resources/files). Then, add an object to the `attachments` array with the following fields: `url`, `filename`, `content_type`, and `size`. The `url` should be the URL provided in the `download.url` field of the response from the [Files API](https://developer.close.com/api/resources/files). It must begin `https://app.close.com/go/file/`.

*status* must be one of the following: - `inbox` to log an already received email. - `draft` to create a draft email. - `scheduled` to send an email at a scheduled date and time, which must be specified in the `date_scheduled` field. - `outbox` to actually **send** an email. To delay email sending by a few seconds (to allow undo), specify `send_in` in seconds (must be less than 60). - `sent` to log an already sent email. Only drafts can be modified, and their status can be changed to `scheduled` (to send later) or `outbox` (to send immediately). Scheduled emails, or emails in outbox that weren't sent yet can be canceled by setting the status back to `draft`. For scheduled, outbox, or sent emails, a `followup_date` may be posted, which will have Close create an email followup task if no response was received. We'll render an Email Template server-side if you include a `template_id` _without_ including `body_text` or `body_html` in your POST. To specify both a sender name and a sender email address when posting an email, you can use the `sender` field with the format `"sender": ""John Smith" <[email protected]>"` The `sender` field is **required** for emails with status `inbox`, `scheduled`, `outbox`, or `error`. It may be omitted for `draft` (since the sender can be specified later before sending) and `sent` (where it defaults to the email address of the `user` associated with the email or the owner of the API key). To include an attachment, you must first upload the file to Close using the [Files API](https://developer.close.com/api/resources/files). Then, add an object to the `attachments` array with the following fields: `url`, `filename`, `content_type`, and `size`. The `url` should be the URL provided in the `download.url` field of the response from the [Files API](https://developer.close.com/api/resources/files). It must begin `https://app.close.com/go/file/`.

Authentication

Connected account required

Tags

activities.emails
Create a Note activityCLOSE_POST_ACTIVITY_NOTETo include an attachment, you must first upload the file to Close using the [Files API](https://developer.close.com/api/resources/files). Then, add an object to the `attachments` array with the following fields: `url`, `filename` and `content_type`. The `url` should be the URL provided in the `download.url` field of the response from the [Files API](https://developer.close.com/api/resources/files). It must begin `https://app.close.com/go/file/`. A note can be pinned or unpinned by setting the `pinned` field to `true` or `false` when creating or updating a note.

To include an attachment, you must first upload the file to Close using the [Files API](https://developer.close.com/api/resources/files). Then, add an object to the `attachments` array with the following fields: `url`, `filename` and `content_type`. The `url` should be the URL provided in the `download.url` field of the response from the [Files API](https://developer.close.com/api/resources/files). It must begin `https://app.close.com/go/file/`. A note can be pinned or unpinned by setting the `pinned` field to `true` or `false` when creating or updating a note.

Authentication

Connected account required

Tags

activities.notes
Create an SMS activityCLOSE_POST_ACTIVITY_SMS*status* must be one of the following: - `inbox` to log an already received SMS. - `draft` to create a draft SMS. - `scheduled` to send an SMS at a scheduled date and time, which must be specified in the `date_scheduled` field. - `outbox` to actually **send** an SMS. To delay SMS sending by a few seconds (to allow undo), specify `send_in` in seconds (must be less than 60). - `sent` to log an already sent SMS. Only drafts can be modified, and their status can be changed to `scheduled` (to send later) or `outbox` (to send immediately). Scheduled SMS, or SMS in outbox that weren't sent yet can be canceled by setting the status back to `draft`. You have to provide a `local_phone` that will be used to send the SMS. The number you choose has to be associated with a Phone Number of type `internal`. See the [Phone Numbers](https://developer.close.com/api/resources/phone-numbers) paragraph for more details. A `template_id` referencing an SMS Template may be provided instead of `text` to automatically render that template and use the content as `text`. When `direction` is not provided, but `status="inbox"`, `direction` will default to "inbound". Otherwise, `direction` defaults to "outbound". When creating a new SMS with the status set to `inbox`, you can pass the query parameter `send_to_inbox` with the value of `true` to create a corresponding Inbox Notification for the SMS.

*status* must be one of the following: - `inbox` to log an already received SMS. - `draft` to create a draft SMS. - `scheduled` to send an SMS at a scheduled date and time, which must be specified in the `date_scheduled` field. - `outbox` to actually **send** an SMS. To delay SMS sending by a few seconds (to allow undo), specify `send_in` in seconds (must be less than 60). - `sent` to log an already sent SMS. Only drafts can be modified, and their status can be changed to `scheduled` (to send later) or `outbox` (to send immediately). Scheduled SMS, or SMS in outbox that weren't sent yet can be canceled by setting the status back to `draft`. You have to provide a `local_phone` that will be used to send the SMS. The number you choose has to be associated with a Phone Number of type `internal`. See the [Phone Numbers](https://developer.close.com/api/resources/phone-numbers) paragraph for more details. A `template_id` referencing an SMS Template may be provided instead of `text` to automatically render that template and use the content as `text`. When `direction` is not provided, but `status="inbox"`, `direction` will default to "inbound". Otherwise, `direction` defaults to "outbound". When creating a new SMS with the status set to `inbox`, you can pass the query parameter `send_to_inbox` with the value of `true` to create a corresponding Inbox Notification for the SMS.

Authentication

Connected account required

Tags

activities.sms
Create a new LeadStatusChange activityCLOSE_POST_ACTIVITY_STATUS_CHANGE_LEADCreating a lead status change does not change the lead's status. It only logs the status change event in the lead's activity feed. This should only be used to import historical status changes from another system.

Creating a lead status change does not change the lead's status. It only logs the status change event in the lead's activity feed. This should only be used to import historical status changes from another system.

Authentication

Connected account required

Tags

activities.lead_status_changes
Create a new OpportunityStatusChange activityCLOSE_POST_ACTIVITY_STATUS_CHANGE_OPPORTUNITYCreating an opportunity status change does not change the opportunity's status. It only logs the status change event. This should only be used to import historical status changes from another system.

Creating an opportunity status change does not change the opportunity's status. It only logs the status change event. This should only be used to import historical status changes from another system.

Authentication

Connected account required

Tags

activities.opportunity_status_changes
Create a WhatsAppMessage activityCLOSE_POST_ACTIVITY_WHATSAPP_MESSAGE`external_whatsapp_message_id` must be the ID of the message inside WhatsApp. You can filter by this field to find messages in Close to update or delete based on updates or deletions in WhatsApp. `message_markdown` must be the body of the message in the WhatsApp Markdown format. The `message_html` read-only field will return the HTML representation of this message. To include an attachment, you must first upload the file to Close using the [Files API](https://developer.close.com/api/resources/files). Then, add an object to the `attachments` array with the following fields: `url`, `filename`, and `content_type`. The `url` should be the URL provided in the `download.url` field of the response from the [Files API](https://developer.close.com/api/resources/files). It must begin with `https://app.close.com/go/file/`. `integration_link` (optional) is a URL string that can be provided by the integration partner creating the WhatsApp message. This can be used to link back to the message in the external system. `response_to_id` (optional) is the Close activity ID of another WhatsApp message activity (not the WhatsApp native message ID) that this message is replying to. This field creates a thread relationship between messages, allowing you to track conversation flow and message replies within WhatsApp threads. The ID must be a valid WhatsApp message activity ID in Close (e.g., `acti_...`). Only WhatsApp Markdown messages and file attachments are supported. No support is provided for Polls, Events, Locations, etc. **Important**: The total size of all attachments for a single WhatsApp message activity cannot exceed 25MB. When creating a new WhatsApp message with the direction set to `incoming`, you can pass the query parameter `send_to_inbox` with the value of `true` to create a corresponding Inbox Notification for the message.

`external_whatsapp_message_id` must be the ID of the message inside WhatsApp. You can filter by this field to find messages in Close to update or delete based on updates or deletions in WhatsApp. `message_markdown` must be the body of the message in the WhatsApp Markdown format. The `message_html` read-only field will return the HTML representation of this message. To include an attachment, you must first upload the file to Close using the [Files API](https://developer.close.com/api/resources/files). Then, add an object to the `attachments` array with the following fields: `url`, `filename`, and `content_type`. The `url` should be the URL provided in the `download.url` field of the response from the [Files API](https://developer.close.com/api/resources/files). It must begin with `https://app.close.com/go/file/`. `integration_link` (optional) is a URL string that can be provided by the integration partner creating the WhatsApp message. This can be used to link back to the message in the external system. `response_to_id` (optional) is the Close activity ID of another WhatsApp message activity (not the WhatsApp native message ID) that this message is replying to. This field creates a thread relationship between messages, allowing you to track conversation flow and message replies within WhatsApp threads. The ID must be a valid WhatsApp message activity ID in Close (e.g., `acti_...`). Only WhatsApp Markdown messages and file attachments are supported. No support is provided for Polls, Events, Locations, etc. **Important**: The total size of all attachments for a single WhatsApp message activity cannot exceed 25MB. When creating a new WhatsApp message with the direction set to `incoming`, you can pass the query parameter `send_to_inbox` with the value of `true` to create a corresponding Inbox Notification for the message.

Authentication

Connected account required

Tags

activities.whatsapp_messages
Create a Blocked Phone NumberCLOSE_POST_BLOCKED_PHONE_NUMBEROnce this record is created, the phone number you have specified will no longer work for outbound nor inbound calls. That means: * Nobody in your organization will be able to call that phone number. * That phone number will not be able to call anybody in your organization.

Once this record is created, the phone number you have specified will no longer work for outbound nor inbound calls. That means: * Nobody in your organization will be able to call that phone number. * That phone number will not be able to call anybody in your organization.

Authentication

Connected account required

Tags

blocked_phone_numbers
Initiate a new bulk deleteCLOSE_POST_BULK_ACTION_DELETEUse `"send_done_email": false` if you don't want to get a confirmation email after the bulk action is done.

Use `"send_done_email": false` if you don't want to get a confirmation email after the bulk action is done.

Authentication

Connected account required

Tags

bulk_actions.delete
Initiate a new bulk editCLOSE_POST_BULK_ACTION_EDITPass additional parameters depending on which `type` is passed: - `set_lead_status` will set the Lead Status on all leads. It expects: - `lead_status_id` - ID of the Lead Status to use. - `clear_custom_field` will clear/remove/unset a specific custom field from all leads. It expects: - `custom_field_id` or `custom_field_name` - ID or exact name of the custom field to remove. - `set_custom_field` will set/update/add a specific custom field on all leads. It expects: - `custom_field_id` or `custom_field_name` - ID or exact name of the custom field to set/update. - `custom_field_value` - New value. Use `custom_field_values` to pass multiple values to custom fields that support it. - `custom_field_operation` - `replace`, `add`, or `remove` (defaults to `replace`). Only applicable for custom fields that accept multiple values. Use `"send_done_email": false` if you don't want to get a confirmation email after the bulk action is done.

Pass additional parameters depending on which `type` is passed: - `set_lead_status` will set the Lead Status on all leads. It expects: - `lead_status_id` - ID of the Lead Status to use. - `clear_custom_field` will clear/remove/unset a specific custom field from all leads. It expects: - `custom_field_id` or `custom_field_name` - ID or exact name of the custom field to remove. - `set_custom_field` will set/update/add a specific custom field on all leads. It expects: - `custom_field_id` or `custom_field_name` - ID or exact name of the custom field to set/update. - `custom_field_value` - New value. Use `custom_field_values` to pass multiple values to custom fields that support it. - `custom_field_operation` - `replace`, `add`, or `remove` (defaults to `replace`). Only applicable for custom fields that accept multiple values. Use `"send_done_email": false` if you don't want to get a confirmation email after the bulk action is done.

Authentication

Connected account required

Tags

bulk_actions.edit
Initiate a new bulk emailCLOSE_POST_BULK_ACTION_EMAIL`contact_preference` can be set to `lead` (only email the primary/first contact email of the lead) or `contact` (email the first contact email of each contact of the lead).

`contact_preference` can be set to `lead` (only email the primary/first contact email of the lead) or `contact` (email the first contact email of each contact of the lead).

Authentication

Connected account required

Tags

bulk_actions.email
Initiate a new bulk sequence subscriptionCLOSE_POST_BULK_ACTION_SEQUENCE_SUBSCRIPTION`action_type` must be one of: - `subscribe` to create a new sequence subscription for contacts that have never received the given sequence. - `resume` to resume any paused sequence subscriptions for the given sequence or all sequences if `sequence_id` is not provided. - `resume_finished` to resume any finished sequence subscriptions for the given sequence or all sequences if `sequence_id` is not provided. - `pause` to pause any active sequence subscriptions for the given sequence or all sequences if `sequence_id` is not provided. `sequence_id`, `sender_account_id`, `sender_name`, `sender_email` and `contact_preference` are required if `action_type` is `subscribe`. `contact_preference` can be set to: - `lead` to only subscribe the primary/first contact email of the lead. - `contact` to subscribe the primary email of each contact of the lead.

`action_type` must be one of: - `subscribe` to create a new sequence subscription for contacts that have never received the given sequence. - `resume` to resume any paused sequence subscriptions for the given sequence or all sequences if `sequence_id` is not provided. - `resume_finished` to resume any finished sequence subscriptions for the given sequence or all sequences if `sequence_id` is not provided. - `pause` to pause any active sequence subscriptions for the given sequence or all sequences if `sequence_id` is not provided. `sequence_id`, `sender_account_id`, `sender_name`, `sender_email` and `contact_preference` are required if `action_type` is `subscribe`. `contact_preference` can be set to: - `lead` to only subscribe the primary/first contact email of the lead. - `contact` to subscribe the primary email of each contact of the lead.

Authentication

Connected account required

Tags

bulk_actions.sequence_subscriptions
Create a CommentCLOSE_POST_COMMENTCreate a comment on an object. If a comment thread already exists on that object, a new comment is added to the existing thread. If no thread exists yet, one is created automatically.

Create a comment on an object. If a comment thread already exists on that object, a new comment is added to the existing thread. If no thread exists yet, one is created automatically.

Authentication

Connected account required

Tags

comments
Create a new contactCLOSE_POST_CONTACTContacts belong to exactly one Lead (specified by `lead_id`). If you do not provide a `lead_id` then a new lead will be created, named after the contact. Custom field values can be set by including `custom.cf_*` keys in the request body, e.g. `"custom.cf_abc123": "value"`.

Contacts belong to exactly one Lead (specified by `lead_id`). If you do not provide a `lead_id` then a new lead will be created, named after the contact. Custom field values can be set by including `custom.cf_*` keys in the request body, e.g. `"custom.cf_abc123": "value"`.

Authentication

Connected account required

Tags

contacts
Create new Custom Activity TypeCLOSE_POST_CUSTOM_ACTIVITYThe type must be created before activity custom fields can be added.

The type must be created before activity custom fields can be added.

Authentication

Connected account required

Tags

custom_activity_types
Create a new Activity Custom FieldCLOSE_POST_CUSTOM_FIELD_ACTIVITYActivity Custom Fields belong to Custom Activities, and have additional attributes: - `custom_activity_type_id` – the ID of the Custom Activity Type this Field should belong to. - `required` – whether the Field will be required to publish the activity.

Activity Custom Fields belong to Custom Activities, and have additional attributes: - `custom_activity_type_id` – the ID of the Custom Activity Type this Field should belong to. - `required` – whether the Field will be required to publish the activity.

Authentication

Connected account required

Tags

custom_fields.activity
Create a new Contact Custom FieldCLOSE_POST_CUSTOM_FIELD_CONTACTCreate a new Contact Custom Field

Create a new Contact Custom Field

Authentication

Connected account required

Tags

custom_fields.contact
Create a new Custom Object Custom FieldCLOSE_POST_CUSTOM_FIELD_CUSTOM_OBJECT_TYPECustom Object Custom Fields belong to Custom Objects, and have additional attributes: - `custom_object_type_id` – the ID of the Custom Object Type this Field should belong to. - `required` – whether the Field will be required to save the object.

Custom Object Custom Fields belong to Custom Objects, and have additional attributes: - `custom_object_type_id` – the ID of the Custom Object Type this Field should belong to. - `required` – whether the Field will be required to save the object.

Authentication

Connected account required

Tags

custom_fields.custom_object
Create a new Lead Custom FieldCLOSE_POST_CUSTOM_FIELD_LEADCreate a new Lead Custom Field

Create a new Lead Custom Field

Authentication

Connected account required

Tags

custom_fields.lead
Create a new Opportunity Custom FieldCLOSE_POST_CUSTOM_FIELD_OPPORTUNITYCreate a new Opportunity Custom Field

Create a new Opportunity Custom Field

Authentication

Connected account required

Tags

custom_fields.opportunity
Create a new Shared Custom FieldCLOSE_POST_CUSTOM_FIELD_SHAREDCreate a new Shared Custom Field

Create a new Shared Custom Field

Authentication

Connected account required

Tags

custom_fields.shared
Create a new Custom Object instanceCLOSE_POST_CUSTOM_OBJECTCustom Field values can be set using the format: `custom.{custom_field_id}`. See [Custom Fields](https://developer.close.com/api/resources/custom-fields/custom-fields-custom-object). The following fields are required: - `custom_object_type_id`: The type of Custom Object you are creating determines the Custom Fields that can be used. - `lead_id`: The Lead that this Custom Object instance will belong to. - `name`: Each Custom Object has a name, used for display.

Custom Field values can be set using the format: `custom.{custom_field_id}`. See [Custom Fields](https://developer.close.com/api/resources/custom-fields/custom-fields-custom-object). The following fields are required: - `custom_object_type_id`: The type of Custom Object you are creating determines the Custom Fields that can be used. - `lead_id`: The Lead that this Custom Object instance will belong to. - `name`: Each Custom Object has a name, used for display.

Authentication

Connected account required

Tags

custom_objects
Create new Custom Object TypeCLOSE_POST_CUSTOM_OBJECT_TYPEThe type must be created before Custom Fields can be added. The following fields are required: - `name`: The name of the Custom Object Type - `name_plural`: A pluralized version of the name, for some UI display. The following fields are optional: - `description`: A longer description of the Custom Object Type. - `api_create_only`: If `true`, instances can only be created by API clients. Defaults to `false`. - `editable_with_roles`: Only users with the given roles can edit instances of this type. By default, any user in your organization can make changes to the instances of this type.

The type must be created before Custom Fields can be added. The following fields are required: - `name`: The name of the Custom Object Type - `name_plural`: A pluralized version of the name, for some UI display. The following fields are optional: - `description`: A longer description of the Custom Object Type. - `api_create_only`: If `true`, instances can only be created by API clients. Defaults to `false`. - `editable_with_roles`: Only users with the given roles can edit instances of this type. By default, any user in your organization can make changes to the instances of this type.

Authentication

Connected account required

Tags

custom_object_types
Create an email templateCLOSE_POST_EMAIL_TEMPLATECreate an email template

Create an email template

Authentication

Connected account required

Tags

email_templates
Enrich a specific field on a lead or contact using AICLOSE_POST_ENRICH_FIELDThis endpoint uses AI to enrich (populate or enhance) a specific field on a lead or contact. The enrichment process analyzes existing data and external sources to provide intelligent field values. **Parameters:** - `organization_id` (required): The organization ID - `object_type` (required): Either "lead" or "contact" - `object_id` (required): The ID of the lead or contact to enrich - `field_id` (required): The ID of the custom field to enrich - `set_new_value` (optional): Whether to update the field with the enriched value (default: true) - `overwrite_existing_value` (optional): Whether to overwrite existing field values (default: false)

This endpoint uses AI to enrich (populate or enhance) a specific field on a lead or contact. The enrichment process analyzes existing data and external sources to provide intelligent field values. **Parameters:** - `organization_id` (required): The organization ID - `object_type` (required): Either "lead" or "contact" - `object_id` (required): The ID of the lead or contact to enrich - `field_id` (required): The ID of the custom field to enrich - `set_new_value` (optional): Whether to update the field with the enriched value (default: true) - `overwrite_existing_value` (optional): Whether to overwrite existing field values (default: false)

Authentication

Connected account required

Tags

field_enrichment
Generate a signed S3 POSTCLOSE_POST_FILES_UPLOADGet the data needed to make a request to S3 to store your file.

Get the data needed to make a request to S3 to store your file.

Authentication

Connected account required

Tags

files
Create a GroupCLOSE_POST_GROUPCreate a new group. The `name` is required and must be unique within the organization. The group is created with no members. Use the member endpoint to add users.

Create a new group. The `name` is required and must be unique within the organization. The group is created with no members. Use the member endpoint to add users.

Authentication

Connected account required

Tags

groups
Create an integration linkCLOSE_POST_INTEGRATION_LINKCreate an integration link

Create an integration link

Authentication

Connected account required

Tags

integration_links
Create a membershipCLOSE_POST_MEMBERSHIPEnsures an active membership for the given email will be provisioned. - If the user already exists, they will be added to the requestor's organization. - If it doesn't exist, a new user will be provisioned. This request requires "Manage Organization" permissions. API access to this endpoint is supported via OAuth only.

Ensures an active membership for the given email will be provisioned. - If the user already exists, they will be added to the requestor's organization. - If it doesn't exist, a new user will be provisioned. This request requires "Manage Organization" permissions. API access to this endpoint is supported via OAuth only.

Authentication

Connected account required

Tags

memberships
Create an opportunityCLOSE_POST_OPPORTUNITYCreate an opportunity, optionally linked to an existing lead. **custom.FIELD_ID** (optional): Set custom fields by setting `custom.FIELD_ID` to the field value, where FIELD_ID is the ID of the custom field, e.g.: ```json { "custom.cf_v6S011I6MqcbVvB2FA5Nk8dr5MkL8sWuCiG8cUleO9c": "value", "custom.cf_8wtBWsdRU2Fur7GDnEeXQ7ra2Vu7R4hG1SNYdiEhh0F": "other value" } ``` If a custom field has `accepts_multiple_values: true`, the entire value will be replaced. For example, given an Opportunity has a Custom Choice Field with value `["A", "B"]`, adding choice `"C"` would mean setting the value to `["A", "B", "C"]`. Note that using the `custom` field dict or the `custom.FIELD_NAME` syntax (instead of custom field IDs) is deprecated and will be removed from the API. See [Custom Fields](https://developer.close.com/api/resources/custom-fields) for more details.

Create an opportunity, optionally linked to an existing lead. **custom.FIELD_ID** (optional): Set custom fields by setting `custom.FIELD_ID` to the field value, where FIELD_ID is the ID of the custom field, e.g.: ```json { "custom.cf_v6S011I6MqcbVvB2FA5Nk8dr5MkL8sWuCiG8cUleO9c": "value", "custom.cf_8wtBWsdRU2Fur7GDnEeXQ7ra2Vu7R4hG1SNYdiEhh0F": "other value" } ``` If a custom field has `accepts_multiple_values: true`, the entire value will be replaced. For example, given an Opportunity has a Custom Choice Field with value `["A", "B"]`, adding choice `"C"` would mean setting the value to `["A", "B", "C"]`. Note that using the `custom` field dict or the `custom.FIELD_NAME` syntax (instead of custom field IDs) is deprecated and will be removed from the API. See [Custom Fields](https://developer.close.com/api/resources/custom-fields) for more details.

Authentication

Connected account required

Tags

opportunities
Create an outcomeCLOSE_POST_OUTCOMECreate a new outcome for the organization.

Create a new outcome for the organization.

Authentication

Connected account required

Tags

outcomes
Request an internal phone numberCLOSE_POST_PHONE_NUMBER_REQUEST_INTERNALRenting a phone number incurs a cost. You need the "Manage Group Phone Numbers" permission to rent group numbers. If a number was rented, a 201 response is returned with the new number. If no number was rented (4xx response code), the response contains a `status` field which may contain one of the values below. New statuses may be added in the future. * `has-voice-only`: This country/prefix combination only has non-SMS-capable numbers. You can attempt renting the number by passing `with_sms` as `false`. * `needs-more-info`: More information (such as proof of address) is needed to rent this number. This number can only be rented by contacting Close support. * `billing-error`: An error related to billing has occurred. For example, the telephony budget has been reached, or there are not enough funds and recharging failed. * `error`: An error has occurred while renting this number. A human-readable message is returned in the `error` field.

Renting a phone number incurs a cost. You need the "Manage Group Phone Numbers" permission to rent group numbers. If a number was rented, a 201 response is returned with the new number. If no number was rented (4xx response code), the response contains a `status` field which may contain one of the values below. New statuses may be added in the future. * `has-voice-only`: This country/prefix combination only has non-SMS-capable numbers. You can attempt renting the number by passing `with_sms` as `false`. * `needs-more-info`: More information (such as proof of address) is needed to rent this number. This number can only be rented by contacting Close support. * `billing-error`: An error related to billing has occurred. For example, the telephony budget has been reached, or there are not enough funds and recharging failed. * `error`: An error has occurred while renting this number. A human-readable message is returned in the `error` field.

Authentication

Connected account required

Tags

phone_numbers
Create a PipelineCLOSE_POST_PIPELINECreate a Pipeline

Create a Pipeline

Authentication

Connected account required

Tags

pipelines
Create a playbookCLOSE_POST_PLAYBOOKCreate a new playbook for the organization.

Create a new playbook for the organization.

Authentication

Connected account required

Tags

playbooks
Create a new roleCLOSE_POST_ROLE`visibility_user_lcf_ids` (optional) A list of Lead Custom Field IDs that define which leads user with this role can see. If the role has `view_all_leads` permission, this field should be empty. `visibility_user_lcf_behavior` (optional) Defines how lead visibility works for leads that don't have assigned users. If the role has `view_all_leads` permission, this field should be empty. - `require_assignment` - leads without assigned users are not visible to this role - `allow_unassigned` - leads without assigned users are visible to this role

`visibility_user_lcf_ids` (optional) A list of Lead Custom Field IDs that define which leads user with this role can see. If the role has `view_all_leads` permission, this field should be empty. `visibility_user_lcf_behavior` (optional) Defines how lead visibility works for leads that don't have assigned users. If the role has `view_all_leads` permission, this field should be empty. - `require_assignment` - leads without assigned users are not visible to this role - `allow_unassigned` - leads without assigned users are visible to this role

Authentication

Connected account required

Tags

roles
Create a Smart ViewCLOSE_POST_SAVED_SEARCHCreate a Lead or Contact Smart View. For Lead Smart Views, the `type` field is optional (since `lead` is the default `type`). When creating a Smart View, you must specify that you want to get objects of the appropriate type via an `object_type` clause as per the [Advanced Filtering](https://developer.close.com/api/resources/advanced-filtering) section. See the examples below.

Create a Lead or Contact Smart View. For Lead Smart Views, the `type` field is optional (since `lead` is the default `type`). When creating a Smart View, you must specify that you want to get objects of the appropriate type via an `object_type` clause as per the [Advanced Filtering](https://developer.close.com/api/resources/advanced-filtering) section. See the examples below.

Authentication

Connected account required

Tags

smart_views
Create a User Scheduling LinkCLOSE_POST_SCHEDULING_LINKCreate a User Scheduling Link

Create a User Scheduling Link

Authentication

Connected account required

Tags

scheduling_links
Create or update a Scheduling Link via OAuthCLOSE_POST_SCHEDULING_LINK_INTEGRATIONPlease note that only OAuth apps can perform this operation. Using API key will result in an error. See [Authentication with OAuth](https://developer.close.com/api/overview/oauth-authentication) for more information. Create or update a user scheduling link, managed by your application. Uses the integration-provided `source_id` field to identify and merge duplicate resources created by the same OAuth Application. If a scheduling link created by your OAuth application with the specified `source_id` does not exist, a new one will be created. Otherwise, the scheduling link resource will be updated. Requires authentication via OAuth.

Please note that only OAuth apps can perform this operation. Using API key will result in an error. See [Authentication with OAuth](https://developer.close.com/api/overview/oauth-authentication) for more information. Create or update a user scheduling link, managed by your application. Uses the integration-provided `source_id` field to identify and merge duplicate resources created by the same OAuth Application. If a scheduling link created by your OAuth application with the specified `source_id` does not exist, a new one will be created. Otherwise, the scheduling link resource will be updated. Requires authentication via OAuth.

Authentication

Connected account required

Tags

scheduling_links
Create a Send As AssociationCLOSE_POST_SEND_ASCreate a send-as permission. The `allowing_user_id` must be equal to your own user ID.

Create a send-as permission. The `allowing_user_id` must be equal to your own user ID.

Authentication

Connected account required

Tags

send_as
Create a SequenceCLOSE_POST_SEQUENCECreate a Sequence

Create a Sequence

Authentication

Connected account required

Tags

sequences
Create an SMS templateCLOSE_POST_SMS_TEMPLATECreate an SMS template

Create an SMS template

Authentication

Connected account required

Tags

sms_templates
Create a new status that can be applied to leadsCLOSE_POST_STATUS_LEADCreate a new status that can be applied to leads

Create a new status that can be applied to leads

Authentication

Connected account required

Tags

lead_statuses
Create an opportunity statusCLOSE_POST_STATUS_OPPORTUNITYCreate a new opportunity status. The status must belong to a pipeline (specified by `pipeline_id`) and have a `type` of `active`, `won`, or `lost`.

Create a new opportunity status. The status must belong to a pipeline (specified by `pipeline_id`) and have a `type` of `active`, `won`, or `lost`.

Authentication

Connected account required

Tags

opportunity_statuses
Create a taskCLOSE_POST_TASKProvide the type of task to be created in the `_type` field. Currently only tasks of type `lead` and `outgoing_call` can be created.

Provide the type of task to be created in the `_type` field. Currently only tasks of type `lead` and `outgoing_call` can be created.

Authentication

Connected account required

Tags

tasks
Unsubscribe an email addressCLOSE_POST_UNSUBSCRIBE_EMAILThis is useful for when you have an email address that has unsubscribed in another context (like a mailing list) and you want to unsubscribe them from messages from Close as well.

This is useful for when you have an email address that has unsubscribed in another context (like a mailing list) and you want to unsubscribe them from messages from Close as well.

Authentication

Connected account required

Tags

unsubscribed_emails
Create new Webhook subscriptionCLOSE_POST_WEBHOOKThe subscription will send events to the specified URL.

The subscription will send events to the specified URL.

Authentication

Connected account required

Tags

webhooks
Update a Call activityCLOSE_PUT_ACTIVITY_CALL_IDMost commonly used to update `note_html` or `outcome_id`. Some fields (`status`, `duration`, `direction`) cannot be updated for internal calls made through Close's VoIP system. **`note_html` and `note`**: setting one overwrites the other. If both are provided, `note_html` takes precedence. `note_html` supports rich-text HTML; `note` is plaintext only. **Deleting recordings**: for internal calls, changing or clearing `recording_url` or `voicemail_url`, or setting `recording_transcript` to `null`, permanently deletes the corresponding recording, voicemail, or transcript. This requires the `delete_own_activities` permission for your own calls, or `manage_others_activities` for other users' calls and calls not assigned to a user. Without the required permission the request fails with a `400` error.

Most commonly used to update `note_html` or `outcome_id`. Some fields (`status`, `duration`, `direction`) cannot be updated for internal calls made through Close's VoIP system. **`note_html` and `note`**: setting one overwrites the other. If both are provided, `note_html` takes precedence. `note_html` supports rich-text HTML; `note` is plaintext only. **Deleting recordings**: for internal calls, changing or clearing `recording_url` or `voicemail_url`, or setting `recording_transcript` to `null`, permanently deletes the corresponding recording, voicemail, or transcript. This requires the `delete_own_activities` permission for your own calls, or `manage_others_activities` for other users' calls and calls not assigned to a user. Without the required permission the request fails with a `400` error.

Authentication

Connected account required

Tags

activities.calls
Updating a Custom Activity instanceCLOSE_PUT_ACTIVITY_CUSTOM_IDA Custom Activity can be updated to add, change or remove any Custom Fields and to change the status between "draft" and "published". A Custom Activity can be pinned or unpinned by setting the `pinned` field to `true` or `false` when creating or updating a Custom Activity.

A Custom Activity can be updated to add, change or remove any Custom Fields and to change the status between "draft" and "published". A Custom Activity can be pinned or unpinned by setting the `pinned` field to `true` or `false` when creating or updating a Custom Activity.

Authentication

Connected account required

Tags

activities.custom_activities
Update an Email activityCLOSE_PUT_ACTIVITY_EMAIL_IDThis can be used to modify a draft or send it once the draft is complete. When changing a draft's status to `scheduled` or `outbox`, the `sender` field is required if not already set on the email.

This can be used to modify a draft or send it once the draft is complete. When changing a draft's status to `scheduled` or `outbox`, the `sender` field is required if not already set on the email.

Authentication

Connected account required

Tags

activities.emails
Update a Meeting activityCLOSE_PUT_ACTIVITY_MEETING_IDMost commonly this can be used to update a meetings's `user_note_html` or `outcome_id`.

Most commonly this can be used to update a meetings's `user_note_html` or `outcome_id`.

Authentication

Connected account required

Tags

activities.meetings
Update a Note activityCLOSE_PUT_ACTIVITY_NOTE_ID**`note_html` and `note`**: setting one overwrites the other. If both are provided, `note_html` takes precedence. `note_html` supports rich-text HTML; `note` is plaintext only. A note can be pinned or unpinned by setting `pinned` to `true` or `false`.

**`note_html` and `note`**: setting one overwrites the other. If both are provided, `note_html` takes precedence. `note_html` supports rich-text HTML; `note` is plaintext only. A note can be pinned or unpinned by setting `pinned` to `true` or `false`.

Authentication

Connected account required

Tags

activities.notes
Update an SMS activityCLOSE_PUT_ACTIVITY_SMS_IDThis can be used to modify a draft or send it once the draft is complete. To send an SMS immediately, you can update its `status` to `outbox`. To send it at a later time, change the `status` to `scheduled` and provide the desired date & time in the `date_scheduled` field.

This can be used to modify a draft or send it once the draft is complete. To send an SMS immediately, you can update its `status` to `outbox`. To send it at a later time, change the `status` to `scheduled` and provide the desired date & time in the `date_scheduled` field.

Authentication

Connected account required

Tags

activities.sms
Update a WhatsAppMessage activityCLOSE_PUT_ACTIVITY_WHATSAPP_MESSAGE_IDUpdate a WhatsAppMessage activity

Update a WhatsAppMessage activity

Authentication

Connected account required

Tags

activities.whatsapp_messages
Update a Blocked Phone NumberCLOSE_PUT_BLOCKED_PHONE_NUMBER_IDUpdate a Blocked Phone Number

Update a Blocked Phone Number

Authentication

Connected account required

Tags

blocked_phone_numbers
Update a CommentCLOSE_PUT_COMMENT_IDYou can use this endpoint to edit a comment body. Note that users may only update their own comments.

You can use this endpoint to edit a comment body. Note that users may only update their own comments.

Authentication

Connected account required

Tags

comments
Update an existing contactCLOSE_PUT_CONTACT_IDUpdate a contact's information. Custom field values can be set by including `custom.cf_*` keys in the request body, e.g. `"custom.cf_abc123": "value"`. For custom fields that accept multiple values, you can use `.add` or `.remove` suffixes to modify the existing list without replacing it: ```json { "custom.cf_v6S011I6MqcbVvB2FA5Nk8dr5MkL8sWuCiG8cUleO9c.add": "Wednesday" } ```

Update a contact's information. Custom field values can be set by including `custom.cf_*` keys in the request body, e.g. `"custom.cf_abc123": "value"`. For custom fields that accept multiple values, you can use `.add` or `.remove` suffixes to modify the existing list without replacing it: ```json { "custom.cf_v6S011I6MqcbVvB2FA5Nk8dr5MkL8sWuCiG8cUleO9c.add": "Wednesday" } ```

Authentication

Connected account required

Tags

contacts
Update existing Custom Activity TypeCLOSE_PUT_CUSTOM_ACTIVITY_IDThe type's `name`, `description`, `api_create_only`, `editable_with_roles` and `is_archived` may be updated here. These properties will be updated immediately in the Custom Activity API. Field order can be set here, but adding, modifying or removing fields from a Custom Activity Type must be done using the Custom Field API. The field order is a display property only, and does not affect the request and response for the Custom Activity API.

The type's `name`, `description`, `api_create_only`, `editable_with_roles` and `is_archived` may be updated here. These properties will be updated immediately in the Custom Activity API. Field order can be set here, but adding, modifying or removing fields from a Custom Activity Type must be done using the Custom Field API. The field order is a display property only, and does not affect the request and response for the Custom Activity API.

Authentication

Connected account required

Tags

custom_activity_types
Update an Activity Custom FieldCLOSE_PUT_CUSTOM_FIELD_ACTIVITY_IDYou can rename it, change whether it accepts multiple values or not, change the "required" flag, change whether editing its values is restricted to specific Roles, or update the options for a "choices" field type. The updated name will immediately appear in the Close UI and only valid values for the updated `type` will be returned by the Custom Activity API. The `custom_activity_type_id` and `type` values cannot be changed.

You can rename it, change whether it accepts multiple values or not, change the "required" flag, change whether editing its values is restricted to specific Roles, or update the options for a "choices" field type. The updated name will immediately appear in the Close UI and only valid values for the updated `type` will be returned by the Custom Activity API. The `custom_activity_type_id` and `type` values cannot be changed.

Authentication

Connected account required

Tags

custom_fields.activity
Update a Contact Custom FieldCLOSE_PUT_CUSTOM_FIELD_CONTACT_IDYou can rename it, change its type, change whether it accepts multiple values or not, change whether editing its values is restricted to specific Roles, or update the options for a "choices" field type. The updated name will immediately appear in the Close UI and only valid values for the updated `type` will be returned by the Contact API. Some of the type changes need to convert all of the existing values for a given Custom Field to the new type. When this is required, the response will include an additional `converting_to_type` field. When the conversion is done, `converting_to_type` will no longer be returned.

You can rename it, change its type, change whether it accepts multiple values or not, change whether editing its values is restricted to specific Roles, or update the options for a "choices" field type. The updated name will immediately appear in the Close UI and only valid values for the updated `type` will be returned by the Contact API. Some of the type changes need to convert all of the existing values for a given Custom Field to the new type. When this is required, the response will include an additional `converting_to_type` field. When the conversion is done, `converting_to_type` will no longer be returned.

Authentication

Connected account required

Tags

custom_fields.contact
Update a Custom Object Custom FieldCLOSE_PUT_CUSTOM_FIELD_CUSTOM_OBJECT_TYPE_IDYou can rename it, change whether it accepts multiple values or not, change the "required" flag, change whether editing its values is restricted to specific Roles, or update the options for a "choices" field type. The updated name will immediately appear in the Close UI and only valid values for the updated `type` will be returned by the Custom Object API. The `custom_object_type_id` and `type` values cannot be changed.

You can rename it, change whether it accepts multiple values or not, change the "required" flag, change whether editing its values is restricted to specific Roles, or update the options for a "choices" field type. The updated name will immediately appear in the Close UI and only valid values for the updated `type` will be returned by the Custom Object API. The `custom_object_type_id` and `type` values cannot be changed.

Authentication

Connected account required

Tags

custom_fields.custom_object
Update a Lead Custom FieldCLOSE_PUT_CUSTOM_FIELD_LEAD_IDYou can rename it, change its type, change whether it accepts multiple values or not, change whether editing its values is restricted to specific Roles, or update the options for a "choices" field type. The updated name will immediately appear in the Close UI and only valid values for the updated `type` will be returned by the Lead API. Some of the type changes need to convert all of the existing values for a given Custom Field to the new type. When this is required, the response will include an additional `converting_to_type` field. When the conversion is done, `converting_to_type` will no longer be returned.

You can rename it, change its type, change whether it accepts multiple values or not, change whether editing its values is restricted to specific Roles, or update the options for a "choices" field type. The updated name will immediately appear in the Close UI and only valid values for the updated `type` will be returned by the Lead API. Some of the type changes need to convert all of the existing values for a given Custom Field to the new type. When this is required, the response will include an additional `converting_to_type` field. When the conversion is done, `converting_to_type` will no longer be returned.

Authentication

Connected account required

Tags

custom_fields.lead
Update an Opportunity Custom FieldCLOSE_PUT_CUSTOM_FIELD_OPPORTUNITY_IDYou can rename it, change its type, change whether it accepts multiple values or not, change whether editing its values is restricted to specific Roles, or update the options for a "choices" field type. The updated name will immediately appear in the Close UI and only valid values for the updated `type` will be returned by the Contact API. Some of the type changes need to convert all of the existing values for a given Custom Field to the new type. When this is required, the response will include an additional `converting_to_type` field. When the conversion is done, `converting_to_type` will no longer be returned.

You can rename it, change its type, change whether it accepts multiple values or not, change whether editing its values is restricted to specific Roles, or update the options for a "choices" field type. The updated name will immediately appear in the Close UI and only valid values for the updated `type` will be returned by the Contact API. Some of the type changes need to convert all of the existing values for a given Custom Field to the new type. When this is required, the response will include an additional `converting_to_type` field. When the conversion is done, `converting_to_type` will no longer be returned.

Authentication

Connected account required

Tags

custom_fields.opportunity
Update a custom field schemaCLOSE_PUT_CUSTOM_FIELD_SCHEMA_OBJECT_TYPETo reorder Custom Fields (and thus change the order in which they are displayed in the Close UI), you simply need to supply a `fields` list with `{"id": ...}` items corresponding to the IDs of the Custom Fields belonging to the given Schema. Note that any IDs that are omitted from the list with be automatically appended to the end of the list. If you want to remove some Fields from the Schema, then delete the Custom Field or – in case of Shared Custom Fields – disassociate the Field from the given object.

To reorder Custom Fields (and thus change the order in which they are displayed in the Close UI), you simply need to supply a `fields` list with `{"id": ...}` items corresponding to the IDs of the Custom Fields belonging to the given Schema. Note that any IDs that are omitted from the list with be automatically appended to the end of the list. If you want to remove some Fields from the Schema, then delete the Custom Field or – in case of Shared Custom Fields – disassociate the Field from the given object.

Authentication

Connected account required

Tags

custom_field_schemas
Update a Shared Custom FieldCLOSE_PUT_CUSTOM_FIELD_SHARED_IDYou can rename it or update the options for a "choices" field type. The updated name will immediately appear in the Close UI and only valid values for the updated `choices` will be returned by the Lead/Contact/Custom Activity APIs. The `type` value cannot be changed.

You can rename it or update the options for a "choices" field type. The updated name will immediately appear in the Close UI and only valid values for the updated `choices` will be returned by the Lead/Contact/Custom Activity APIs. The `type` value cannot be changed.

Authentication

Connected account required

Tags

custom_fields.shared
Updating a Custom Object instanceCLOSE_PUT_CUSTOM_OBJECT_IDA Custom Object can be updated to add, change or remove any Custom Fields, and to change the `name` property.

A Custom Object can be updated to add, change or remove any Custom Fields, and to change the `name` property.

Authentication

Connected account required

Tags

custom_objects
Update existing Custom Object TypeCLOSE_PUT_CUSTOM_OBJECT_TYPE_IDThe type's `name`, `name_plural`, `description`, `api_create_only` and `editable_with_roles` properties may be updated here. These properties will be updated immediately in the Custom Object API. You cannot add, modify, remove or reorder fields from a Custom Object Type using this resource. See [Custom Object Custom Fields](https://developer.close.com/api/resources/custom-fields/custom-fields-custom-object) and [Custom Field Schema API](https://developer.close.com/api/resources/custom-fields/custom-field-schemas) for these features.

The type's `name`, `name_plural`, `description`, `api_create_only` and `editable_with_roles` properties may be updated here. These properties will be updated immediately in the Custom Object API. You cannot add, modify, remove or reorder fields from a Custom Object Type using this resource. See [Custom Object Custom Fields](https://developer.close.com/api/resources/custom-fields/custom-fields-custom-object) and [Custom Field Schema API](https://developer.close.com/api/resources/custom-fields/custom-field-schemas) for these features.

Authentication

Connected account required

Tags

custom_object_types
Update an email templateCLOSE_PUT_EMAIL_TEMPLATE_IDUpdate an email template

Update an email template

Authentication

Connected account required

Tags

email_templates
Update a GroupCLOSE_PUT_GROUP_IDYou can use this endpoint to rename a Group. If a name is not unique, an error will be returned.

You can use this endpoint to rename a Group. If a name is not unique, an error will be returned.

Authentication

Connected account required

Tags

groups
Update an integration linkCLOSE_PUT_INTEGRATION_LINK_IDUpdate an integration link

Update an integration link

Authentication

Connected account required

Tags

integration_links
Bulk update membershipsCLOSE_PUT_MEMBERSHIPAny field that can be updated on a membership individually can also be used to bulk update multiple memberships. Pass the comma-separated ids of the memberships to update into `id__in` in `_params`. For example: ```json {"_params": {"id__in": "memb_A,memb_B"}, "role_id": "role_y6eLquXvRUdmwqi61tsmgCJUU7uGfxaRbDuLoONZL9p"} ```

Any field that can be updated on a membership individually can also be used to bulk update multiple memberships. Pass the comma-separated ids of the memberships to update into `id__in` in `_params`. For example: ```json {"_params": {"id__in": "memb_A,memb_B"}, "role_id": "role_y6eLquXvRUdmwqi61tsmgCJUU7uGfxaRbDuLoONZL9p"} ```

Authentication

Connected account required

Tags

memberships
Update a membershipCLOSE_PUT_MEMBERSHIP_IDUpdate a membership

Update a membership

Authentication

Connected account required

Tags

memberships
Update an opportunityCLOSE_PUT_OPPORTUNITY_ID**custom.FIELD_ID** (optional) - See description for `custom.FIELD_ID` in `POST /opportunity/` above. - Additionally, you can unset a single field by using `{ "custom.FIELD_ID": null }`, e.g.: ``` { "custom.cf_v6S011I6MqcbVvB2FA5Nk8dr5MkL8sWuCiG8cUleO9c": null } ``` If you're trying to update a custom field and that custom field accepts multiple values, you can also specify `.add` or `.remove` as part of the field key to add/remove a single value to/from a list of values, e.g.: ``` { "custom.cf_v6S011I6MqcbVvB2FA5Nk8dr5MkL8sWuCiG8cUleO9c.add": "Wednesday" } ```

**custom.FIELD_ID** (optional) - See description for `custom.FIELD_ID` in `POST /opportunity/` above. - Additionally, you can unset a single field by using `{ "custom.FIELD_ID": null }`, e.g.: ``` { "custom.cf_v6S011I6MqcbVvB2FA5Nk8dr5MkL8sWuCiG8cUleO9c": null } ``` If you're trying to update a custom field and that custom field accepts multiple values, you can also specify `.add` or `.remove` as part of the field key to add/remove a single value to/from a list of values, e.g.: ``` { "custom.cf_v6S011I6MqcbVvB2FA5Nk8dr5MkL8sWuCiG8cUleO9c.add": "Wednesday" } ```

Authentication

Connected account required

Tags

opportunities
Update an organizationCLOSE_PUT_ORGANIZATION_IDUpdate an organization

Update an organization

Authentication

Connected account required

Tags

organizations
Update an outcomeCLOSE_PUT_OUTCOME_IDUpdate an existing outcome.

Update an existing outcome.

Authentication

Connected account required

Tags

outcomes
Update a phone numberCLOSE_PUT_PHONE_NUMBER_IDYou need the "Manage Group Phone Numbers" permission to update a group number. You can only update your own personal numbers. You can: - Change a `label` of your number. - Set up call forwarding via `forward_to` and `forward_to_enabled`. - Set up a voicemail greeting by including a URL of an mp3 recording in `voicemail_greeting_url`. We require the URL to be secure (i.e. starting with https://). - Modify which team members are part of a group number via `participants`. This should be a list of user IDs. - Modify which external phone numbers are part of a group number via `phone_numbers`. This should be a list of phone numbers in E.164 international format, e.g. "+16503334444". - Change how long (in seconds, 15-90) the number rings on inbound calls before moving on (e.g. to voicemail) via `inbound_ring_duration`.

You need the "Manage Group Phone Numbers" permission to update a group number. You can only update your own personal numbers. You can: - Change a `label` of your number. - Set up call forwarding via `forward_to` and `forward_to_enabled`. - Set up a voicemail greeting by including a URL of an mp3 recording in `voicemail_greeting_url`. We require the URL to be secure (i.e. starting with https://). - Modify which team members are part of a group number via `participants`. This should be a list of user IDs. - Modify which external phone numbers are part of a group number via `phone_numbers`. This should be a list of phone numbers in E.164 international format, e.g. "+16503334444". - Change how long (in seconds, 15-90) the number rings on inbound calls before moving on (e.g. to voicemail) via `inbound_ring_duration`.

Authentication

Connected account required

Tags

phone_numbers
Update a PipelineCLOSE_PUT_PIPELINE_IDYou can use this endpoint to: * Rename a Pipeline. * Reorder Opportunity Statuses within a Pipeline. * Move an Opportunity Status from a different Pipeline into this one. * To do so, include `{"id": "id_of_the_status_from_another_pipeline"}` in the `statuses` list.

You can use this endpoint to: * Rename a Pipeline. * Reorder Opportunity Statuses within a Pipeline. * Move an Opportunity Status from a different Pipeline into this one. * To do so, include `{"id": "id_of_the_status_from_another_pipeline"}` in the `statuses` list.

Authentication

Connected account required

Tags

pipelines
Update a playbookCLOSE_PUT_PLAYBOOK_IDUpdate an existing playbook.

Update an existing playbook.

Authentication

Connected account required

Tags

playbooks
Update existing roleCLOSE_PUT_ROLE_IDUpdate existing role

Update existing role

Authentication

Connected account required

Tags

roles
Update a Smart ViewCLOSE_PUT_SAVED_SEARCH_IDUpdate a Smart View

Update a Smart View

Authentication

Connected account required

Tags

smart_views
Update a User Scheduling LinkCLOSE_PUT_SCHEDULING_LINK_IDUpdate a User Scheduling Link

Update a User Scheduling Link

Authentication

Connected account required

Tags

scheduling_links
Update a SequenceCLOSE_PUT_SEQUENCE_ID**Note**: If you include `steps` in the payload and exclude some of the existing steps in your sequence, it will remove those steps from the sequence entirely.

**Note**: If you include `steps` in the payload and exclude some of the existing steps in your sequence, it will remove those steps from the sequence entirely.

Authentication

Connected account required

Tags

sequences
Update an SMS templateCLOSE_PUT_SMS_TEMPLATE_IDUpdate an SMS template

Update an SMS template

Authentication

Connected account required

Tags

sms_templates
Rename a lead statusCLOSE_PUT_STATUS_LEAD_IDUpdate a lead status. The `label` and `color` can be changed. To update the status of a particular lead, see PUT `/lead/{lead_id}/`.

Update a lead status. The `label` and `color` can be changed. To update the status of a particular lead, see PUT `/lead/{lead_id}/`.

Authentication

Connected account required

Tags

lead_statuses
Rename an opportunity statusCLOSE_PUT_STATUS_OPPORTUNITY_IDRename an opportunity status

Rename an opportunity status

Authentication

Connected account required

Tags

opportunity_statuses
Update a taskCLOSE_PUT_TASK_IDThe `assigned_to`, `date` (either a date or a date-time), and `is_complete` fields may be updated on all tasks. If the task type is `lead`, the `text` field may also be modified.

The `assigned_to`, `date` (either a date or a date-time), and `is_complete` fields may be updated on all tasks. If the task type is `lead`, the `text` field may also be modified.

Authentication

Connected account required

Tags

tasks
Update existing Webhook subscriptionCLOSE_PUT_WEBHOOK_IDUpdate existing Webhook subscription

Update existing Webhook subscription

Authentication

Connected account required

Tags

webhooks
Remove a User from a GroupCLOSE_REMOVE_MEMBERIf the user is not a member of the group, nothing changes.

If the user is not a member of the group, nothing changes.

Authentication

Connected account required

Tags

groups
Render an email templateCLOSE_RENDERRender an email template for the given lead/contact using the current user context. Accepts two forms of usage: - Single lead/contact: - `lead_id` and `contact_id` is supplied (both required) - Preview results from a search query - `query` (required) contains a search query - `entry` (optional, ranges from 0 to 99) specifies the index of the lead/contact that should be rendered. - `mode` (optional), which can have a value of: - `lead` (default), the first contact of the lead with the index given by `entry` will be rendered (excluding leads that have no email addresses). - `contact`, then `entry` refers to the index of the contact (excluding contacts that have no emails). Will return an empty dict if there are no more entries.

Render an email template for the given lead/contact using the current user context. Accepts two forms of usage: - Single lead/contact: - `lead_id` and `contact_id` is supplied (both required) - Preview results from a search query - `query` (required) contains a search query - `entry` (optional, ranges from 0 to 99) specifies the index of the lead/contact that should be rendered. - `mode` (optional), which can have a value of: - `lead` (default), the first contact of the lead with the index given by `entry` will be rendered (excluding leads that have no email addresses). - `contact`, then `entry` refers to the index of the contact (excluding contacts that have no emails). Will return an empty dict if there are no more entries.

Authentication

Connected account required

Tags

email_templates
Unarchive a playbookCLOSE_UNARCHIVERestore a previously archived playbook to active status.

Restore a previously archived playbook to active status.

Authentication

Connected account required

Tags

playbooks
Update an existing leadCLOSE_UPDATESupports non-destructive patches. Nested `contacts` cannot be updated through this endpoint -- use the Contacts API instead. **status**: See `status` and `status_id` guidance on the create endpoint. **custom.FIELD_ID** (optional): See `custom.FIELD_ID` guidance on the create endpoint. You can also unset a single field, e.g.: ```json { "custom.cf_v6S011I6MqcbVvB2FA5Nk8dr5MkL8sWuCiG8cUleO9c": null } ``` If the custom field accepts multiple values, you can specify `.add` or `.remove` as part of the field key to add/remove a single value to/from a list of values, e.g.: ```json { "custom.cf_v6S011I6MqcbVvB2FA5Nk8dr5MkL8sWuCiG8cUleO9c.add": "Wednesday" } ``` adds "Wednesday" to the list of values which already exist on the given lead.

Supports non-destructive patches. Nested `contacts` cannot be updated through this endpoint -- use the Contacts API instead. **status**: See `status` and `status_id` guidance on the create endpoint. **custom.FIELD_ID** (optional): See `custom.FIELD_ID` guidance on the create endpoint. You can also unset a single field, e.g.: ```json { "custom.cf_v6S011I6MqcbVvB2FA5Nk8dr5MkL8sWuCiG8cUleO9c": null } ``` If the custom field accepts multiple values, you can specify `.add` or `.remove` as part of the field key to add/remove a single value to/from a list of values, e.g.: ```json { "custom.cf_v6S011I6MqcbVvB2FA5Nk8dr5MkL8sWuCiG8cUleO9c.add": "Wednesday" } ``` adds "Wednesday" to the list of values which already exist on the given lead.

Authentication

Connected account required

Tags

leads
Update an existing Shared Custom Field AssociationCLOSE_UPDATE_ASSOCIATIONYou can change the `required` or the `editable_with_roles` attributes. Everything else cannot be changed. The `object_type` in the URL can be either: - `lead` when editing the association with the Lead object. - `contact` when editing the association with the Contact object. - `opportunity` when editing the association with the Opportunity object. - `custom_activity_type/<catype_id>` when editing the association with a specific Custom Activity Type. - `custom_object_type/<cotype_id>` when editing the association with a specific Custom Object Type.

You can change the `required` or the `editable_with_roles` attributes. Everything else cannot be changed. The `object_type` in the URL can be either: - `lead` when editing the association with the Lead object. - `contact` when editing the association with the Contact object. - `opportunity` when editing the association with the Opportunity object. - `custom_activity_type/<catype_id>` when editing the association with a specific Custom Activity Type. - `custom_object_type/<cotype_id>` when editing the association with a specific Custom Object Type.

Authentication

Connected account required

Tags

custom_fields.shared
Update pinned views for a membershipCLOSE_UPDATE_PINNED_VIEWSSet the pinned views for the given membership. Provide an ordered list that will overwrite the entire current list.

Set the pinned views for the given membership. Provide an ordered list that will overwrite the entire current list.

Authentication

Connected account required

Tags

memberships
Update Blocked Phone Number settingsCLOSE_UPDATE_SETTINGSUpdate Blocked Phone Number settings

Update Blocked Phone Number settings

Authentication

Connected account required

Tags

blocked_phone_numbers
Update a Shared Scheduling LinkCLOSE_UPDATE_SHAREDUpdate a Shared Scheduling Link

Update a Shared Scheduling Link

Authentication

Connected account required

Tags

scheduling_links
Update a specific SubscriptionCLOSE_UPDATE_SUBSCRIPTIONUpdate a specific Subscription

Update a specific Subscription

Authentication

Connected account required

Tags

sequences

Provider resources