Hi All,
I am experiencing an issue with adding a custom metric via the API in my WordPress plugin. When I click the "Add Metric" button on the settings page of my plugin, I receive the following error in the browser console:
{
"headers": {},
"body": "{"errors": [{"id": "cf7e11a6-e002-41bd-a204-5117065723a5", "status": 404, "code": "not_found", "title": "Not found", "detail": "The path /api/v1/metric could not be found"}]}",
"response": {
"code": 404,
"message": "Not Found"
},
"cookies": [],
"filename": null,
"http_response": {
"data": null,
"headers": null,
"status": null
}
}
I have confirmed that the API key being used has the required permissions and that the data being passed to the klaviyo_create_metric()
function is in the correct format. I have also checked the Klaviyo API documentation and believe that the URL being used is correct:
https://a.klaviyo.com/api/v1/metric
Is there anything else I should be checking or any additional information I can provide to help resolve this issue?
Thank you for your assistance.