/services/contacts/v1/list
Auth
Every person who contacted or bought from the business, newest activity first: form leads, bookings, waitlist, orders and quotes, shop accounts, newsletter contacts and helpdesk tickets, matched by email, then phone. Only the sources the project's package includes and this member may open.
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
search |
string|null
max: 191 |
No | ||
source |
string|null
forms, tickets, bookings, waitlist, orders, customers, newsletter, |
No | ||
status |
string|null
open, customer, lead, subscriber, |
No | ||
tag |
string|null
max: 40 |
No | ||
period |
string|null
today, 7d, 30d, 90d, all, |
No | ||
since |
string|null (date) | No | ||
page |
integer|null
min: 1 |
No | ||
per_page |
integer|null
min: 1 max: 100 |
No |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
Retry-After |
integer | Seconds until the rate limit resets | 60 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
curl -X POST "https://api.wemasy.nl/api/services/contacts/v1/list" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"search": "string",
"source": "string",
"status": "string",
"tag": "string",
"period": "string",
"since": "string",
"page": "string",
"per_page": "string"
}'
fetch('https://api.wemasy.nl/api/services/contacts/v1/list', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"search": "string",
"source": "string",
"status": "string",
"tag": "string",
"period": "string",
"since": "string",
"page": "string",
"per_page": "string"
})})
.then(r => r.json())
.then(data => console.log(data));
$response = Http::withToken('YOUR_API_TOKEN')
->accept('application/json')
->post('https://api.wemasy.nl/api/services/contacts/v1/list', {
"search": "string",
"source": "string",
"status": "string",
"tag": "string",
"period": "string",
"since": "string",
"page": "string",
"per_page": "string"
});
$data = $response->json();
import requests
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json"
}
data = {
"search": "string",
"source": "string",
"status": "string",
"tag": "string",
"period": "string",
"since": "string",
"page": "string",
"per_page": "string"
}
r = requests.post("https://api.wemasy.nl/api/services/contacts/v1/list", headers=headers, json=data)
print(r.json())