Skip to main content

At a glance

Credentials

Set these per environment. See Connect an integration.
VariableRequiredDescription
CLOSE_API_KEYYesClose API key (used as the HTTP Basic username) Docs.
CLOSE_API_PASSWORDNoHTTP Basic password for Close - always leave this set to an empty string; Close authenticates with the API key as username and a blank password Docs.

Setup

  1. Create a Close account: Sign up at https://www.close.com/ - a 14-day free trial works for testing the API.
  2. Create an API key: In Close, go to Settings → Developer → API Keys (https://app.close.com/settings/developer/api-keys/) and create a new API key. Keys are scoped to your organization and inherit your user’s permissions.
  3. Set environment variables: Add CLOSE_API_KEY to your .env. Set CLOSE_API_PASSWORD to an empty string (or leave it unset) - Close uses HTTP Basic auth with the API key as the username and a blank password.
  4. Verify access: Run the List Leads tool with no query.
  • Close recommends API keys (HTTP Basic, key as username, empty password) for server-side integrations; OAuth is reserved for user-facing public apps
  • Lead, opportunity, and contact endpoints use trailing slashes (e.g. /api/v1/lead/)
  • Monetary values like opportunity value are expressed in cents
Provider API reference: https://developer.close.com/

Tools

ToolAccessDescription
List LeadsReadList or search leads in Close using the lead query language
Get LeadReadGet full details of a Close lead, including contacts and opportunities
Create LeadWriteCreate a new lead in Close, optionally with contacts
Update LeadWriteUpdate fields on an existing Close lead
List OpportunitiesReadList opportunities, optionally filtered by lead
Create OpportunityWriteCreate an opportunity on a Close lead
List ContactsReadList contacts, optionally filtered by lead

Example prompts

  • List my open opportunities in Close with their values and confidence, grouped by status.
  • Create a new lead in Close with a company name, website, and a primary contact.