Method: dataSources.checkValidCreds

Full name: projects.dataSources.checkValidCreds

Returns true if valid credentials exist for the given data source and requesting user. Some data sources doesn't support service account, so we need to talk to them on behalf of the end user. This API just checks whether we have OAuth token for the particular user, which is a pre-requisite before user can create a transfer config.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



Required. The data source in the form: projects/{projectId}/dataSources/{dataSourceId} or projects/{projectId}/locations/{locationId}/dataSources/{dataSourceId}.

Authorization requires the following IAM permission on the specified resource name:

  • bigquery.transfers.get

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of CheckValidCredsResponse.

Authorization Scopes

Requires the following OAuth scope:


For more information, see the Authentication Overview.