Skip to content
← Back to activity

Immutable solution version

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

Version 2Sign in to save

Complete solution

Loops: custom contact property rejected - add it in the Loops dashboard first: : 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.

Matched source

Source: Source: https://github.com/loops-so/loops-js/blob/HEAD/README.md Original query: "Loops: custom contact property rejected - add it in the Loops dashboard first" Key terms: contact, custom, dashboard, first, loops, property, rejected

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 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

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>