Create a GDPR request
curl --request POST \
--url https://public-api.sessionboard.com/v1/gdpr/requests \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"identityType": "email",
"identityValue": "<string>"
}
'import requests
url = "https://public-api.sessionboard.com/v1/gdpr/requests"
payload = {
"identityType": "email",
"identityValue": "<string>"
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({identityType: 'email', identityValue: '<string>'})
};
fetch('https://public-api.sessionboard.com/v1/gdpr/requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://public-api.sessionboard.com/v1/gdpr/requests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'identityType' => 'email',
'identityValue' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://public-api.sessionboard.com/v1/gdpr/requests"
payload := strings.NewReader("{\n \"identityType\": \"email\",\n \"identityValue\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://public-api.sessionboard.com/v1/gdpr/requests")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"identityType\": \"email\",\n \"identityValue\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.sessionboard.com/v1/gdpr/requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"identityType\": \"email\",\n \"identityValue\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"org_id": "<string>",
"request_type": "<string>",
"identity_type": "<string>",
"identity_value": "<string>",
"status": "<string>",
"matching_user_exists": true,
"response": {
"users": [
123
],
"org_users": [
"<string>"
],
"event_users": [
123
],
"contact_records": [
"<string>"
]
},
"created_at": "<string>",
"updated_at": "<string>"
}GDPR
Create a GDPR request
Submit a new GDPR data access or erasure request.
POST
/
v1
/
gdpr
/
requests
Create a GDPR request
curl --request POST \
--url https://public-api.sessionboard.com/v1/gdpr/requests \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"identityType": "email",
"identityValue": "<string>"
}
'import requests
url = "https://public-api.sessionboard.com/v1/gdpr/requests"
payload = {
"identityType": "email",
"identityValue": "<string>"
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({identityType: 'email', identityValue: '<string>'})
};
fetch('https://public-api.sessionboard.com/v1/gdpr/requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://public-api.sessionboard.com/v1/gdpr/requests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'identityType' => 'email',
'identityValue' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://public-api.sessionboard.com/v1/gdpr/requests"
payload := strings.NewReader("{\n \"identityType\": \"email\",\n \"identityValue\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://public-api.sessionboard.com/v1/gdpr/requests")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"identityType\": \"email\",\n \"identityValue\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.sessionboard.com/v1/gdpr/requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"identityType\": \"email\",\n \"identityValue\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"org_id": "<string>",
"request_type": "<string>",
"identity_type": "<string>",
"identity_value": "<string>",
"status": "<string>",
"matching_user_exists": true,
"response": {
"users": [
123
],
"org_users": [
"<string>"
],
"event_users": [
123
],
"contact_records": [
"<string>"
]
},
"created_at": "<string>",
"updated_at": "<string>"
}Authorizations
ApiKeyBearerToken
Organization API token. Generate from Organization Settings → API Tokens.
Body
application/json
The type of GDPR request.
Available options:
erasure, access The type of identity to look up.
Available options:
email The identity value (e.g., an email address).
Example:
⌘I

