Method
Parameters
The ID of the data source to retrieve (with or without dashes)
Bearer token for authentication. Overrides the client-level auth if provided.
Response
Returns aDataSourceObjectResponse or PartialDataSourceObjectResponse.
Always
"data_source"The unique identifier of the data source
The title of the data source
The description of the data source
The parent of the data source. Can be a database or another data source.
Either
"database_id" or "data_source_id"The ID of the parent database (when type is
database_id)The ID of the parent data source (when type is
data_source_id)The parent of the data source’s containing database. This is typically a page, block, or workspace.
The property schema of the data source
Whether the data source is inline
Whether the data source is archived
Whether the data source is in the trash
ISO 8601 timestamp when the data source was created
ISO 8601 timestamp when the data source was last edited
The user who created the data source
The user who last edited the data source
The icon of the data source
The cover image of the data source
The Notion URL of the data source
The public URL of the data source if it is publicly accessible
Example
Error Handling
Related Methods
- dataSources.create - Create a new data source
- dataSources.update - Update a data source
- dataSources.query - Query pages from a data source