Is there a way to access a terrain's basemap?

Is there a way to access it at runtime to use as a texture for other things?

maybe Terrain.terrainData was useful

Terrain Data can stores heightmaps, terrain textures, detail meshes and trees.