Overview
Venly Fundflow API uses OAuth2 client credentials flow. All API requests require a bearer token in theAuthorization header.
Get an Access Token
Send aPOST request to the token endpoint for your environment:
| Environment | Endpoint |
|---|---|
| Sandbox | POST https://login-sandbox.venly.io/auth/realms/VenlyFinance/protocol/openid-connect/token |
| Production | POST https://login.venly.io/auth/realms/VenlyFinance/protocol/openid-connect/token |
Request Body
| Parameter | Value |
|---|---|
grant_type | client_credentials |
client_id | Your client ID |
client_secret | Your client secret |
Response
access_token valid for 5 minutes (300 seconds). Once expired, repeat the call above to get a new one.
Use the Token
Pass theaccess_token as a bearer token in the Authorization header of every API call:
Best Practices
- Never expose client secrets in client-side code, logs, or version control.
- Store credentials in environment variables or a secrets manager.
- Implement auto-refresh logic to request a new token before the current one expires.

