Documentation ›
Contacts › Contact list
GET
Contact list
GEThttps://app.sendapp.ai/api/contacts
Retrieve the paginated list of your contacts, with search and tag filters. Also useful for finding the IDs to use when deleting. Authentication can be passed via the
X-API-Key header or via the apikey field. Parameters
apikey
required
La tua API Key (anche header
X-API-Key).
page
optional
Page number (default 1).
per_page
optional
Items per page (default 100, max 1000).
search
optional
Search by name, phone or email (LIKE).
tag
optional
Exact tag match.
with_phone
optional
Only contacts with a phone number.
with_email
optional
Only contacts with an email.
Request
curl 'https://app.sendapp.ai/api/contacts?page=1&per_page=50&search=mario' \
-H 'X-API-Key: YOUR_API_KEY'<?php
$ch = curl_init('https://app.sendapp.ai/api/contacts?page=1&per_page=50&search=mario');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-Key: YOUR_API_KEY'],
]);
echo curl_exec($ch);
curl_close($ch);const params = new URLSearchParams({ page: 1, per_page: 50, search: 'mario' });
const res = await fetch('https://app.sendapp.ai/api/contacts?' + params, {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
console.log(await res.json());Response (200 OK)
{
"status": "success",
"pagination": {
"total": 128,
"per_page": 50,
"current_page": 1,
"last_page": 3
},
"contacts": [
{
"id": 4021,
"name": "Mario Rossi",
"phone": "391234567890",
"email": "mario.rossi@example.com",
"tags": [
"vip",
"newsletter"
],
"metadata": {
"import_source": "csv"
},
"created_at": "2026-07-13 10:00:00",
"updated_at": "2026-07-13 10:00:00"
}
]
}Error
{
"status": "error",
"message": "Invalid API key."
}