Set Data Processing Consent for App Users

Prev Next

The EU’s General Data Protection Regulation came into force on May 25, 2018. This legislation requires customers to ask for specific consent to send their data to Insider as the Data Processor. The Data Processing Consent API helps you send user consent programmatically in real time over the web using predefined web services.

Endpoint and Headers

POST https://mobile.useinsider.com/api/v1/privacy/gdpr/consent/set

Visit our Postman collection to test this request.

Headers

HeaderSample ValueDescription
Content-Typeapplication/jsonThis header specifies the media type of the resource.

Body Parameters

ParameterDescriptionData TypeRequired
partner_nameYour Insider partner name. The partner name should be lowercase.StringYes
gdpr_consentIf consent is given, true
Otherwise false
BooleanYes
targetThe object that contains the unique device ID of the user, and its value. E.g. "udid": "1234"ObjectYes

Sample Body

The sample below displays a request to send user consent information using the Data Processing Consent API, required under the EU’s GDPR (effective May 25, 2018).

{
    "partner_name": "Your partner name goes here",
    "gdpr_consent": true,
    "target": {
        "udid": "1A2B3C4D5E6F7X8Y9Z"
    }
}

Sample Responses

200 OK

The following response returns if the request is successful.

{
    "status": "ok"
}

400 Bad Request

The following response returns if the partner_name or target is empty in the request.

Bad Payload.

Limitations

  • All functions must be executed with a simple HTTPS POST request.
  • The partner name should be provided in the request body. If the value is incorrect, no operation will be executed.
  • Each request can set data processing consent for only one UDID.
  • The value of partner_name should be lowercase.