POST
/
v1
/
linked_bank_accounts
curl --request POST \
  --url https://{environment}.straddle.io/v1/linked_bank_accounts \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "bank_account": {
    "account_holder": "<string>",
    "routing_number": "<string>",
    "account_number": "<string>"
  },
  "metadata": {}
}'
{
  "meta": {
    "api_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "api_request_timestamp": "2023-11-07T05:31:56Z"
  },
  "response_type": "object",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "created",
    "status_detail": {
      "reason": "unverified",
      "source": "watchtower",
      "code": "<string>",
      "message": "<string>"
    },
    "bank_account": {
      "institution_name": "<string>",
      "account_holder": "<string>",
      "routing_number": "<string>",
      "account_mask": "<string>"
    },
    "metadata": {},
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Enter 'Bearer ' [space] and then your token in the text input below.

Headers

request-id
string

Optional client generated identifier to trace and debug a request.

correlation-id
string

Optional client generated identifier to trace and debug a series of requests.

Body

account_id
string
required

The unique identifier of the Straddle account to associate this bank account with.

bank_account
object
required
metadata
object | null

Up to 20 additional user-defined key-value pairs. Useful for storing additional information about the linked bank account in a structured format.

Response

201
text/plain
Created
meta
object
required
response_type
enum<string>
required

Indicates the type of data returned.

Available options:
object,
array,
error,
none
data
object
required