Access the Close API with managed authentication. Read and search leads, contacts, opportunities, activities, tasks, pipelines, and reports; create and update leads, contacts, opportunities, notes, and tasks. All access runs through the Maton gateway and the maton CLI.
Permissions
Suggested read access
In the Console, Read limits the connection to these 145 read-only endpoints, plus deny rules for any write endpoint a broader rule would otherwise match. Endpoints Maton has found to return credentials, start jobs, or spend credits are left out; a few reads that can change state or return a secret depending on their parameters stay in, and their descriptions say how. It is a suggestion: the saved rules are exactly the ones you see, and you can change them with Custom. See Access policy.
Reference
Paths start with api/v1/: https://api.close.com/api/v1/lead/ becomes /close/api/v1/lead.
Connect with maton connection create close; the Close connection guide shows where to create the API key.
Account
Get the Current User
maton api '/close/api/v1/me'Response:
{
"id": "user_aBcD1234",
"email": "you@example.com",
"first_name": "Alex",
"last_name": "Lee",
"organizations": [{"id": "orga_xYz5678", "name": "Acme"}],
"memberships": [{"id": "memb_qRs9012", "organization_id": "orga_xYz5678"}]
}GET api/v1/organization/{organization_id} returns the organization with its lead statuses, opportunity statuses, and pipelines; api/v1/user lists the organization's users.
Leads
List Leads
maton api '/close/api/v1/lead?_limit=25&_skip=0&_fields=id,display_name,status_label'Response:
{
"has_more": true,
"total_results": 412,
"data": [
{"id": "lead_aBcD1234", "display_name": "Acme", "status_label": "Potential"}
]
}_limit (up to 100) and _skip page through the list while has_more is true; _fields trims each lead to the fields named. GET api/v1/lead/{lead_id} returns one lead with its contacts, opportunities, tasks, addresses, and custom fields (custom.cf_...). To filter, use Search.
Create a Lead
maton api '/close/api/v1/lead' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{"name": "Acme", "url": "https://acme.example.com", "status_id": "stat_aBcD1234", "contacts": [{"name": "Alex Lee", "title": "CEO", "emails": [{"type": "office", "email": "alex@example.com"}], "phones": [{"type": "office", "phone": "+15550100"}]}]}
JSONReturns the new lead. status_id comes from api/v1/status/lead; without it the lead gets the organization's default status. Custom fields are set as "custom.cf_{field_id}": value, with IDs from api/v1/custom_field/lead.
Update or Delete a Lead
maton api '/close/api/v1/lead/{lead_id}' -X PUT -H 'Content-Type: application/json' --input - <<'JSON'
{"status_id": "stat_eFgH5678"}
JSON
maton api '/close/api/v1/lead/{lead_id}' -X DELETEPUT changes only the fields sent. DELETE removes the lead with everything on it and can't be undone; a just-deleted lead can still return 200 on GET for a short time.
Contacts
maton api '/close/api/v1/contact?lead_id={lead_id}'
maton api '/close/api/v1/contact' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{"lead_id": "{lead_id}", "name": "Sam Park", "title": "CTO", "emails": [{"type": "office", "email": "sam@example.com"}]}
JSONA contact belongs to one lead. PUT api/v1/contact/{contact_id} updates it (an emails or phones list replaces the whole list), and DELETE removes it.
Opportunities
maton api '/close/api/v1/opportunity?status_type=active&_limit=25'
maton api '/close/api/v1/opportunity' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{"lead_id": "{lead_id}", "status_id": "stat_iJkL9012", "value": 500000, "value_period": "one_time", "confidence": 50, "note": "Annual license"}
JSONvalue is in cents (500000 is 5,000.00 in the organization's currency); value_period is one_time, monthly, or annual. Filter the list by lead_id, user_id, status_id, status_type (active, won, lost), or date_won__gte/__lte. Opportunity statuses and the pipelines they belong to come from api/v1/status/opportunity and api/v1/pipeline. PUT and DELETE api/v1/opportunity/{opportunity_id} update and delete one.
Activities
List Activities
maton api '/close/api/v1/activity?lead_id={lead_id}&_limit=25'
maton api '/close/api/v1/activity/email?lead_id={lead_id}'api/v1/activity lists every type on the lead's timeline, newest first; each type has its own path: note, call, email, emailthread, sms, meeting, whatsapp_message, status_change/lead, status_change/opportunity, task_completed, custom, and more. Filter by lead_id, user_id, contact_id, or date_created__gte/__lte.
Add a Note
maton api '/close/api/v1/activity/note' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{"lead_id": "{lead_id}", "note": "Spoke with Alex; follow up after the board meeting."}
JSONnote_html takes rich text instead. POST api/v1/activity/call logs a call made outside Close. POST api/v1/activity/email with "status": "draft" saves a draft; "outbox" sends it from the user's connected mailbox.
Tasks
maton api '/close/api/v1/task?is_complete=false&_limit=25'
maton api '/close/api/v1/task' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{"lead_id": "{lead_id}", "text": "Send the proposal", "date": "2026-12-10", "assigned_to": "{user_id}"}
JSONFilter tasks by lead_id, assigned_to, is_complete, or view (inbox, future, archive). PUT api/v1/task/{task_id} with {"is_complete": true} completes one; DELETE removes it.
Search
maton api '/close/api/v1/data/search' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{"query": {"type": "and", "queries": [{"type": "object_type", "object_type": "lead"}, {"type": "text", "value": "acme"}]}, "_fields": {"lead": ["id", "display_name"]}, "_limit": 25}
JSONA read despite the POST. It returns data and a cursor; pass the cursor back as "cursor" for the next page until it is null. object_type is lead, contact, or opportunity, and queries combine field conditions, text, and related objects (the query Close builds for a Smart View is the easiest starting point). Saved Smart Views are under api/v1/saved_search, not smart_view.
Sequences, Templates, and Reporting
- Sequences:
GET api/v1/sequencelists sequences andGET api/v1/sequence_subscription?lead_id={lead_id}who is enrolled.POST api/v1/sequence_subscription(sequence_id,contact_id,contact_email,sender_account_id,sender_name,sender_email) enrolls a contact and starts emailing them. - Templates:
GET api/v1/email_templateandapi/v1/sms_template;GET api/v1/email_template/{template_id}/render?lead_id={lead_id}fills a template for a lead without sending it. - Reporting:
POST api/v1/report/activity(activity metrics for users over a date range; metric names fromGET api/v1/report/activity/metrics),POST api/v1/report/funnel/opportunity/stagesand.../totals, andGET api/v1/report/statuses/lead/{organization_id}and.../opportunity/{organization_id}. ThePOSTreports are reads. - Webhooks:
GET api/v1/webhook;POST api/v1/webhook(url,events) sends matching events to the URL. - Also: custom fields and custom objects, comments, connected accounts, phone numbers, dialer sessions, forms, scheduling links, exports, bulk actions, events (
api/v1/event), and unsubscribed emails.
Notes
- Authentication: the connection holds a Close API key (starting with
api_), sent as HTTP Basic auth with the key as the username. A key belongs to one organization and acts as the user who created it. With a read-only key, writes return403"API key does not have the required scope". - Trailing slashes: every Close path ends in a slash; the gateway adds it, so paths work with or without one.
- IDs are strings with a type prefix:
lead_,cont_,oppo_,acti_,task_,user_,orga_,stat_,pipe_. - Connection metadata:
user_id,email,first_name, andlast_name, plusorganization_idandorganization_namewhen the user belongs to exactly one organization. - Errors:
400validation ({"errors": [], "field-errors": {"name": "..."}}),401a wrong or deleted key,403"API key does not have the required scope" a write with a read-only key,404not found,429rate limited. - Pagination:
_limitand_skipon list endpoints, withhas_more; search usescursor. Deep_skipvalues are slow: use search with a cursor for large exports. - Rate limits apply per organization and endpoint group; a
429carries aRateLimitheader with the seconds until reset (reset=...): wait that long before retrying. - Dates are ISO 8601; money values are integers in cents.