Choose an environment
Ontra runs separate production and sandbox environments with separate API clients and credentials.
Select the environment to connect
Pick the environment that matches the API client you are about to create.
- Choose Production for live fund and contract data — production always requires an mTLS certificate
- Choose Sandbox for development and testing — sandbox accepts either an mTLS certificate or a client secret
Generate an mTLS certificate
Ontra authenticates API clients with a self-signed certificate that you generate yourself and keep.
Create the key pair
Run openssl req -x509 -newkey rsa:2048 -keyout private_key.pem -out public_cert.pem -days 365, replacing 365 with how many days the certificate should stay valid. This writes two files into the current directory.
Keep the private key safe
private_key.pem is the secret half of the pair and is never sent to Ontra. Store it securely and do not share it.
Create an Ontra API client
Register your public certificate with Ontra to receive a client ID.
Open the API clients page
Log in to Ontra and navigate to Admin > Integrations > Ontra API > Manage.
Create the client
Create a new API client and upload the public_cert.pem file you generated.
- Copy the Client ID that Ontra issues — you will need it below
- In the sandbox only, you may instead create a client that authenticates with a Client Secret
Enter your credentials
Provide the client ID plus either the certificate pair or, in the sandbox, the client secret.
Client ID
Paste the Client ID from the Ontra API clients page.
Certificate and private key
Open public_cert.pem and private_key.pem in a text editor and paste the full contents of each, including the -----BEGIN ...----- and -----END ...----- marker lines.
Client Secret (sandbox only)
If you created a sandbox client that uses a client secret, paste it here and leave the certificate and private key blank.
Linking the Account from the Hub
Navigate to the Hub
Fill out the fields
- Client ID
- Certificate (Optional)
- Private Key (Optional)
- Client Secret (Optional)
Connect
- Click Connect
- If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
- Once authorization is successful, you will see a confirmation popup
If the account linking is successful, you will see the newly linked account in your Accounts page.