Hello,
I encountered an issue while integrating a CRM with Klaviyo. I'm utilizing the API specified at https://developers.klaviyo.com/en/reference/create_profile, and the body request is in JSON format. However, I need to submit it as Key-Value pairs.
Here's what I attempted:
dataatype]=profile
dataaattributes]]email]=sarah.mason@klaviyo-demo.com
dataaattributes]]phone_number]=+15005550006
... (remaining key-value pairs)
I'm unsure if this approach will work. When I tested it, I received the following error message:
{
"errors":
{
"id": "5f746ff4-cfca-45c7-9b1b-d7c884119e98",
"status": 404,
"code": "not_found",
"title": "Not found.",
"detail": "No revisions found for method",
"source": {
"pointer": "/data/"
}
}
]
}
Can anyone guide me on the correct format for submitting a Key-Value pair request to Klaviyo's API?
Thank you!