API v3 Creating contact invalid email address
Currently developing a system using the V3 api.
I have a test client connected via OAuth.
When I post to the 'contacts' end point in order to create a contact I get the following errors returned (php).
Â
array:3 [â–¼ 0 => array:2 [â–¼ "error_key" => "contacts.api.validation.error" "error_message" => "create_source is missing, create_source does not have a valid value" ] 1 => array:2 [â–¼ "error_key" => "contacts.api.validation.error" "error_message" => "email_address is invalid" ] 2 => array:2 [â–¼ "error_key" => "contacts.api.validation.error" "error_message" => "email_address[address] is missing, email_address[address] is invalid" ]
It does not matter what email I pass they are all invalid. If I do not pass the email I get an email is missing error. If I pass the email I get it is invalid. The value is being passed as
{"email_address":"[email protected]"}
Why is this happening? How am I supposed to create a contact?