Data Subject Requests (DSRs) typically come solely through the Privacy Center, but sometimes there are reasons to upload DSRs from other sources.
- If you're just getting started, you might need upload a backlog of DSRs
- You might plan to maintain a secondary channel for receiving DSRs (such as a button in a custom support console)
- You may choose to use Transcend a means of erasing data across SaaS tools whenever a user deletes their account (fine by us!)
In these cases, you can choose to programmatically submit new DSRs to Transcend. Here's how:
POST https://api.transcend.io/v0/data-subject-request
type
String
One of access
, erasure
, portability
, rectification
, objection
, or restriction
identifiers
Object
This is an object that should match your DSR form. Typically it includes an email address.
is_verified
Boolean
Whether you have already verified the identity of the data subject (defaults to true)
const request = require('request');
const myDataUpload = getUserData();
request.post('https://api.transcend.io/v0/data-subject-request', {
headers: {
Authorization: ' '
},
body: {
type: 'erasure',
identifiers: {
email: 'mikebrook@gmail.com',
first_name: 'Michael',
last_name: 'Brook'
}
},
json: true
});
import json
import urllib2
data = {
'type': 'erasure',
'identifiers': {
'email': 'mikebrook@gmail.com',
'first_name': 'Michael',
'last_name': 'Brook'
}
}
req = urllib2.Request('https://api.transcend.io/v0/upload')
req.add_header('Content-Type', 'application/json')
req.add_header('Authorization', ' ')
response = urllib2.urlopen(req, json.dumps(data))
curl -X POST "https://api.transcend.io/v0/data-subject-request" \
-H "Authorization: " \
-H "Content-Type: application/json" \
-d "{ type: 'erasure', identifiers: { email: 'mikebrook@gmail.com', first_name: 'Michael', last_name: 'Brook' } }"
Requires organization API key
Don't forget to include your organization API key in the Authorization header. Read more about Authentication here.