Get all CSV contact lists
curl --request GET \
--url https://client-api.salesfinity.co/v1/contact-lists/csv \
--header 'x-api-key: <api-key>'import requests
url = "https://client-api.salesfinity.co/v1/contact-lists/csv"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://client-api.salesfinity.co/v1/contact-lists/csv', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://client-api.salesfinity.co/v1/contact-lists/csv",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://client-api.salesfinity.co/v1/contact-lists/csv"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://client-api.salesfinity.co/v1/contact-lists/csv")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://client-api.salesfinity.co/v1/contact-lists/csv")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"_id": "<string>",
"name": "<string>",
"user": "<string>",
"total_contacts": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"total": 123,
"page": 123,
"next": 123
}
}Contact Lists
Get All Lists
Returns all CSV contact lists for the team with filtering, sorting, and pagination.
GET
/
v1
/
contact-lists
/
csv
Get all CSV contact lists
curl --request GET \
--url https://client-api.salesfinity.co/v1/contact-lists/csv \
--header 'x-api-key: <api-key>'import requests
url = "https://client-api.salesfinity.co/v1/contact-lists/csv"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://client-api.salesfinity.co/v1/contact-lists/csv', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://client-api.salesfinity.co/v1/contact-lists/csv",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://client-api.salesfinity.co/v1/contact-lists/csv"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://client-api.salesfinity.co/v1/contact-lists/csv")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://client-api.salesfinity.co/v1/contact-lists/csv")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"_id": "<string>",
"name": "<string>",
"user": "<string>",
"total_contacts": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"total": 123,
"page": 123,
"next": 123
}
}Returns all CSV contact lists for the team. This is the primary endpoint for listing your contact lists. Returns metadata only — use Get List by ID to see the contacts inside a list.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
search | string | Search lists by name (case-insensitive) |
filters[user] | string | Filter by user ID |
sort | string | Sort by field. Prefix with - for descending. Default: -createdAt. Examples: name, -updatedAt |
page | number | Page number. Default: 1 |
limit | number | Items per page. Default: 10 |
Response
Returns a paginated array of contact lists:| Field | Type | Description |
|---|---|---|
_id | string | Unique identifier of the contact list |
name | string | Name of the list |
user | string | ID of the user who owns the list |
total_contacts | number | Number of contacts in the list |
createdAt | string | Date the list was created |
updatedAt | string | Date the list was last updated |
Example Requests
# Get all lists
GET /v1/contact-lists/csv
# Search by name
GET /v1/contact-lists/csv?search=outbound
# Filter by user
GET /v1/contact-lists/csv?filters[user]=680edc0d1504192884a148e0
# Sort by name ascending
GET /v1/contact-lists/csv?sort=name
# Combine filters
GET /v1/contact-lists/csv?search=q2&filters[user]=680edc0d1504192884a148e0&sort=-createdAt&page=1&limit=20
Authorizations
Query Parameters
Search lists by name (case-insensitive)
Filter by user ID
Sort field. Prefix with - for descending. Default: -createdAt
Page number
Required range:
x >= 1Items per page
Required range:
1 <= x <= 100⌘I