MarketHype, meets code
Everything you need to start using our APIs
Importing a contact is easy as 1, 2, 3
curl --request POST \
--url https://api.markethype.io/ingestion/v1/imports/contacts/ \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api key>' \
--header 'x-api-conflict-strategy: MERGE' \
--header 'x-api-source: TicketingSystem' \
--data '{
"contacts": [
{
"firstName": "John Q.",
"givenName": "John",
"lastName": "Public",
"gender": "male",
"birthDate": "1966-07-17",
"addressLine1": "Kämpegatan 6",
"zipCode": "41104",
"city": "Gothenburg",
"country": "SE",
"emails": [
"hello@markethype.io"
],
"consent": {
"subscriptionType": "auto",
"legalBasis": "freelyGiven",
"occurredAt": "2022-04-19T12:50:13.609Z",
}
}
]
}'