SweetConnect LogoSweetConnect
ApiDatabus datasources

List accessible datasources

Retrieve all datasources the authenticated user has access to within their organization

Access restricted to roles:

  • admin
  • manufacturer-admin
  • manufacturer-user
GET
/v1/datasources

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://test.sweetconnect.io/api/databus-controller/v1/datasources"
{
  "data": [
    {
      "id": "ce452d7d-448a-4d42-98e0-ac879f7baae9",
      "datasourceType": "InfluxDB_v2",
      "name": "influxdb-v2-org-12345",
      "organizationId": "ce452d7d-448a-4d42-98e0-ac879f7baae9",
      "manufacturerId": "ce452d7d-448a-4d42-98e0-ac879f7baae9",
      "adapter": {
        "org": "sweetconnect",
        "url": "https://influxdb.12345.example.org",
        "token": "readonly-token",
        "bucket": "default"
      },
      "supportedFeatures": [
        "state",
        "log",
        "aggregatedMetrics"
      ],
      "createdAt": "2025-02-27T12:00:00.000Z",
      "updatedAt": "2025-02-27T12:00:00.000Z"
    }
  ]
}
{
  "errors": [
    {
      "errorCode": "RequestValidationError",
      "message": "The 'username' field is required.",
      "extension": {
        "type": "body",
        "key": "username"
      }
    }
  ]
}
{
  "errors": [
    {
      "errorCode": "Unauthorized",
      "message": "Authentication is required to access this resource.",
      "extension": {}
    }
  ]
}
{
  "errors": [
    {
      "errorCode": "NoPermission",
      "message": "You do not have permission to access this resource.",
      "extension": {}
    }
  ]
}