internal

Respond Marketing Consent

Record the user's answer to the one-time newsletter consent prompt.

Setting prompted_at on both accept and decline ensures the prompt is shown at most once. Accepting enqueues a real-time Brevo sync.

post/auth/marketing-consent

Request

  • Base URL: https://api.companydata.dk (the document declares no server; this is the origin it was published from)
  • URL: https://api.companydata.dk/auth/marketing-consent
  • Auth: HTTP bearer

Request body

consentboolean required

Response

Successful Response

emailstring email required
namestring nullable
companystring nullable
localestring
email_verifiedboolean
is_adminboolean
auth_providerstring
has_passwordboolean
created_atstring date-time required
marketing_consentboolean
needs_marketing_consent_promptboolean
first_action_atstring date-time nullable
last_login_atstring date-time nullable
login_countinteger

Changes

No recorded changes to this operation across all 2 revisions of this API.