Getting Started
This guide walks you through making your first API call to the ContactLevel API.
Prerequisites
- A ContactLevel account with an active organization
- An API key (see Authentication)
Base URL
All API requests use the following base URL:
Code
Step 1: Verify Your API Key
Start by checking your organization ID to confirm your key is working:
Code
A successful response looks like:
Code
Step 2: Search Your Contacts
Search for contacts in your organization using filters:
Code
Response:
Code
You can narrow results with filters like first_name, last_name, company_name, job_title, city, state_region, country, and more.
Step 3: Create an Audience
Audiences are named groups of contacts that you can sync to ad platforms:
Code
Response:
Code
Step 4: Add a Contact to an Audience
Code
Pagination
All search endpoints support pagination with two parameters:
| Parameter | Default | Range | Description |
|---|---|---|---|
page | 1 | 1+ | The page number (1-indexed). |
page_size | 25 | 1–100 | Number of results per page. |
Example — fetch page 3 with 10 results per page:
Code
The response always includes total, page, and page_size so you can calculate total pages.
Error Handling
The API uses standard HTTP status codes. Error responses include a detail field:
Code
| Status | Meaning |
|---|---|
| 400 | Bad request — check your parameters. |
| 401 | Unauthorized — your API key is missing or invalid. |
| 402 | Insufficient credits — top up your balance. |
| 404 | Not found — the resource doesn't exist. |
| 422 | Validation error — the request body doesn't match the expected schema. |
Available Resources
| Resource | Endpoints | Description |
|---|---|---|
| Audiences | GET, POST, Search | Create and manage audience groups. |
| Contacts | GET, Search | Look up individual contacts or search by filters. |
| Companies | GET, Search | Look up companies or search by domain, industry, size. |
| Website Visits | GET, Search | View visits tracked by the ContactLevel pixel. |
| Organization | GET | Check your org ID and credit balance. |
Next Steps
- Browse the API Reference to see all endpoints with request/response examples.
- Review the Authentication guide for security best practices.
- Check your credit balance with the Get Credit Balance endpoint.