curl --request GET \
--url https://dash.dmly.io/api/v1/contacts/{contact}/data-export \
--header 'x-api-key: <api-key>'import requests
url = "https://dash.dmly.io/api/v1/contacts/{contact}/data-export"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://dash.dmly.io/api/v1/contacts/{contact}/data-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://dash.dmly.io/api/v1/contacts/{contact}/data-export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <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"
"net/http"
"io"
)
func main() {
url := "https://dash.dmly.io/api/v1/contacts/{contact}/data-export"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dash.dmly.io/api/v1/contacts/{contact}/data-export")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dash.dmly.io/api/v1/contacts/{contact}/data-export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body"<string>"{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Download all data held about a contact
Returns a ZIP archive of every record held about one person, the same archive as Download all data on the contact’s Privacy tab: profile.json, one JSON file per kind of record (messages, notes, bookings, invoices, payments, consent history and more), a manifest.json with row counts and a README.txt describing each file. Use it to answer a data-access request. Stored files are listed with their links rather than embedded, and credentials such as access tokens are replaced with [withheld]. Needs the privacy:read permission (contacts:read is not enough, because the archive spans messages and finance). If the key was created by a team member, it is refused with 403 when that member cannot export contacts or would see the phone number or email masked, or has left the workspace. Limited to 10 exports a minute per key (429 with Retry-After), and every export is written to the workspace audit log.
curl --request GET \
--url https://dash.dmly.io/api/v1/contacts/{contact}/data-export \
--header 'x-api-key: <api-key>'import requests
url = "https://dash.dmly.io/api/v1/contacts/{contact}/data-export"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://dash.dmly.io/api/v1/contacts/{contact}/data-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://dash.dmly.io/api/v1/contacts/{contact}/data-export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <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"
"net/http"
"io"
)
func main() {
url := "https://dash.dmly.io/api/v1/contacts/{contact}/data-export"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dash.dmly.io/api/v1/contacts/{contact}/data-export")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dash.dmly.io/api/v1/contacts/{contact}/data-export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body"<string>"{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Authorizations
Your workspace API key. It both authenticates the caller and selects the workspace.
Path Parameters
Contact id.
Response
A ZIP archive (application/zip) of everything held about the contact.
The response is of type file.
Was this page helpful?

