Skip to main content

Authentication

All Open Fabric APIs use an OAuth 2.0 access token (Bearer token) for authentication.

To obtain an access token, you need client credentials:

KeyDescription
client_idIdentifies your integration. This can be used in client-side applications (web/mobile).
client_secretConfidential credential used for server-to-server communication. Do not expose it to third parties.

Your credentials will be provided during onboarding.

Request an access token

Use the Request access token API.

curl --request POST \
--url https://auth.openfabric.co/oauth2/token \
--header 'Authorization: Basic <base64(client_id:client_secret)>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'grant_type=client_credentials'

OAuth2 scopes

When requesting an access token, you can specify the scopes your integration needs. Use the scope parameter with space-separated scope names (e.g. scope=acct.r txn.r). If not provided, the access token will be generated with all scopes assigned to the API client.

The following scopes are available:

ScopeFull NameDescription
acct.raccounts.readView accounts
acct.uaccounts.updateUpdate accounts
txn.rtransactions.readView transactions
txn.ctransactions.createCreate transactions
txn.utransactions.updateUpdate transactions
card.rcards.readRead card information
mcht.rmerchants.readView partners
mcht.cmerchants.createCreate partners
mcht.umerchants.updateUpdate partners
mcred.rmerchant_credential.readView partner API credentials, PG credentials, webhook config and PAT config
mcred.umerchant_credential.updateUpdate partner API credentials, PG credentials, webhook config and PAT config
mcred.dmerchant_credential.deleteDelete partner PG credentials and PAT config
sub.rsubscriptions.readView webhook settings
sub.csubscriptions.createCreate webhook settings
sub.usubscriptions.updateUpdate webhook settings
sub.dsubscriptions.deleteDelete webhook settings
cust.rcustomers.readView customers
cust.ccustomers.createCreate customers
cust.ucustomers.updateUpdate customers
cust.dcustomers.deleteDelete customers
wlt.rwallets.readView secure device wallets
wlt.uwallets.updateLock/unlock secure device wallets
wlt.dwallets.deleteDeactivate secure device wallets
tkn.rtokens.readView tokens
tkn.utokens.updateLock/unlock tokens
tkn.dtokens.deleteDelete tokens
pm.rpayment_methods.readView payment methods
pm.upayment_methods.updateLock/unlock payment methods
pm.dpayment_methods.deleteDelete payment methods
pat.rpat_links.readView pre-approved transaction links
pat.cpat_links.createCreate pre-approved transaction links
pat.upat_links.updateUpdate pre-approved transaction links
pat.dpat_links.deleteDelete pre-approved transaction links
aud.raudit.readView audit trail
sc.rspend_controls.readView spend control rulesets
sc.cspend_controls.createCreate new spend control rulesets
sc.uspend_controls.updateUpdate spend control rulesets
sc.dspend_controls.deleteDelete spend control rulesets
cp.rcard_programs.readView card programs
cp.ccard_programs.createCreate new card programs
cp.ucard_programs.updateUpdate card programs
cp.dcard_programs.deleteDeactivate card programs