Get datasource in account

GET /accounts/{account_externalid}/datasources/{datasource_guid}

Get the details of one datasource (connected application) in a customer account.

Fields in response:

  • name: name given by the user, e.g. Our Salesforce EU instance
  • connector.name: the name of the connector, e.g. Salesforce
  • is_used: whether the datasource is hardcoded for usage in a Blend. If a template is activated, the datasource is hardcoded in the instance Blend, because a datasource was selected in the Setup Flow. Note that in manually created Blends, by default the datasource is loosely coupled in the Blends. This means that this field is not always accurate. A datasource might have is_used=false and still be used by a live Blend, because it is the only datasource in the account.
  • is_connected: whether the connection was successful (status = green in Blendr.io).
  • blends: the blends using this datasource (hard linked, not soft linked).
  • link: optional, only for connectors using oAuth and only if datasource is no longer connected. Redirect the user to this link to re-authorize the datasource. This link is valid for 30 minutes. If the link is opened in a popup, the popup will close on a successful connection. When a redirect_url is provided, the user will be redirected to that redirect_url on a successful connection.

Path Parameters

Name Description Type
account_externalid string
datasource_guid string

Results

200

{
  "guid": "cecbb4f0-9432-11ea-a260-c5c849c5be74",
  "name": "Teamleader - dev@blendr.io",
  "connector": {
    "guid": "cecaee10-9432-11ea-a65e-b9c7c83cf3f5",
    "name": "Teamleader"
  },
  "is_used": true,
  "is_connected": true,
  "blends": [
    {
      "guid": "cecc8b90-9432-11ea-9763-69db98132c2b",
      "name": "Widget #17",
      "description": null,
      "type": "widget",
      "status": "live",
      "state": "available",
      "run_mode": null,
      "has_setup": false,
      "setup_complete": true,
      "has_settings": false,
      "isbundle": false,
      "template_guid": null,
      "admin_url": "https://my-hub.admin.blendr.io/widgets/cecc8b90-9432-11ea-9763-69db98132c2b",
      "icon": "/img/blendricon.png",
      "icon2": null,
      "icon3": null,
      "created_at": "2020-05-12T09:27:32.000000Z",
      "updated_at": "2020-05-12T09:27:32.000000Z",
      "last_run_at": null
    }
  ],
  "created_at": "2020-05-12T09:27:32.000000Z",
  "updated_at": "2020-05-12T09:27:32.000000Z",
  "additional": {
    "message": "This datasource requires user interaction to complete the setup.",
    "link": "https:\/\/admin.blendr.io\/datasources\/fe35b720-0d53-11eb-b488-6f85f7dcde48\/link?jwt=eyJ0eXAiOiJKV1QiL...dXJsIjpudWxsfQ.NzxuaD3W8fAPdkghzAeHpxmnf__ZDhfi_U9R7DscM1Q"
  }
}

400

{}