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

Contacts as CSV

The list with the same filters, one person per row. Only the sources 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

Responses

200
401
403
429
Successful response
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 20
X-RateLimit-Remaining integer Number of requests remaining in the current window 17
Unauthenticated โ€” missing or invalid Bearer token
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 20
X-RateLimit-Remaining integer Number of requests remaining in the current window 17
FieldTypeDescription
error boolean
message string
Forbidden โ€” insufficient permissions for this resource
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 20
X-RateLimit-Remaining integer Number of requests remaining in the current window 17
FieldTypeDescription
error boolean
message string
Too Many Requests โ€” rate limit exceeded
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 20
X-RateLimit-Remaining integer Number of requests remaining in the current window 17
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/export" \
  -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"
}'
fetch('https://api.wemasy.nl/api/services/contacts/v1/export', {
  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"
})})
.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/export', {
    "search": "string",
    "source": "string",
    "status": "string",
    "tag": "string",
    "period": "string",
    "since": "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"
}
r = requests.post("https://api.wemasy.nl/api/services/contacts/v1/export", headers=headers, json=data)
print(r.json())

Try It
Request Body Optional

Export