A .NET Core API client for Close, supporting .NET Core 6/7/8. This is not an official project by Close. It's created and maintained by Telzio, because the API client mentioned in Close' docs hasn't been updated in 7+ years.
The client currently targets .NET Core 6+.
Add the client to your service collection and specify your API Key.
builder.Services.AddCloseClient("xxxxxxxxxxxx");
Important: You should never keep your credentials in your source code. Use a secrets manager instead!
You can specify custom fields for leads, contacts, opportunities, and custom objects by creating your own classes that inherit from these main classes and decorating your properties with [JsonPropertyName("custom.cf_XXXXXXXXXX")]
. The client will automatically serialize and deserialize the custom fields for you.
public class AccountCustomObject : CustomObject
{
[JsonPropertyName("custom.cf_XXXXXXXXXXXXXXXXXXX")]
public string AccountId { get; set; }
[JsonPropertyName("custom.cf_YYYYYYYYYYYYYYYYYYY")]
public string AccountStatus { get; set; }
}
We are currently working on migrating code from a client library we made internally at Telzio. Below is a list of what's currently implemented and what's in progress.
- List leads
- Create a new lead
- Retrieve a single lead
- Update an existing lead
- Delete a lead
- Merge two leads
- List contacts
- Create a new contact
- Retrieve a single contact
- Update an existing contact
- Delete a contact
- List or filter pipelines
- Create a pipeline
- Retrieve a pipeline
- Update a pipeline
- Delete a pipeline
- List or filter opportunities
- Create an opportunity
- Retrieve an opportunity
- Update an existing opportunity
- Delete an opportunity
- List custom object instances
- Create a custom object instance
- Retrieve a custom object instance
- Update a custom object instance
- Delete a custom object instance
- List or filter tasks
- Create a task
- Retrieve a task
- Update an existing task
- Delete a task
- List lead statuses for your organization
- Create new status that can be applied to leads
- Rename a lead status
- Delete a lead status
- List opportunity statuses for your organization
- Create new status tht can be applied to opportunities
- Rename an opportunity status
- Delete an opportunity status
- List integration links
- Create an integration link
- Update an integration link
- Delete an integration link
- List Events
- Retrieve Event
- Groups
- Reporting
- Email Templates
- SMS Templates
- Connected Accounts
- Memberships
- Users
- Organizations
- Roles
- Custom Fields
- Send As
- Sequences
- Dialer
- Smart Views
- Bulk Actions
- Integration Links
- Exports
- Phone Numbers
- Webhook Subscriptions
- Custom Activities