Skip to main content
Both APIs use OAuth2 client credentials flow. Every request requires a short-lived Bearer token in the Authorization header.

Get an Access Token

Exchange your Client ID and Secret at the token endpoint for your environment:
Response:
Tokens expire after 5 minutes (300 seconds). Build token refresh into your client — see Token Refresh below.

Use the Token

Pass the access_token as a Bearer token on every request: Fundflow API:
Finance API:

Token Refresh

Request a new token before the current one expires. A 30-second buffer is sufficient:
A 401 Unauthorized response means the token has expired — re-authenticate and retry the request once.

Environments

Staging credentials and production credentials are separate. Staging calls do not move real funds.
See Endpoints & URLs for the complete base URL reference.

Security

  • Store CLIENT_ID and CLIENT_SECRET in environment variables or a secrets manager — never in source code or version control.
  • Never log or expose tokens in client-side code.
  • Treat a leaked secret as compromised immediately — rotate it via your Venly account and invalidate any outstanding tokens.