consent
Get current consent for this device
Returns the stored consent snapshot for the requesting device (did header) and service (Service-Name header).
status semantics:
none: no consent stored → the client should show the consent screenoutdated: stored consent exists but its policy_version differs from thepolicy_versionquery param → the client should re-promptvalid: consent stored (and matchespolicy_versionif provided)
query Parameters
policy_versionCurrent consent-document version bundled in the client. If provided and different from the stored version, status becomes outdated.
Headers
didDevice identifier (required)
Service-NameService name (e.g. amasian, lg-channel-vietnam). Defaults to amasian.
Get current consent for this device › Responses
consentsPer-purpose consent flags, e.g. {"advertising": true, "analytics": false}.
device_idpolicy_versionVersion of the consent document the user agreed to.
policy_version_idReference to amasian_policy AmasianPolicyVersion.id (the bundle the user consented to). Stored by value across the bounded-context boundary (no DB FK). Nullable for services without a managed policy.
service_name서비스 구분자 (예: amasian, lg-channel-vietnam)
updated_atversionIncrements on each real change (no-op re-saves do not bump).
Save consent snapshot for this device
Saves the full per-purpose consent snapshot for the requesting device.
Response status semantics:
new: first consent for this device+service (HTTP 201)changed: values differ from the stored snapshot (HTTP 200)unchanged: identical to the stored snapshot — nothing written (HTTP 200)
Headers
didDevice identifier (required)
Service-NameService name (e.g. amasian, lg-channel-vietnam). Defaults to amasian.
Save consent snapshot for this device › Request Body
policy_versionpolicy_version_idamasian_policy AmasianPolicyVersion.id (from the policy read API).
Save consent snapshot for this device › Responses
consentsPer-purpose consent flags, e.g. {"advertising": true, "analytics": false}.
device_idpolicy_versionVersion of the consent document the user agreed to.
policy_version_idReference to amasian_policy AmasianPolicyVersion.id (the bundle the user consented to). Stored by value across the bounded-context boundary (no DB FK). Nullable for services without a managed policy.
service_name서비스 구분자 (예: amasian, lg-channel-vietnam)
updated_atversionIncrements on each real change (no-op re-saves do not bump).