Skip to main content
Hosts: https://sandbox-api.bachs.io and https://api.bachs.io.

Authorize

Send the browser here to start a connection. On Allow, the browser comes back with code and state. On Cancel, with error=access_denied and state. An unknown client_id or an unregistered redirect_uri is refused without a redirect.

Token

Authenticate with your client secret: HTTP Basic with client_id and the secret, or client_secret in the body. Never both. JSON and form bodies both work. Swap a code Refresh Response

Revoke

Ends the connection a token belongs to. Authenticate as for the token endpoint. The answer is 200 with an empty body, even for an unknown token. A missing token gets 400 invalid_request.

Discovery

Returns the endpoints and options above in the standard format (RFC 8414): authorization_endpoint, token_endpoint, revocation_endpoint, code_challenge_methods_supported (S256), token_endpoint_auth_methods_supported (client_secret_basic, client_secret_post) and scopes_supported. No authentication.

Errors

Errors use error and error_description.