Add a delete request

You can use the Privacy Request endpoint in order to comply with a deletion request (e.g., CCPA or GDPR). The following input fields are provided:

subjectEmail - Email of a subscriber. Only required if subjectPhone is empty.

subjectPhone - Email of a subscriber. Only required if subjectEmail is empty.

requestMsg - An optional message for an audit trail.

The response will provide a record of the request.

Example query

Make sure to set the Authorization: Bearer <Unique API Key> on the request. For more information about obtaining a unique API Key please see the Authentication Docs

POST https://api.attentivemobile.com/v1/graphql

Copy
Copied
mutation CreatePrivacyDeleteRequest($input: CreatePrivacyDeleteRequestInput!) {
  createPrivacyDeleteRequest(input: $input) {
      privacyRequest  {
          subjectEmail,
          subjectPhone,
          requestMsg,
          requestDateTime
      }
  }
}
  

Example Input Variable:

Copy
Copied
{
    "input" : {
        "subjectPhone" : "11111111111",
        "subjectEmail": "test@gmail.com",
        "requestMsg": "A message for an audit trail"
    }
}