API Revoke Permissions

Server-Side API endpoint to revoke privacy permissions that have been granted to your dApp

This endpoint will revoke Privacy Permissions that an account has granted to your dApp.

You should use this API endpoint whenever your dApp no longer needs access to Privacy Data.

API endpoint to revoke access to an account's Privacy Data

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

Path Parameters

NameTypeDescription

account*

String

User's wallet address

Headers

NameTypeDescription

Authorization*

String

Bearer ${accessToken}

Date*

String

Date and time of current request

Wed, 04 Oct 2023 02:39:37 GMT

Signature*

String

{}
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
await makeRequest({
    method: 'delete',
    privateKey: getPrivateKeyFromDer(privateKeyDer),
    path: `/api/v1/privacy/grants/${walletAddress}`
});

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

Last updated