Contacts
List contacts
Lists the calling user’s own contacts in a lightweight form, sorted by first name, with the names of the groups each contact belongs to. Not paginated: every contact the user owns is returned in one array. Requires a company admin or rep token tied to a user; admin users need permission to view contacts.
GET
/
api
/
v3
/
contacts
List contacts
curl --request GET \
--url https://api.fluid.app/api/v3/contacts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/v3/contacts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fluid.app/api/v3/contacts', 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://api.fluid.app/api/v3/contacts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.fluid.app/api/v3/contacts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fluid.app/api/v3/contacts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v3/contacts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": 48213,
"token": "pX7kQ2mR9vTzL4nB8cWfJ3hY",
"first_name": "Holly",
"last_name": "Flax",
"avatar_url": null,
"status": "new",
"email": "holly.flax@gmail.com",
"email2": null,
"phone": "+15705550142",
"phone2": null,
"phone_id": null,
"discarded_at": null,
"groups": [
"Scranton customers"
]
},
{
"id": 48219,
"token": "Vb3nH8qT2wKz9LmR5cXjP7fD",
"first_name": "Jan",
"last_name": "Levinson",
"avatar_url": "https://cdn.fluid.app/dunder-mifflin/avatars/jan-levinson.jpg",
"status": "customer",
"email": "jan@serenitybycandles.com",
"email2": null,
"phone": "+15705550188",
"phone2": null,
"phone_id": null,
"discarded_at": null,
"groups": [
"Scranton customers",
"Wholesale"
]
}
]{
"message": "<string>"
}Response
Success
⌘I
List contacts
curl --request GET \
--url https://api.fluid.app/api/v3/contacts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/v3/contacts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fluid.app/api/v3/contacts', 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://api.fluid.app/api/v3/contacts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.fluid.app/api/v3/contacts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fluid.app/api/v3/contacts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v3/contacts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": 48213,
"token": "pX7kQ2mR9vTzL4nB8cWfJ3hY",
"first_name": "Holly",
"last_name": "Flax",
"avatar_url": null,
"status": "new",
"email": "holly.flax@gmail.com",
"email2": null,
"phone": "+15705550142",
"phone2": null,
"phone_id": null,
"discarded_at": null,
"groups": [
"Scranton customers"
]
},
{
"id": 48219,
"token": "Vb3nH8qT2wKz9LmR5cXjP7fD",
"first_name": "Jan",
"last_name": "Levinson",
"avatar_url": "https://cdn.fluid.app/dunder-mifflin/avatars/jan-levinson.jpg",
"status": "customer",
"email": "jan@serenitybycandles.com",
"email2": null,
"phone": "+15705550188",
"phone2": null,
"phone_id": null,
"discarded_at": null,
"groups": [
"Scranton customers",
"Wholesale"
]
}
]{
"message": "<string>"
}