🕒 5 minute read
Walkthrough – Creating an API Resource
This walkthrough covers registering an API resource under your server. You must have an server already created before following these steps.
Step 1 – Navigate to your Authorisation Server
- Sign in to the Trust Framework directory.
- Navigate to your Organisation.
- Click into the Server we are adding the APIs to
- Open the API Resources section.
- Click + New API Resource.
Step 2 – Create the API Resource
From the API Family dropdown, select the family that corresponds to the API you are registering. The following API families are available:
- Account Information (
account-information) — banking data sharing - Payment Initiation (
payment) — domestic single and multi-payments - Confirmation of Payee (
confirmation) — payee name verification - ATM (
atm) — ATM location data - Products & Leads (
product) — product catalogue and lead generation
For full details on what each family contains, including the endpoints and their mappings, see the API Resources Overview.
- Account Information (
Set the API Version (e.g.
2.1).Click Save. The resource now appears in your Active API Resources list.
If your institution offers multiple API families (e.g. both data sharing and payment initiation), repeat Steps 1–2 for each family. Each family MUST be registered as a separate API resource.
Step 3 – Add API Discovery Endpoints
Once your API resource is saved, you MUST add the discovery endpoints so that TPPs can discover and call your APIs.
Click the actions menu on the API resource and select + Add API Discovery Endpoints.
Enter the API Base URL. The format is always your API Hub resource server:
Environment Base URL Pre-production https://rs1.{LFICODE}.preprod.apihub.openfinance.aeProduction https://rs1.{LFICODE}.apihub.openfinance.aeReplace
{LFICODE}with your institution's LFI code.Click Generate Endpoints. The system will populate the list of available endpoints for this API family.
Tick all the endpoints you support. Check all endpoints are correct, then click Save.
API Hub Default Endpoints
Some endpoints are served directly by the API Hub and do not call your Ozone Connect server — for example, /account-information/v2.1/account-access-consents. These endpoints MUST always remain ticked. See the API Resources Overview for which endpoints are marked as API Hub default.
The endpoints are now published to your server entry in the Trust Framework. TPPs can discover them via the API Discovery process.
Verifying Registration
You can verify that your API resource is correctly registered by calling the Trust Framework API:
GET /organisations/{OrganisationId}/authorisationservers/{AuthorisationServerId}/apiresources
This returns the list of API resources associated with your authorisation server, as they would appear to a TPP querying the directory.
