API Get Privacy Permissions

Server-Side API endpoint to fetch privacy permissions that have been allowed by the user to your dApp.

This endpoint returns the abbreviated List of Privacy Data parameters that the user has granted your dApp access to.

This endpoint does not return any actual privacy data.

NOTE: There is a service library available to you in the Quadrata SDK, for this endpoint.

API endpoint to get an account's granted privacy scopes

GET https://int.quadrata.com/api/v1/privacy/grants/${account}

Path Parameters

Name
Type
Description

account*

String

User's wallet address

Headers

Name
Type
Description

Authorization*

String

Basic ${base64(apiKey)}

Date*

String

Date and time of current request

Wed, 04 Oct 2023 02:39:37 GMT

Signature*

String

{
  "data": {
    "grants": [
      "FN"
    ],
    "type": "privacy.grants"
  }
}
const privateKeyDer = '...';
// You can find `getPrivateKeyFromDer` in "How to sign API"."Full Example" page
const privateKey = await getPrivateKeyFromDer(privateKeyDer);

const walletAddress = '...';

// You can find `makeRequest` in "How to sign API"."Full Example" page
const json = await makeRequest({
    method: 'get',
    privateKey: privateKey,
    path: `/api/v1/privacy/grants/${walletAddress}`
});

console.log(json.data.grants);

See How to sign API for message signing examples with more coverage and explanations.

Last updated