Javascript
import Ivy from '@getivy/node-sdk'; const client = new Ivy({ apiKey: 'My API Key', }); const response = await client.data.consent.revoke({ sessionId: 'sessionId' }); console.log(response.createdAt);
{ "expiresAt": 123, "revokedAt": 123, "permissions": [ "accounts" ], "status": "revoked", "createdAt": 123, "updatedAt": 123 }
Revokes a consent by session ID.
API key for authentication
Returns the details of the revoked consent
The response is of type object.
object
Was this page helpful?