Your API key. Create one in Ocoya. Authorization: Bearer <key> works too.
Import contacts
Adds or fills in up to 5000 contacts. New addresses are added as subscribed; known ones only get their empty names filled in, never resubscribed. Workflows for new contacts start only with runWorkflows.
Import contacts
curl --request POST \
--url https://www.app.ocoya.com/api/_public/v1/contacts/import \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"contacts": [
{
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"properties": {}
}
],
"groups": [
"<string>"
],
"consentConfirmed": true,
"consentText": "<string>",
"runWorkflows": true
}
'{
"created": 123,
"updated": 123,
"unchanged": 123,
"invalid": 123
}Authorizations
Body
application/json
Was this page helpful?