Plaid logo
Docs
ALL DOCS

API

  • Overview
  • Libraries
  • API versioning
  • Postman Collection
  • Webhooks
Payments and Funding
  • Auth
  • Balance
  • Identity
  • Signal
  • Transfer
  • Investments Move
  • Payment Initiation
  • Virtual Accounts
Financial Insights
  • Transactions
  • Investments
  • Liabilities
  • Enrich
KYC/AML and anti-fraud
  • Look up Dashboard users
  • Identity Verification
  • Monitor
  • Beacon (beta)
Instant Onboarding
  • Layer
Credit and Underwriting
  • Consumer Report (by Plaid Check)
  • Assets
  • Statements
  • Income
Fundamentals
  • Items
  • Accounts
  • Institutions
  • Sandbox
  • Link
  • Users
  • Consent
  • Network
Partnerships
  • Processor tokens
  • Processor partners
  • Reseller partners
Plaid logo
Docs
Close search modal
Ask Bill!
Ask Bill!
Hi! I'm Bill! You can ask me all about the Plaid API. Try asking questions like:
    Note: Bill isn't perfect. He's just a robot platypus that reads our docs for fun. You should treat his answers with the same healthy skepticism you might treat any other answer on the internet. This chat may be logged for quality and training purposes. Please don't send Bill any PII -- he's scared of intimacy. All chats with Bill are subject to Plaid's Privacy Policy.
    Plaid.com
    Log in
    Get API Keys
    Open nav

    Consent

    API reference for managing consent

    Endpoints
    /consent/events/getRetrieve consent events
    See also
    /item/getRetrieve an Item (includes Item consent details)

    /consent/events/get

    List a historical log of item consent events

    List a historical log of Item consent events. Consent logs are only available for events occurring on or after November 7, 2024. Up to three years of consent logs will be available via the endpoint.

    consent/events/get

    Request fields

    client_id
    string
    Your Plaid API client_id. The client_id is required and may be provided either in the PLAID-CLIENT-ID header or as part of a request body.
    secret
    string
    Your Plaid API secret. The secret is required and may be provided either in the PLAID-SECRET header or as part of a request body.
    access_token
    requiredstring
    The access token associated with the Item data is being requested for.
    Select Language
    1const request: ConsentEventsGetRequest = {
    2 access_token: accessToken,
    3};
    4try {
    5 const response = await plaidClient.consentEventsGet(request);
    6 const consentEvents = response.data.consent_events;
    7 const status = response.data.status;
    8} catch (error) {
    9 // handle error
    10}
    consent/events/get

    Response fields and example

    request_id
    string
    A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive.
    consent_events
    [object]
    A list of consent events.
    item_id
    string
    The Plaid Item ID. The item_id is always unique; linking the same account at the same institution twice will result in two Items with different item_id values. Like all Plaid identifiers, the item_id is case-sensitive.
    created_at
    string
    The date and time when the consent event occurred, in ISO 8601 format.

    Format: date-time
    event_type
    string
    A broad categorization of the consent event.

    Possible values: CONSENT_GRANTED, CONSENT_REVOKED, CONSENT_UPDATED
    event_code
    string
    Codes describing the object of a consent event.

    Possible values: USER_AGREEMENT, USE_CASES, DATA_SCOPES, ACCOUNT_SCOPES, REVOCATION
    institution_id
    nullablestring
    Unique identifier for the institution associated with the Item. Field is null for Items created via Same Day Micro-deposits.
    institution_name
    nullablestring
    The full name of the institution associated with the Item. Field is null for Items created via Same Day Micro-deposits.
    initiator
    string
    The entity that initiated collection of consent.

    Possible values: PLAID, DATA_PROVIDER, CUSTOMER, END_USER
    consented_use_cases
    [string]
    A list of strings containing the full list of use cases the end user has consented to for the Item.
    See the full list of use cases.
    consented_data_scopes
    [string]
    A list of strings containing the full list of data scopes the end user has consented to for the Item. These correspond to consented products; see the full mapping of data scopes and products.
    consented_accounts
    [object]
    An array containing the accounts associated with the Item for which authorizations are granted.
    account_id
    string
    Plaid’s unique identifier for the account. Like all Plaid identifiers, the account_id is case sensitive.
    mask
    string
    The last 2-4 alphanumeric characters of an account's official account number
    name
    string
    The name of the account, either assigned by the user or by the financial institution itself
    official_name
    string
    The official name of the account as given by the financial institution
    type
    string
    investment: Investment account. In API versions 2018-05-22 and earlier, this type is called brokerage instead.
    credit: Credit card
    depository: Depository account
    loan: Loan account
    other: Non-specified account type
    See the Account type schema for a full listing of account types and corresponding subtypes.


    Possible values: investment, credit, depository, loan, brokerage, other
    subtype
    nullablestring
    See the Account type schema for a full listing of account types and corresponding subtypes.

    Possible values: 401a, 401k, 403B, 457b, 529, auto, brokerage, business, cash isa, cash management, cd, checking, commercial, construction, consumer, credit card, crypto exchange, ebt, education savings account, fixed annuity, gic, health reimbursement arrangement, home equity, hsa, isa, ira, keogh, lif, life insurance, line of credit, lira, loan, lrif, lrsp, money market, mortgage, mutual fund, non-custodial wallet, non-taxable brokerage account, other, other insurance, other annuity, overdraft, paypal, payroll, pension, prepaid, prif, profit sharing plan, rdsp, resp, retirement, rlif, roth, roth 401k, rrif, rrsp, sarsep, savings, sep ira, simple ira, sipp, stock plan, student, thrift savings plan, tfsa, trust, ugma, utma, variable annuity
    1{
    2 "request_id": "m8MDnv9okwxFNBV",
    3 "consent_events": [
    4 {
    5 "item_id": "Ed6bjNrDLJfGvZWwnkQlfxwoNz54B5C97ejBr",
    6 "event_type": "CONSENT_GRANTED",
    7 "event_code": "USER_AGREEMENT",
    8 "institution_id": "ins_123456",
    9 "institution_name": "Platypus bank",
    10 "initiator": "END_USER",
    11 "created_at": "2019-02-15T15:51:39Z",
    12 "consented_use_cases": [],
    13 "consented_data_scopes": [],
    14 "consented_accounts": []
    15 },
    16 {
    17 "item_id": "Ed6bjNrDLJfGvZWwnkQlfxwoNz54B5C97ejBr",
    18 "event_type": "CONSENT_GRANTED",
    19 "event_code": "USE_CASES",
    20 "institution_id": "ins_123456",
    21 "institution_name": "Platypus bank",
    22 "initiator": "END_USER",
    23 "created_at": "2019-02-15T15:52:39Z",
    24 "consented_use_cases": [
    25 "Send and receive money",
    26 "Track and manage your finances"
    27 ],
    28 "consented_data_scopes": [],
    29 "consented_accounts": []
    30 },
    31 {
    32 "item_id": "Ed6bjNrDLJfGvZWwnkQlfxwoNz54B5C97ejBr",
    33 "event_type": "CONSENT_GRANTED",
    34 "event_code": "DATA_SCOPES",
    35 "institution_id": "ins_123456",
    36 "institution_name": "Platypus bank",
    37 "initiator": "END_USER",
    38 "created_at": "2019-02-15T15:52:39Z",
    39 "consented_use_cases": [],
    40 "consented_data_scopes": [
    41 "Account and balance info",
    42 "Contact info",
    43 "Account and routing number"
    44 ],
    45 "consented_accounts": []
    46 },
    47 {
    48 "item_id": "Ed6bjNrDLJfGvZWwnkQlfxwoNz54B5C97ejBr",
    49 "event_type": "CONSENT_GRANTED",
    50 "event_code": "ACCOUNT_SCOPES",
    51 "institution_id": "ins_123456",
    52 "institution_name": "Platypus bank",
    53 "initiator": "END_USER",
    54 "created_at": "2019-02-15T15:53:39Z",
    55 "consented_use_cases": [],
    56 "consented_data_scopes": [],
    57 "consented_accounts": [
    58 {
    59 "account_id": "blgvvBlXw3cq5GMPwqB6s6q4dLKB9WcVqGDGo",
    60 "mask": "0000",
    61 "name": "Plaid Checking",
    62 "official_name": "Plaid Gold Standard 0% Interest Checking",
    63 "type": "depository",
    64 "subtype": "checking"
    65 }
    66 ]
    67 },
    68 {
    69 "item_id": "Ed6bjNrDLJfGvZWwnkQlfxwoNz54B5C97ejBr",
    70 "event_type": "CONSENT_REVOKED",
    71 "event_code": "REVOCATION",
    72 "institution_id": "ins_123456",
    73 "institution_name": "Platypus bank",
    74 "initiator": "END_USER",
    75 "created_at": "2020-02-20T15:53:39Z",
    76 "consented_use_cases": [],
    77 "consented_data_scopes": [],
    78 "consented_accounts": []
    79 }
    80 ]
    81}
    Was this helpful?
    Developer community
    GitHub
    GitHub
    Stack Overflow
    Stack Overflow
    YouTube
    YouTube
    Discord
    Discord