---
title: "Link Accounts"
method: POST
path: "/v1/platform/businesses/{business_id}/link-accounts/"
tags: ["Plaid Integration APIs"]
---

# Link Accounts

`POST /v1/platform/businesses/{business_id}/link-accounts/`

## Request

- Base URL: `https://docs.thredfi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.thredfi.com/v1/platform/businesses/{business_id}/link-accounts/`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP basic
  - HTTP bearer
  - HTTP bearer

Activate selected accounts and deactivate others

## Path parameters

- `business_id` string, uuid, required

## Request body

- AccountLinkingRequest: Serializer for account linking request.
  - `bank_link_id` string, uuid, required: Bank link UUID
  - `account_keys` string[], required: List of Plaid account keys to activate (same as Plaid account IDs)

## Response `200`

- AccountLinkingResponse: Serializer for account linking response.
  - `success` boolean, required
  - `message` string, required
  - `linked_accounts` integer
  - `deactivated_accounts` integer

## Other responses

- `400`: Validation errors in request data
- `401`: Authentication required - missing or invalid API key
- `403`: Permission denied - insufficient privileges
- `404`: Resource not found
- `409`: Conflict - resource already exists or invalid state transition
- `422`: Unprocessable entity - business logic validation failed
- `500`: Internal server error

---

[API](https://skmtc.dev/thredfi/apis/thredfi-accounting-platform-api.md) - [All operations](https://skmtc.dev/thredfi/apis/thredfi-accounting-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/thredfi/apis/thredfi-accounting-platform-api/revisions/0c1918254db3?raw)
