Basic

Retrieve data source

Changed on

Retrieve detailed information about a specific data source in HubSpot Data Studio. This endpoint provides details such as the data source's name, type, creation date, and the status of the last data ingestion. It is useful for developers who need to access and manage data sources programmatically.

get/data-studio/data-source/2026-09/{datasourceId}

Request

  • Base URL
    https://api.hubapi.com
  • URL
    https://api.hubapi.com/data-studio/data-source/2026-09/{datasourceId}
  • Auth
    OAuth 2
    Authorization code: https://app.hubspot.com/oauth/authorize
    Token URL: https://api.hubapi.com/oauth/v1/token scopes: data_integration.data_source.file.read

Path parameters

datasourceIdinteger required

The ID of the datasource.

Response

successful operation

createdAtstring required

The creation date and time of the data source, represented as a string.

datasourceIdstring required

The unique identifier for the data source, represented as a 64-bit integer.

datasourceNamestring required

The name of the data source, represented as a string.

datasourceType'FILE' | 'JSON' required

The type of the data source, which is a string with a valid value of 'FILE'.

lastIngestionStatus'FAILED' | 'IN_PROGRESS' | 'SUCCESSFUL' required

The status of the last data ingestion process, represented as a string. Valid values include 'SUCCESSFUL', 'IN_PROGRESS', and 'FAILED'.

Changes

  • 2026-0948170f54a9e5Revision changes
    • info

      the security scope data_integration.data_source.file.read was added to the endpoint's security scheme oauth2

    • info

      the security scope data-integration-json-datasource-read was removed from the endpoint's security scheme oauth2