Forum Academy Marketplace Showcase Pricing Features

Klaviyo api trouble with api connector (works fine in postman)

Hello.
I’m having trouble running this one POST call to Klaviyo api with JSON body. All other calls without a body works fine. Also this post call works fine in postman.

POST https://a.klaviyo.com/api/v2/list/{LIST_ID}/subscribe
parameter: api_key: pk_4f9d94c6e2f07f40754fa53613yy17953e

JSON Body object
{
“profiles”: [
{
“email”: “[email protected]
}
]
}

Klaviyo docs
image

Api connector

Klaviyo documentation link: https://www.klaviyo.com/docs/api/v2/lists
Section = Subscribe to List

Hi @niklasf I’m experiencing the same issue. Did you ever solve this?

Hello! Yes, i solved it.

The API key should be directly in the url.

As so: https://a.klaviyo.com/api/v2/list/yourlistid/subscribe?api_key=pk_12938812983891284578