Export
curl --request POST \
--url https://{space}.{region}.api.niadra.com/v1/export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"handle": {
"type": "phone_e164",
"value": "+14155550123"
}
}
'import requests
url = "https://{space}.{region}.api.niadra.com/v1/export"
payload = { "handle": {
"type": "phone_e164",
"value": "+14155550123"
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({handle: {type: 'phone_e164', value: '+14155550123'}})
};
fetch('https://{space}.{region}.api.niadra.com/v1/export', 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://{space}.{region}.api.niadra.com/v1/export",
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([
'handle' => [
'type' => 'phone_e164',
'value' => '+14155550123'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://{space}.{region}.api.niadra.com/v1/export"
payload := strings.NewReader("{\n \"handle\": {\n \"type\": \"phone_e164\",\n \"value\": \"+14155550123\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://{space}.{region}.api.niadra.com/v1/export")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"handle\": {\n \"type\": \"phone_e164\",\n \"value\": \"+14155550123\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{space}.{region}.api.niadra.com/v1/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"handle\": {\n \"type\": \"phone_e164\",\n \"value\": \"+14155550123\"\n }\n}"
response = http.request(request)
puts response.read_body{
"run_id": "0192f7b5-8e41-7c5a-9d6b-7e8f9a0b1c2d",
"profile_id": "0192f7a0-3b2e-7d41-8c5a-2e9f4b7a1c03",
"download_url": "https://acme-prod.us-east-1.api.niadra.com/v1/exports/0192f7b5-8e41-7c5a-9d6b-7e8f9a0b1c2d/download",
"download_expires_at": "2026-09-22T19:00:00Z",
"sha256": "3b1f4c9a0e7d2b6a8c5f1e0d9a7b3c2e4f6a8b0c1d3e5f7a9b0c2d4e6f8a0b1c",
"files": {
"events.jsonl": "sha256:9c0e1f",
"facts.jsonl": "sha256:4a7d2b",
"traits.jsonl": "sha256:e6b3f0",
"links.jsonl": "sha256:12c8a5"
}
}{
"code": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"request_id": "<string>",
"type": "about:blank"
}Privacy and audit
Export
Gathers the data of a data subject for access and portability.
POST
/
v1
/
export
Export
curl --request POST \
--url https://{space}.{region}.api.niadra.com/v1/export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"handle": {
"type": "phone_e164",
"value": "+14155550123"
}
}
'import requests
url = "https://{space}.{region}.api.niadra.com/v1/export"
payload = { "handle": {
"type": "phone_e164",
"value": "+14155550123"
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({handle: {type: 'phone_e164', value: '+14155550123'}})
};
fetch('https://{space}.{region}.api.niadra.com/v1/export', 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://{space}.{region}.api.niadra.com/v1/export",
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([
'handle' => [
'type' => 'phone_e164',
'value' => '+14155550123'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://{space}.{region}.api.niadra.com/v1/export"
payload := strings.NewReader("{\n \"handle\": {\n \"type\": \"phone_e164\",\n \"value\": \"+14155550123\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://{space}.{region}.api.niadra.com/v1/export")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"handle\": {\n \"type\": \"phone_e164\",\n \"value\": \"+14155550123\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{space}.{region}.api.niadra.com/v1/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"handle\": {\n \"type\": \"phone_e164\",\n \"value\": \"+14155550123\"\n }\n}"
response = http.request(request)
puts response.read_body{
"run_id": "0192f7b5-8e41-7c5a-9d6b-7e8f9a0b1c2d",
"profile_id": "0192f7a0-3b2e-7d41-8c5a-2e9f4b7a1c03",
"download_url": "https://acme-prod.us-east-1.api.niadra.com/v1/exports/0192f7b5-8e41-7c5a-9d6b-7e8f9a0b1c2d/download",
"download_expires_at": "2026-09-22T19:00:00Z",
"sha256": "3b1f4c9a0e7d2b6a8c5f1e0d9a7b3c2e4f6a8b0c1d3e5f7a9b0c2d4e6f8a0b1c",
"files": {
"events.jsonl": "sha256:9c0e1f",
"facts.jsonl": "sha256:4a7d2b",
"traits.jsonl": "sha256:e6b3f0",
"links.jsonl": "sha256:12c8a5"
}
}{
"code": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"request_id": "<string>",
"type": "about:blank"
}Authorizations
sourceKeypersonToken
nia_sk_...
Body
application/json
Response
The package is ready: download it before download_expires_at.
Presigned link to the zip in object storage; GET /v1/exports/{run_id}/download serves the same file through the cell.
File name inside the zip -> SHA-256.
Show child attributes
Show child attributes
The subject, also when it was named by a handle.
SHA-256 of the zip.

