Klaviyo API Help Client Subscription List

This is the documentation, but I am not apparently following how to do this.

curl --request POST \
     --url 'https://a.klaviyo.com/client/subscriptions?company_id=SUvTvQ' \
     --header 'content-type: application/vnd.api+json' \
     --header 'revision: 2024-10-15' \
     --data '
{
  "data": {
    "type": "subscription",
    "attributes": {
      "profile": {
        "data": {
          "type": "profile",
          "attributes": {
            "properties": {
              "newKey": "New Value"
            },
            "email": "leanne@jbj.co"
          },
          "meta": {
            "patch_properties": {
              "append": {
                "newKey": "New Value"
              },
              "unappend": {
                "newKey": "New Value"
              }
            }
          }
        }
      },
      "custom_source": "ringsizer"
    },
    "relationships": {
      "list": {
        "data": {
          "type": "list",
          "id": "SGzFpk"
        }
      }
    }
  }
}
'

Can I please get some help.

I tried utilizing the Klaviyo API that already exists, but that did not work either. Klaviyo Plugin | Bubble

Which error do you get? Cannyou show the whole json in API connector?

Thank you for your help! The API calls are confusing for me. I realized I needed the Revision as a header, I have added that, but still have an issue.



I will replace my Private API once I am able to get this set up.

The first thing will be to inspect your JSON. The error, according to the response, is there.
You could try to send the request to requestbin.com (or similar service) but also use tools like jsonlint to validate the JSON (the one your have in API connector, but also the response you get in requestbin.com)

You need to also validate the JSON from the API reference guide.