Obtain an OAuth2 access token using the client credentials flow.
The BillSentry API uses the OAuth2 client_credentials flow for M2M (machine-to-machine) authentication. Your system exchanges a Client ID and Client Secret for a short-lived JWT access token.
Make a POST request to the Token URL provided to you at onboarding.
POST {your_token_url}Authorization: Basic {base64(client_id:client_secret)}Content-Type: application/x-www-form-urlencodedgrant_type=client_credentials&scope=billreview%3Awrite
All request bodies must be gzip-compressed. The API gateway forwards the raw request body and its Content-Encoding header directly to the processing engine without modification — uncompressed requests will be rejected.Send these two headers on every API call:
The body must be the gzip-compressed bytes of a valid JSON object. Content-Type remains application/json regardless of compression — it describes the underlying data format, not the encoding.
Maximum body size: 10 MB measured against the compressed bytes received by the gateway.