Skip to main content
GET
/
v1
/
data-sources
List Data Sources
curl --request GET \
  --url https://reporter.sandbox.lerian.net/v1/data-sources \
  --header 'X-Organization-id: <x-organization-id>'
[
  {
    "id": "midaz_onboarding",
    "externalName": "onboarding",
    "type": "postgresql"
  },
  {
    "id": "midaz_transaction",
    "externalName": "transaction",
    "type": "postgresql"
  },
  {
    "id": "fees",
    "externalName": "fees",
    "type": "mongodb"
  }
]

Headers

Authorization
string

The authorization token in the 'Bearer ' format.

Important: This header is required if your environment has Access Manager enabled. For more information, refer to the Access Manager documentation.

X-Organization-id
string
required

The unique identifier of the Organization associated with the request.

Response

If the result is successful, you will receive a list with all data sources.

id
string
required

Unique internal identifier of the data source, used across API operations.

externalName
string
required

Name of the database or collection defined in the infrastructure setup.

type
string
required

Type of database management system (e.g., PostgreSQL, MongoDB, MySQL).