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-otpRequest a login OTP for a phone number
| Parameter | In | Value |
|---|---|---|
phone* | query |
curl -X POST 'https://api.openbankinggateway.com/api/demobank/login/request-otp?phone=8801700000000'
POST
/api/demobank/login/verify-otpVerify the OTP and issue a session token
| Parameter | In | Value |
|---|---|---|
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-infoFetch the logged-in user's profile (token required)
| Parameter | In | Value |
|---|---|---|
token* | query |
curl -X GET 'https://api.openbankinggateway.com/api/demobank/user-info?token=<token>'