POST URL : https://a.klaviyo.com/client/subscriptions/?company_id=”companyID”
header : revision:2024-07-15
content-type:application/json
Body : {"data":{"type":"subscription","attributes":{"custom_source":"Homepage footer signup form","profile":{"data":{"type":"profile","attributes":{"email":"sarah.mason@klaviyo-demo.com","phone_number":"+15005550006","anonymous_id":"01GDDKASAP8TKDDA2GRZDSVP4H","first_name":"Sarah","last_name":"Mason","organization":"Example Corporation","title":"Regional Manager","image":"https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg","location":{"address1":"89 E 42nd St","address2":"1st floor","city":"New York","country":"United States","region":"NY","zip":"10017","timezone":"America/New_York","ip":"127.0.0.1"},"properties":{"newKey":"New Value"}},"meta":{"patch_properties":{"append":{"newKey":"New Value"},"unappend":{"newKey":"New Value"},"unset":"skus"}}}}},"relationships":{"list":{"data":{"type":"list","id":"Y6nRLr"}}}}}
when i am hitting i am getting below error
{
"errors": [
{
"id": "aa918a35-e7b2-4209-886a-f0ed1cfbd8da",
"status": 400,
"code": "invalid",
"title": "Invalid input.",
"detail": "List not found",
"source": {
"pointer": "/data/relationships/list"
},
"links": {},
"meta": {}
}
]
}
in Response can any one help me what i am doing mistake i have generate correct id API key from klaviyo portal.

