POST
/
api
/
service
/
data
/
consent
/
details
JavaScript
import Ivy from '@getivy/node-sdk';

const client = new Ivy({
  apiKey: 'My API Key',
});

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

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

Authorizations

X-Ivy-Api-Key
string
header
required

API key for authentication

Body

application/json

Response

200 - application/json

Returns the details of the consent

The response is of type object.