How-To

Klaviyo /client/subscriptions 500 "A server error occurred" fix

A 500 "A server error occurred." from Klaviyo's /client/subscriptions endpoint is a Klaviyo-side error, so retry with backoff. If the profile still shows Never subscribed afterward, check whether the list uses double opt-in, make sure the request includes the list ID, and confirm a phone number is present for SMS consent.

Sohail HussainSohail Hussain8 min read

Short answer

  • A 500 from Klaviyo's /client/subscriptions endpoint means the failure happened on Klaviyo's side, so retry with backoff and include the list ID in the request.
  • If the call succeeds but the profile still shows Never subscribed, the list is probably double opt-in and the person has not confirmed, or you asked for SMS consent without a phone number.

You called Klaviyo's client subscription endpoint and the response was this:

"status":500,"code":"error","title":"A server error occurred.","detail":"A server error occurred.","source":{"pointer":"/data/"}

Maybe the profile now shows Never subscribed and you cannot tell whether the call did anything. This article covers both: the 500 itself, and the status that stays empty.

Why the 500 happens

A 500 is a generic server failure. Validation problems such as a missing field, a malformed email or an unknown list ID normally come back as 4xx responses, often with a source.pointer aimed at the offending attribute. Here the pointer is only /data/, the top of the payload, so the body gives you no field to fix.

The causes, most common first:

  1. A temporary Klaviyo-side failure. People on Klaviyo's developer community forum report that a reply from Klaviyo described 500s as Klaviyo-side and worth retrying. Retrying is the right first move.
  2. A request shape that Klaviyo handles badly. The same report points at including the list ID in the request. A payload without the list relationship is a plausible trigger, though Klaviyo has not published an exact root cause as far as I know.
  3. An edge case in the payload. A malformed body should return a 4xx, but a 500 can still come from an input Klaviyo does not handle cleanly. I cannot say which field it would be, so you find it by elimination.

The order is: retry, simplify the request and add the list ID, then escalate to support.

Step-by-step fixes

Fix 1: retry with backoff

  1. Retry the identical request after a few seconds.
  2. If it fails again, wait longer each time (for example 2, 4, 8 and 16 seconds) and add a little random jitter.
  3. Stop after about 5 attempts and queue the signup on your side to try again later.
  4. Check Klaviyo's status page for an incident before you debug your own code.

Do not retry 4xx responses automatically; those need a code change.

For a browser form, do not make the visitor wait on retries. Send the signup to your own backend or a queue, and let that retry against Klaviyo.

Fix 2: send a minimal request with the list ID

If retries keep failing, strip the call down to the shape in Klaviyo's developer documentation and add fields back one at a time. A client-side subscribe uses your public API key (the company ID) in the query string, never a private key.

curl --request POST \
  --url 'https://a.klaviyo.com/client/subscriptions/?company_id=YOUR_PUBLIC_KEY' \
  --header 'content-type: application/json' \
  --header 'revision: YOUR_CURRENT_REVISION' \
  --data '{
    "data": {
      "type": "subscription",
      "attributes": {
        "profile": {
          "data": {
            "type": "profile",
            "attributes": { "email": "jane@example.com" }
          }
        }
      },
      "relationships": {
        "list": { "data": { "type": "list", "id": "LIST_ID" } }
      }
    }
  }'

Check these points:

  1. Include the list ID in relationships.list. Do not leave the relationship out.
  2. Send a revision header with a current revision value from Klaviyo's developer documentation.
  3. Use the public key in company_id. Never put the private key in anything that runs in a browser.
  4. Expect 202, not 200. Klaviyo documents this endpoint as asynchronous, so success is 202 Accepted and the subscription is processed shortly after.

Keep private keys out of the browser

If your front end calls this endpoint, only the public company ID belongs in the URL. A private API key in client code can be copied by anyone who opens the page source.

Why the profile says Never subscribed

If the call succeeded, or succeeds on retry, but the profile still shows Never subscribed, work through these in order.

The list is double opt-in

On a double opt-in list, Klaviyo sends a confirmation email and does not mark the profile as subscribed until the person clicks it. To check, open the list in Klaviyo and look at its settings, including the consent tab. If it is double opt-in, nothing is broken. Either ask people to confirm, or switch the list to single opt-in if your consent rules allow it.

SMS consent cannot be given for a profile that has no phone number. If your payload requests SMS subscription, include phone_number in the profile attributes in E.164 format, for example +15551234567. An email-only profile cannot gain SMS consent, whatever the call returns.

You looked too early

Because processing is asynchronous, the profile can lag behind the 202. Wait a few minutes and reload before assuming failure.

The call never succeeded

