Skip to main content
POST
/
api
/
service
/
data
/
consent
/
revoke
JavaScript
import Ivy from '@getivy/node-sdk';

const client = new Ivy({
  apiKey: process.env['IVY_API_KEY'], // This is the default and can be omitted
});

const response = await client.data.consent.revoke({ sessionId: 'sessionId' });

console.log(response.createdAt);
{
  "revokedAt": 123,
  "permissions": [
    "accounts"
  ],
  "status": "revoked",
  "createdAt": 123,
  "updatedAt": 123,
  "expiresAt": 123
}

Authorizations

X-Ivy-Api-Key
string
header
required

API key for authentication

Body

application/json
sessionId
string
required

The ID of the data session to which the consent belongs.

Response

200 - application/json

Returns the details of the revoked consent

revokedAt
number
required

The Epoch time in seconds at which the consent was revoked.

permissions
enum<string>[]
required

The permissions granted in this consent.

Available options:
accounts,
balances,
transactions
status
enum<string>
required

The current status of the consent.

Available options:
revoked
createdAt
number
required

The Epoch time in seconds when the consent was created.

updatedAt
number
required

The Epoch time in seconds when the consent was last updated.

expiresAt
number

The Epoch time in seconds at which the consent expires.