🏦

DemoBank API

Template Reference

Reference template integration: OTP login, session token, and user-info lookup. Replace with a real fintech app in step 2.

Overview

πŸ’‘

Base URL: https://api.openbankinggateway.com β€” all responses use the unified {code, data} envelope.

Session flow: complete the login endpoints to receive a gateway token, then pass it as token= to every authenticated endpoint.

Transparency: the raw upstream fintech JSON is included under data.upstream on every response β€” success and error alike.

Fill in the parameters on any endpoint below and hit Send request to call the live gateway, or copy the curl example to run it from your terminal.

Auth

POST/api/demobank/login/request-otp

Request a login OTP for a phone number

ParameterInValue
phone*query
curl -X POST 'https://api.openbankinggateway.com/api/demobank/login/request-otp?phone=8801700000000'
POST/api/demobank/login/verify-otp

Verify the OTP and issue a session token

ParameterInValue
phone*query
otp*body
curl -X POST 'https://api.openbankinggateway.com/api/demobank/login/verify-otp?phone=8801700000000' \ -H 'Content-Type: application/json' \ -d '{"otp":"123456"}'

Account

GET/api/demobank/user-info

Fetch the logged-in user's profile (token required)

ParameterInValue
token*query
curl -X GET 'https://api.openbankinggateway.com/api/demobank/user-info?token=<token>'