Skip to main content
We classify connection job failures into three categories based on responsibility for resolution:
  • Leen: Issues originating from Leen’s infrastructure or code. We prioritize these failures and work to resolve them as quickly as possible.
  • Customer: Failures due to invalid or expired credentials. Customer must update credentials to resolve the failure.
  • Vendor: Failures caused by the Vendor’s API, such as network issues or 5xx errors. These failures are often temporary and may resolve automatically in subsequent runs.

How to find Connection Health

You can use List Connections or Get Connection by ID. Here is an example response with connection health value:

Connection Health Statuses

Resolving Unauthorized Connections

Unauthorized connections occur when Leen cannot pull data from a vendor due to invalid, insufficient, or revoked permissions or credentials. Here are two important scenarios for connections that can show up as UNAUTHORIZED in your dashboard.
  1. Partial Data Access: Some connections involve multiple types of data exports. An “unauthorized” status may occur if one or more data types lack the necessary permissions.
  2. Post-Creation Authorization Changes: Even after a successful initial connection, a connection can become unauthorized. This may happen if the user revokes access to the service account/ API Token or if the credentials expire.
Follow the steps below to identify and resolve Unauthorized connections in your environments.

Step 1: Identify Unauthorized Connections

Retrieve all connections with an unauthorized status using the following API request:

Example Response

Step 2: Update Connection Credentials

To fix an unauthorized connection, update its credentials using the connection ID from the previous response.
If the request is successful, it means the credentials are valid, and the connection will become healthy in the subsequent connection job.