Basiq best practices

Apply these practices to manage authentication, consent, connection refreshes, and user data in your Basiq API integration.

Cache your authentication token

The token you receive expires after one hour (3600 seconds).


Cache and reuse this token globally. Reuse it across users and connections. Avoid generating a separate token for each user or connection, as this creates unnecessary authentication requests and can lead to scaling issues.

Use Smart Cache

Ask the Basiq team to enable Smart Cache for daily data refreshes.
This feature refreshes data in the background, so you can avoid initiating daily Refresh Connection requests.

Note: Open Banking (bank data sharing with user consent) allows up to 20 refreshes per connection per day.

Handle jobs for ongoing data access

Respond to job statuses and errors

Check job statuses and error messages to identify failures. Tell users what action to take, such as updating their login credentials.

Use the /job endpoint to monitor the status of recent jobs and address failures promptly.

Check jobs regularly

A typical cadence includes daily checks and checks during user login. This allows for timely resolution of errors. For instance:

  • Users might need to update credentials.
  • Banks may require acknowledging new terms or popup messages.

For more details, read Handling jobs.

Purge connection data

Purge (permanently delete) connection data from the Dashboard or through the Purge Connection Data API.
Use the Dashboard to purge data without making API calls.

Purge data from the Dashboard

  1. Navigate to user connections: Open the user's profile and locate the connections list.
  2. Identify the connection: Find the connection by its unique connection ID.
  3. Initiate the purge: Select the "Purge" button next to the connection.
  4. Confirm the purge: Approve the action to permanently delete the connection's data. The connection ID stays the same. You can refresh the connection again later.

🚧 Important: Purging is irreversible. Proceed with caution. The Dashboard feature adheres to the same permissions and security protocols as the API endpoint.

 

Connectors endpoint

Fetch the current status and stage of all connectors to dynamically resolve connection issues.

Error logging

Log userId, connectionId, and jobId so support teams can investigate the affected user, connection, and job.

Secure data storage

Store only the user information you need. Encrypt it and restrict access to authorized users.

Contact support

Contact Basiq support if you encounter issues.


Did this page help you?