How do I use the Cloze API?
Audience: Cloze Administrator · Plan: All Paid Plans
The Cloze API lets you connect Cloze to other software. You can pull contacts, companies, and deals into another system, push new records or to-dos back into Cloze, run reports, or get notified the moment something changes. If you're not the one writing the code, this page is the one to hand to your developer. The rest of it is written for them.
To use the Cloze API, generate an API key in the app, then send requests to https://api.cloze.com/v1/ . The full endpoint reference lives at developer.cloze.com.
Get your API key
Your key is in Cloze under Settings → Accounts and Services → API Access. For the full steps and screenshots, see Where can I find my Cloze API key?
Authenticate
Pass your key one of two ways:
- As a query parameter:
GET https://api.cloze.com/v1/user/profile?api_key=YOUR_KEY - As a bearer token: send
Authorization: Bearer YOUR_KEYin the request header.
To confirm the key works and see which account it's tied to, call GET /v1/user/profile . It returns the account email, name, and the access scopes the key was granted.
What the API covers
The reference groups endpoints by what they act on:
- People, companies, and projects. Read, search, and create records. Get a single record by a unique identifier (email address, sync key, or portable ID), or list many with filtering, sorting, and paging.
- Timelines. Retrieve the messages on a person's or project's timeline.
- Messages. Get the full body of a single message for display.
- To-dos. Create a to-do, with a due date, participants, and an assignee.
- Analytics. Query user activity, team activity, lead qualification, and pipeline data for a reporting period.
- Account setup. Retrieve custom fields, tags, views and audiences, contact and project segments, stages, and steps. Use these to map your own labels to Cloze's internal keys.
- Recipient lists. Get the tags, audiences, and subscriptions you can send a mail merge to.
- Webhooks. Subscribe to change events for people, companies, and projects, list your subscriptions, and cancel them. Filters let you constrain what Cloze delivers so you only get the changes you asked for.
Note: This page summarizes what the API offers. For exact parameters and response formats, see the reference at developer.cloze.com, which is kept current as the API changes.
Build a public integration
A public integration is one meant to be used by Cloze users outside your own organization. To publish one, you must authenticate with Cloze user accounts using OAuth 2.0. You can do your initial development and testing with an API key, then switch to OAuth before you publish.
To get started building and publishing an OAuth-enabled integration, contact support@cloze.com.