Endpoints
Get Consent Status
Get consent status per provider for a partner user (uid).
The response is reconstructed from partner mappings and consent webhook history.
GET
/
consent
/
status
/
{uid}
Get Consent Status
curl --request GET \
--url https://link.emergedata.ai/consent/status/{uid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://link.emergedata.ai/consent/status/{uid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://link.emergedata.ai/consent/status/{uid}', 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://link.emergedata.ai/consent/status/{uid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://link.emergedata.ai/consent/status/{uid}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://link.emergedata.ai/consent/status/{uid}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://link.emergedata.ai/consent/status/{uid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"sub": "psub_d4e5f6789012345678901234abcdef01",
"client_id": "ck_live_123456789",
"consents": [
{
"provider": "google_data",
"scopes": [
"https://www.googleapis.com/auth/dataportability.myactivity.search"
],
"window": "fixed",
"valid_until": "2026-08-11T09:10:11.000000+00:00",
"status": "active",
"issued_at": "2026-02-12T09:10:11.000000+00:00",
"revoked_at": null
},
{
"provider": "gmail",
"scopes": [
"https://www.googleapis.com/auth/gmail.readonly"
],
"window": "fixed",
"valid_until": "2026-08-11T09:10:11.000000+00:00",
"status": "revoked",
"issued_at": "2025-12-01T11:00:00.000000+00:00",
"revoked_at": "2026-01-15T14:20:00.000000+00:00"
}
]
}{
"detail": "Invalid token"
}{
"detail": "Subject not found"
}{
"detail": [
{
"loc": [
"query",
"uid"
],
"msg": "Field required",
"type": "missing"
}
]
}Authorizations
API token from the Control Room. Include as Authorization: Bearer <token>
Path Parameters
Previous
Get Export StatusCheck export readiness per provider for a partner user (`uid`).
Use `sources[]` and wait for the provider you need to report `data_ready: true`.
Next
⌘I
Get Consent Status
curl --request GET \
--url https://link.emergedata.ai/consent/status/{uid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://link.emergedata.ai/consent/status/{uid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://link.emergedata.ai/consent/status/{uid}', 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://link.emergedata.ai/consent/status/{uid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://link.emergedata.ai/consent/status/{uid}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://link.emergedata.ai/consent/status/{uid}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://link.emergedata.ai/consent/status/{uid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"sub": "psub_d4e5f6789012345678901234abcdef01",
"client_id": "ck_live_123456789",
"consents": [
{
"provider": "google_data",
"scopes": [
"https://www.googleapis.com/auth/dataportability.myactivity.search"
],
"window": "fixed",
"valid_until": "2026-08-11T09:10:11.000000+00:00",
"status": "active",
"issued_at": "2026-02-12T09:10:11.000000+00:00",
"revoked_at": null
},
{
"provider": "gmail",
"scopes": [
"https://www.googleapis.com/auth/gmail.readonly"
],
"window": "fixed",
"valid_until": "2026-08-11T09:10:11.000000+00:00",
"status": "revoked",
"issued_at": "2025-12-01T11:00:00.000000+00:00",
"revoked_at": "2026-01-15T14:20:00.000000+00:00"
}
]
}{
"detail": "Invalid token"
}{
"detail": "Subject not found"
}{
"detail": [
{
"loc": [
"query",
"uid"
],
"msg": "Field required",
"type": "missing"
}
]
}