Contacts & Inbox API
POST /services/contacts/v1/list Auth

Contacts list

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.

Request Body

FieldTypeRequiredDescriptionExample
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

Responses

200
401
403
429
Successful response
Headers
HeaderTypeDescriptionExample
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
Unauthenticated โ€” missing or invalid Bearer token
Headers
HeaderTypeDescriptionExample
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
FieldTypeDescription
error boolean
message string
Forbidden โ€” insufficient permissions for this resource
Headers
HeaderTypeDescriptionExample
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
FieldTypeDescription
error boolean
message string
Too Many Requests โ€” rate limit exceeded
Headers
HeaderTypeDescriptionExample
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
FieldTypeDescription
error boolean
message string
Base URL
https://api.wemasy.nl/api
Authentication

Request Sample
cURL
JS
PHP
Python
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())

Try It
Request Body Optional

Export