Skip to main content

Getting Started

To begin, you will need to create an API key from your Smartbills dashboard or contact us to obtain an API key. Head to https://developers.smartbills.io

Connected Accounts

To act on behalf of connected accounts, clients can make requests using the special on-behalf-of header. Ensure that this header contains a valid Smartbills account ID.

OAuth2 Authentication

Client Credentials Flow

Use this flow for server-to-server communication. Endpoint: https://api.smartbills.io/connect/token Request:
Response:

Code Example

Authorization Code Flow

Use this flow for user authentication. Step 1: Redirect to Authorization Endpoint
Step 2: Exchange Authorization Code for Access Token
Response:

Code Example