If the only response you saw was the 500, the subscription may never have been created. Retry until you get a 202, then check the profile again.

Which cause do you have

What you seeLikely causeFix
500 on every attempt, any payloadKlaviyo incidentCheck the status page and wait
500 only with your full payload, fine with the minimal oneA field in your payloadAdd fields back one by one
500 without the list relationshipMissing list IDAdd the list ID
202, profile still Never subscribedDouble opt-in listConfirm the email, or change the list setting
202, SMS requested, still Never subscribedNo phone numberAdd phone_number in E.164 format
202, status changes after a few minutesNormal async processingWait and reload

Checklist before you try again

  • The request goes to /client/subscriptions/ with company_id set to your public key.
  • The revision header is present and current.
  • The body includes the list relationship with a valid list ID.
  • Any SMS request includes a phone number in E.164 format.
  • You retried with backoff and checked the status page.
  • You logged the full response body and a UTC timestamp for every failure.

Preventing it

Put signup calls behind a retry queue and log every failure with a UTC timestamp. Treat a 202 as "accepted", not as confirmed consent; only the profile's subscription status tells you that. If you run double opt-in, tell people on the thank-you page to check their inbox, so unconfirmed signups do not look like failures.

If nothing works

If a minimal request with the list ID still returns 500 after several hours of retries and the status page shows no incident, contact Klaviyo support through your account. Include:

  • the exact response body quoted above
  • the UTC timestamps of the failed calls
  • your company ID (public key) and the list ID
  • the revision header you sent
  • the request body with the email address redacted
  • what you already tried: retries, minimal payload, list ID added

Here is a message you can copy:

Subject: 500 "A server error occurred." from POST /client/subscriptions

Hi Klaviyo support,

Our calls to POST /client/subscriptions return HTTP 500 consistently.

Response body:
"status":500,"code":"error","title":"A server error occurred.","detail":"A server error occurred.","source":{"pointer":"/data/"}

Company ID (public key): {your-company-id}
List ID: {your-list-id}
Revision header: {your-revision}
Failed at (UTC): {timestamps}

We have retried with exponential backoff for {hours} hours, and a minimal
payload (email plus list ID) fails the same way. The status page shows no
incident. Request body with the email redacted is attached.

Can you check your logs for these requests?

Common questions

Is a 500 from Klaviyo my fault?

Usually not. A 500 points at the server, and Klaviyo-side replies describe these as worth retrying. If a minimal request with a list ID still fails over hours, ask support rather than rewriting your code again.

Should I retry a 400 or 422 the same way?

No. Those mean the request itself is wrong, so fix the payload instead of retrying.

The API returned 202 but the profile is not subscribed. Is that a bug?

Most often not. The usual reasons are a double opt-in list waiting for confirmation, an SMS request with no phone number, or processing that has not finished yet.

Can I subscribe people without a confirmation email?

Only if the list is set to single opt-in, and only if your consent rules and local law allow it. Check the list's consent settings in Klaviyo.

technicalklaviyoerror-codes
Share this article
Sohail Hussain

Sohail Hussain

Founder & CEO at Mailneo

Building Mailneo — AI-powered email marketing for growing businesses.

Related Articles

How-To

"Existing contact details NOT updated": CSV import fixes

"Existing contact details NOT updated" means the import matched contacts already in your list and skipped them because the update option was off. Tick the update-existing box and re-import. If the whole file failed, save it as UTF-8 CSV, delete blank rows, paste values only, and check the delimiter and email column.

Sohail Hussain|10 min read
How-To

Klaviyo Facebook error: unable to update integration settings

The Klaviyo Facebook error "We are unable to update your integration settings at this time" usually means the Facebook user who connected lacks full control of the Business page and ad account, or never accepted Facebook's terms. Fix the access, then remove and re-add the integration.

Sohail Hussain|6 min read
How-To

ActiveCampaign n8n error 301 on create contact: causes and fixes

A 301 from the ActiveCampaign node means the request went to a URL that redirects, so start with the API URL in your n8n credential. Copy it from Settings, then Developer, and check the scheme and path. Zapier 403 and cURL error 28 behind Cloudflare have different causes, covered below.

Sohail Hussain|9 min read
How-To

"Stage not on allowlist": Apollo to HubSpot sync fix

The error "Stage not on allowlist" means the contact's Apollo stage is not on the list of stages permitted to push to HubSpot. Open the HubSpot integration in Apollo, go to the Sync tab, and add that stage under "Stages for push contacts". Lifecycle stage mapping is a separate setting.

Sohail Hussain|7 min read

Ready to supercharge your email marketing?

Start sending smarter emails with AI-powered campaigns. No credit card required.

Get Started Free