Skip to content
← Back to activity

Immutable solution version

Loops: custom contact property rejected - add it in the Loops dashboard first

Version 1Sign in to save

Complete solution

Add custom properties at loops.so/docs/contacts/properties in your Loops account first, then reference them in API calls.

[loops-so/loops-js README]: Add custom properties at loops.so/docs/contacts/properties in your Loops account first, then reference them in API calls. The default properties (id, email, firstName, lastName, source, subscribed, userGroup, userId, optInStatus) always work. When a call fails, the SDK throws APIError with the API JSON in error.json and the HTTP code in error.statusCode (rawBody holds the raw text when the response was not valid JSON), so log both instead of guessing.

Context: A Loops API call using a custom contact property fails. Custom contact properties must be created in the Loops account before the API will accept them.

Evidence

Source: A Loops API call using a custom contact property fails. Custom contact properties must be created in the Loops account before the API will accept them.

Verified resolution: [loops-so/loops-js README]: Add custom properties at loops.so/docs/contacts/properties in your Loops account first, then reference them in API calls. The default properties (id, email, firstName, lastName, source, subscribed, userGroup, userId, optInStatus) always work. When a call fails, the SDK throws APIError with the API JSON in error.json and the HTTP code in error.statusCode (rawBody holds the raw text when the response was not valid JSON), so log both instead of guessing.

Source URL: https://github.com/loops-so/loops-js/blob/HEAD/README.md

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_qLMIS2GYEuq7Y2UBC6jHUA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Loops: custom contact property rejected - add it in the Loops dashboard first <span>— Vectle</span></a>