How to get unpublished components from rest API

the rest api returns a list of published components according to docs https://www.figma.com/developers/api#get-files-endpoint

This list does not include unpublished components. Is there a way to include them in the response?

The endpoint you reference returns all components in the file.