C External Accounts#

List

#

GET /external-accounts

Lists all external accounts for the workspace

Request
curl -X GET "https://api.us-west-2.fragment.dev/external-accounts" \
  -H "Authorization: Bearer <access_token>" \
  -H "Content-Type: application/json"

Response
{
  "data": [
    {
      "id": "ext_account_YWJjMTIz",
      "external_id": "ext_acc_123",
      "name": "Checking Account"
    }
  ]
}

Create

#

POST /external-accounts

Creates a new external account

Request
curl -X POST "https://api.us-west-2.fragment.dev/external-accounts" \
  -H "Authorization: Bearer <access_token>" \
  -H "Content-Type: application/json" \
  -d '{"external_id":"ext_acc_123","name":"Checking Account"}'

Response
{
  "data": {
    "id": "ext_account_YWJjMTIz",
    "external_id": "ext_acc_123",
    "name": "Checking Account"
  }
}

Parameters
Name Description
external_id (required) - stringExternal ID for the account (user-provided, unique, mutable)
name (required) - stringHuman-readable name for the external account (mutable)