List capabilities
curl --request GET \
--url https://api.bachs.io/v1/accounts/{account_id}/capabilities \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bachs.io/v1/accounts/{account_id}/capabilities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bachs.io/v1/accounts/{account_id}/capabilities"
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/{account_id}/capabilities"
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": [
{
"name": "payouts",
"status": "active",
"requested": true,
"status_details": null
},
{
"name": "transfers",
"status": "restricted",
"requested": true,
"status_details": [
{
"code": "platform_disabled",
"resolution": "Contact support to re-enable this capability.",
"message": "This capability was disabled by the platform."
}
]
},
{
"name": "conversions",
"status": "unrequested",
"requested": false,
"status_details": null
},
{
"name": "connect",
"status": "unrequested",
"requested": false,
"status_details": null
}
]
}{
"detail": "Invalid API key",
"error_code": "UNAUTHORIZED"
}{
"detail": "Resource not found",
"error_code": "NOT_FOUND"
}Connected Accounts
List capabilities
List every capability applicable to an account, including ones it has never requested. A capability with no record reports unrequested rather than being omitted, so you can tell “never asked for” apart from “turned off”. See Capabilities.
GET
/
v1
/
accounts
/
{account_id}
/
capabilities
List capabilities
curl --request GET \
--url https://api.bachs.io/v1/accounts/{account_id}/capabilities \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bachs.io/v1/accounts/{account_id}/capabilities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bachs.io/v1/accounts/{account_id}/capabilities"
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/{account_id}/capabilities"
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": [
{
"name": "payouts",
"status": "active",
"requested": true,
"status_details": null
},
{
"name": "transfers",
"status": "restricted",
"requested": true,
"status_details": [
{
"code": "platform_disabled",
"resolution": "Contact support to re-enable this capability.",
"message": "This capability was disabled by the platform."
}
]
},
{
"name": "conversions",
"status": "unrequested",
"requested": false,
"status_details": null
},
{
"name": "connect",
"status": "unrequested",
"requested": false,
"status_details": null
}
]
}{
"detail": "Invalid API key",
"error_code": "UNAUTHORIZED"
}{
"detail": "Resource not found",
"error_code": "NOT_FOUND"
}Authorizations
Bearer token authentication. Pass your API key as Authorization: Bearer sk_.... See Authentication for keys, scopes, and sandbox vs production.

