Retrieve contacts by date
POST
/v3/contacts/query
const url = 'https://api-crm-staging.divinea.com/api/v3/contacts/query';const options = { method: 'POST', headers: {APIKey: '<APIKey>', 'Content-Type': 'application/json'}, body: '{"dateFrom":"2026-04-15T12:00:00Z","dateTo":"2026-04-15T12:00:00Z"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api-crm-staging.divinea.com/api/v3/contacts/query \ --header 'APIKey: <APIKey>' \ --header 'Content-Type: application/json' \ --data '{ "dateFrom": "2026-04-15T12:00:00Z", "dateTo": "2026-04-15T12:00:00Z" }'Authorizations
Sezione intitolata “Authorizations”Request Body
Sezione intitolata “Request Body”RequestParam
Media typeapplication/json
Param
object
dateFrom
string format: date-time
dateTo
string format: date-time
Examplegenerated
{ "dateFrom": "2026-04-15T12:00:00Z", "dateTo": "2026-04-15T12:00:00Z"}Responses
Sezione intitolata “Responses”OK
Media type*/*
Array<object>
ContactExportDTOV3Export version for responses
object
acceptedMarketing
boolean
acceptedPrivacyTerms
boolean
acceptedProfiling
boolean
addresses
Array<object>
AddressExportDTOobject
address
string
city
string
countryISO
string
province
string
zipcode
string
cap
string
city
string
contactValue
number format: double
country
string
countryISO
string
dateOfBirth
string format: date
emails
Array<object>
EmailEmail object for a contact
object
email
Email address
string
Example
john.doe@gmail.commaster
boolean
type
Type of email
string
Example
masterfirstName
string
id
integer format: int64
languageISO
string
lastName
string
manualMarketing
boolean
phoneNumbers
Array<object>
PhonePhone object for a contact
object
phone
Phone number
string
Example
+1234567890type
Type of phone
string
Example
masterprovince
string
unsubscribed
boolean
wineryId
string