App OAuth discovery
curl --request GET \
--url https://api.bachs.io/connect/oauth/.well-known/oauth-authorization-serverconst options = {method: 'GET'};
fetch('https://api.bachs.io/connect/oauth/.well-known/oauth-authorization-server', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bachs.io/connect/oauth/.well-known/oauth-authorization-server"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bachs.io/connect/oauth/.well-known/oauth-authorization-server"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"issuer": "https://api.bachs.io/connect/oauth",
"authorization_endpoint": "https://api.bachs.io/connect/oauth/authorize",
"token_endpoint": "https://api.bachs.io/v1/connect/oauth/token",
"revocation_endpoint": "https://api.bachs.io/v1/connect/oauth/revoke",
"response_types_supported": [
"code"
],
"grant_types_supported": [
"authorization_code",
"refresh_token"
],
"code_challenge_methods_supported": [
"S256"
],
"token_endpoint_auth_methods_supported": [
"client_secret_basic",
"client_secret_post"
],
"scopes_supported": [
"payments:read",
"payments:write",
"refunds:read",
"refunds:write"
]
}{
"detail": "Rate limit exceeded. Please retry after a few seconds.",
"error_code": "TOO_MANY_REQUESTS"
}Bachs Apps
App OAuth discovery
The OAuth endpoints and options for Bachs apps, in the standard discovery format (RFC 8414). No authentication.
GET
/
connect
/
oauth
/
.well-known
/
oauth-authorization-server
App OAuth discovery
curl --request GET \
--url https://api.bachs.io/connect/oauth/.well-known/oauth-authorization-serverconst options = {method: 'GET'};
fetch('https://api.bachs.io/connect/oauth/.well-known/oauth-authorization-server', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bachs.io/connect/oauth/.well-known/oauth-authorization-server"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bachs.io/connect/oauth/.well-known/oauth-authorization-server"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"issuer": "https://api.bachs.io/connect/oauth",
"authorization_endpoint": "https://api.bachs.io/connect/oauth/authorize",
"token_endpoint": "https://api.bachs.io/v1/connect/oauth/token",
"revocation_endpoint": "https://api.bachs.io/v1/connect/oauth/revoke",
"response_types_supported": [
"code"
],
"grant_types_supported": [
"authorization_code",
"refresh_token"
],
"code_challenge_methods_supported": [
"S256"
],
"token_endpoint_auth_methods_supported": [
"client_secret_basic",
"client_secret_post"
],
"scopes_supported": [
"payments:read",
"payments:write",
"refunds:read",
"refunds:write"
]
}{
"detail": "Rate limit exceeded. Please retry after a few seconds.",
"error_code": "TOO_MANY_REQUESTS"
}Response
The discovery document.

