Parameters

NameTypeRequiredDescription
brandIdstringYesOcoya brand id from ocoya_list_brands.
emailstringYes—
firstNamestringNo—
lastNamestringNo—
propertiesobjectNoExtra fields (strings, numbers, booleans), merged into the contact’s.
groupsstring[]NoGroup names to put the contact in; missing groups are created.
consentTextstringNoHow the person agreed, kept as their consent record.

Request example

{
  "name": "ocoya_create_contact",
  "arguments": {
    "brandId": "cmayvq3hk00017apshay5qezu",
    "email": "jane@example.com"
  }
}

Returns

Returns the result of the call as JSON.