---
agentTools:
  projectIndex: https://docs.bond.tech/v0/llms.txt
---

# Exchange Plaid Tokens

Exchanges a Plaid `public_token` for `access_token`

# OpenAPI definition

````json
{
  "openapi": "3.0.0",
  "paths": {
    "/accounts/{account_id}": {
      "post": {
        "responses": {
          "200": {
            "description": "\n```json\n{\n    \"account_id\": \"0c97838f-58a3-44b7-b97c-cdca5ac03b9e\",\n    \"link_type\": \"plaid\",\n    \"access_token\": \"access-sandbox-035d67aa-5d6b-4014-98af-e09b7335ea31\",\n    \"status\": \"active\",\n    \"verification_status\": \"instantly_verified\",\n    \"account_type\": \"checking\",\n    \"account_category\": \"depository\"\n    }\n```\n"
          }
        },
        "summary": "Exchange Plaid Tokens",
        "description": "Exchanges a Plaid `public_token` for `access_token`",
        "operationId": "post_accounts_exchange",
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Account ID"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostAccountsExchangePlaidLinkSerializer"
              }
            },
            "application/xml": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          },
          "required": true,
          "description": ""
        },
        "x-internal": true,
        "tags": [
          "Accounts"
        ]
      }
    }
  },
  "info": {
    "title": "Core",
    "version": "2",
    "description": "Studio Financial Core."
  },
  "security": [
    {
      "identity": [],
      "authorization": []
    }
  ],
  "x-samples-languages": [
    "curl",
    "node",
    "ruby",
    "javascript",
    "python",
    "csharp",
    "java"
  ],
  "servers": [
    {
      "url": "https://sandbox.bond.tech/api/v0"
    }
  ],
  "components": {
    "securitySchemes": {
      "identity": {
        "type": "apiKey",
        "in": "header",
        "name": "Identity"
      },
      "authorization": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization"
      }
    },
    "schemas": {
      "PostAccountsExchangePlaidLinkSerializer": {
        "required": [
          "external_account_id",
          "public_token",
          "verification_status"
        ],
        "properties": {
          "public_token": {
            "type": "string",
            "description": "Temporary token sent by Plaid to the client application.",
            "example": "public-sandbox-98ed91d9-7794-49e2-a397-279734e597ae"
          },
          "external_account_id": {
            "type": "string",
            "description": "Plaid's account ID for the external account.",
            "example": "1gxb4pgQ8VcV7xanAxp1sxAAjNERA4iQ6w1Vm"
          },
          "verification_status": {
            "type": "string",
            "description": "Verification status of the external Plaid account.<br /><br />Possible values are _instantly_verified_ (Instant Auth), _pending_automatic_verification_ (Automated Micro-Deposits), and _pending_manual_verification_ (Same-Day Micro-Deposits).",
            "example": "instantly_verified",
            "enum": [
              "instantly_verified",
              "pending_automatic_verification",
              "pending_manual_verification"
            ]
          },
          "bank_name": {
            "type": "string",
            "description": "Name of the external bank account being linked.",
            "example": "Chase Bank"
          }
        },
        "type": "object"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 96,
      "1": 120,
      "2": 210,
      "3": 103,
      "4": 215,
      "5": 118,
      "6": 38,
      "7": 113,
      "8": 168,
      "9": 57,
      "10": 85,
      "11": 120
    }
  }
}
````