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"
}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.
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.
Path Parameters
The account to act on. It must be one of your own accounts; any other ID returns 404 so the response never confirms that an unrelated account exists.
Response
The account's capabilities.
Every capability applicable to the account, including ones it has never requested. Capabilities the account is not eligible to hold at all are omitted rather than returned as unsupported.
Show child attributes
Show child attributes

