List accounts
curl --request GET \
--url https://api.bachs.io/v1/accounts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bachs.io/v1/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bachs.io/v1/accounts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bachs.io/v1/accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"items": [
{
"id": "acct_3Wq8ZfT1yHnJ5sVe",
"name": "Ada Stores",
"owner_user_id": "usr_7b3e19d24c0a",
"parent_organization_id": "acct_7KpQ2mNv4XbR9dLc",
"country": "NG",
"fee_handling": "account_pays_fee",
"enabled_payment_methods": null,
"adaptive_pricing": true,
"balance_currencies": [
"NGN"
],
"phone_number": null,
"company_name": null,
"enabled_capabilities": [
"transfers"
],
"capabilities": null,
"requirements": null,
"is_active": true,
"created_at": "2026-08-01T09:12:44.000Z",
"updated_at": "2026-08-07T11:04:22.518Z",
"responsibilities": null,
"configuration": null
}
],
"total": 42,
"limit": 20,
"offset": 0
}{
"detail": "Invalid request parameters",
"error_code": "VALIDATION_ERROR",
"errors": [
{
"field": "amount",
"message": "Amount must be a positive decimal string",
"type": "value_error"
}
]
}{
"detail": "Invalid API key",
"error_code": "UNAUTHORIZED"
}{
"detail": "API key does not have permission for this operation",
"error_code": "FORBIDDEN"
}{
"detail": "Resource not found",
"error_code": "NOT_FOUND"
}{
"detail": "Rate limit exceeded. Please retry after a few seconds.",
"error_code": "TOO_MANY_REQUESTS"
}{
"detail": "An unexpected error occurred. Please try again later.",
"error_code": "INTERNAL_SERVER_ERROR"
}Connected Accounts
List accounts
Returns the accounts linked to your account. Items never carry the capabilities or requirements blocks; read a single account with Get account for those. Requires the connect capability to be active on your account.
GET
/
v1
/
accounts
List accounts
curl --request GET \
--url https://api.bachs.io/v1/accounts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bachs.io/v1/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bachs.io/v1/accounts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bachs.io/v1/accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"items": [
{
"id": "acct_3Wq8ZfT1yHnJ5sVe",
"name": "Ada Stores",
"owner_user_id": "usr_7b3e19d24c0a",
"parent_organization_id": "acct_7KpQ2mNv4XbR9dLc",
"country": "NG",
"fee_handling": "account_pays_fee",
"enabled_payment_methods": null,
"adaptive_pricing": true,
"balance_currencies": [
"NGN"
],
"phone_number": null,
"company_name": null,
"enabled_capabilities": [
"transfers"
],
"capabilities": null,
"requirements": null,
"is_active": true,
"created_at": "2026-08-01T09:12:44.000Z",
"updated_at": "2026-08-07T11:04:22.518Z",
"responsibilities": null,
"configuration": null
}
],
"total": 42,
"limit": 20,
"offset": 0
}{
"detail": "Invalid request parameters",
"error_code": "VALIDATION_ERROR",
"errors": [
{
"field": "amount",
"message": "Amount must be a positive decimal string",
"type": "value_error"
}
]
}{
"detail": "Invalid API key",
"error_code": "UNAUTHORIZED"
}{
"detail": "API key does not have permission for this operation",
"error_code": "FORBIDDEN"
}{
"detail": "Resource not found",
"error_code": "NOT_FOUND"
}{
"detail": "Rate limit exceeded. Please retry after a few seconds.",
"error_code": "TOO_MANY_REQUESTS"
}{
"detail": "An unexpected error occurred. Please try again later.",
"error_code": "INTERNAL_SERVER_ERROR"
}Authorizations
Bearer token authentication. Pass your API key as Authorization: Bearer sk_.... See Authentication for keys, scopes, and sandbox vs production.
Query Parameters
Number of accounts to return per page.
Required range:
1 <= x <= 100Number of accounts to skip before the page starts.
Required range:
x >= 0Response
A page of accounts. Each entry in items is an Account.
The accounts on this page. Items never carry capabilities or requirements; read a single account for those.
Show child attributes
Show child attributes
Total accounts, across all pages.
Example:
42
The page size used for this response.
Example:
20
The offset used for this response.
Example:
0

