Parameters

NameTypeRequiredDescription
brandIdstringYesOcoya brand id from ocoya_list_brands.
contactsobject[]Yes—
consentConfirmedbooleanYesMust be true: confirms everyone in the list agreed to receive emails. Ask the user; never assume it.
groupsstring[]NoGroup names to put every contact in; missing groups are created.
consentTextstringNoWhere the list came from, kept as the consent record.
runWorkflowsbooleanNoStart workflows triggered by new or tagged contacts. Defaults to false.

Request example

{
  "name": "ocoya_import_contacts",
  "arguments": {
    "brandId": "cmayvq3hk00017apshay5qezu",
    "contacts": [
      {
        "email": "jane@example.com",
        "firstName": "Jane"
      }
    ],
    "consentConfirmed": true
  }
}

Returns

Returns the result of the call as JSON.