User

Update Marketing Consent

Idempotent: sending the state the user is already in re-records the source/timestamp and re-runs the Kit sync, which is itself idempotent.

put/api/v1/user/marketing-consent

Request

  • Base URL: https://www.endlesstravelplans.com
  • URL: https://www.endlesstravelplans.com/api/v1/user/marketing-consent
  • Auth: HTTP bearer

Request body

marketing_consentboolean required

true to opt in, false to withdraw.

timezonestring nullable

IANA timezone, used to record the consent region.

sourcestring nullable

Where in the app the choice was made (settings, results_prompt).

Example request

{
  "marketing_consent": true,
  "timezone": "Europe/London",
  "source": "settings"
}

Response

marketing_consentboolean
sourcestring
regionstring
consent_atstring
declined_atstring nullable

Example response

{
  "marketing_consent": true,
  "source": "api:settings",
  "region": "non_us",
  "consent_at": "2026-09-02T10:00:00+00:00",
  "declined_at": null
}

Changes

No recorded changes to this operation across all 1 revision of this API.