Skip to main content
GET
/
consent
/
status
/
{uid}
Get Consent Status
curl --request GET \
  --url https://link.emergedata.ai/consent/status/{uid} \
  --header 'Authorization: Bearer <token>'
{
  "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"
    }
  ]
}

Authorizations

Authorization
string
header
required

API token from the Control Room. Include as Authorization: Bearer <token>

Path Parameters

uid
string
required

Response

Successful Response

Consent state by provider for a partner user.

sub
string
client_id
string
consents
ConsentStatusItem · object[]