---
http_interactions:
- request:
    method: post
    uri: https://sandbox.plaid.com/sandbox/public_token/create
    body:
      encoding: UTF-8
      string: '{"institution_id":"ins_109508","initial_products":["transactions","investments","liabilities"],"options":{"override_username":"custom_test"}}'
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - Plaid Ruby v38.0.0
      Accept:
      - application/json
      Plaid-Client-Id:
      - "<PLAID_CLIENT_ID>"
      Plaid-Version:
      - '2020-09-14'
      Plaid-Secret:
      - "<PLAID_SECRET>"
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
  response:
    status:
      code: 200
      message: OK
    headers:
      Server:
      - nginx
      Date:
      - Mon, 19 May 2025 17:24:09 GMT
      Content-Type:
      - application/json; charset=utf-8
      Content-Length:
      - '110'
      Connection:
      - keep-alive
      Plaid-Version:
      - '2020-09-14'
      Vary:
      - Accept-Encoding
      X-Envoy-Upstream-Service-Time:
      - '3086'
      X-Envoy-Decorator-Operation:
      - default.svc-apiv2:8080/*
      Strict-Transport-Security:
      - max-age=31536000; includeSubDomains; preload
      X-Content-Type-Options:
      - nosniff
      X-Frame-Options:
      - DENY
      X-Xss-Protection:
      - 1; mode=block
    body:
      encoding: ASCII-8BIT
      string: |-
        {
          "public_token": "public-sandbox-29a5644f-001d-4bf5-abae-d26ecf8ee211",
          "request_id": "6dz2Xo7zoyT9W9R"
        }
  recorded_at: Mon, 19 May 2025 17:24:09 GMT
- request:
    method: post
    uri: https://sandbox.plaid.com/item/public_token/exchange
    body:
      encoding: UTF-8
      string: '{"public_token":"public-sandbox-29a5644f-001d-4bf5-abae-d26ecf8ee211"}'
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - Plaid Ruby v38.0.0
      Accept:
      - application/json
      Plaid-Client-Id:
      - "<PLAID_CLIENT_ID>"
      Plaid-Version:
      - '2020-09-14'
      Plaid-Secret:
      - "<PLAID_SECRET>"
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
  response:
    status:
      code: 200
      message: OK
    headers:
      Server:
      - nginx
      Date:
      - Mon, 19 May 2025 17:24:09 GMT
      Content-Type:
      - application/json; charset=utf-8
      Content-Length:
      - '164'
      Connection:
      - keep-alive
      Plaid-Version:
      - '2020-09-14'
      Vary:
      - Accept-Encoding
      X-Envoy-Upstream-Service-Time:
      - '152'
      X-Envoy-Decorator-Operation:
      - default.svc-apiv2:8080/*
      Strict-Transport-Security:
      - max-age=31536000; includeSubDomains; preload
      X-Content-Type-Options:
      - nosniff
      X-Frame-Options:
      - DENY
      X-Xss-Protection:
      - 1; mode=block
    body:
      encoding: ASCII-8BIT
      string: |-
        {
          "access_token": "access-sandbox-fb7bb5da-e3e2-464e-8644-4eeafbf6541f",
          "item_id": "bd9d3lAbjqhWyRz7bl61s9R7npPJ87HVzAyvn",
          "request_id": "GqA99rziFZduKYg"
        }
  recorded_at: Mon, 19 May 2025 17:24:09 GMT
recorded_with: VCR 6.3.1
