API keeps returning: status":500,"err":"Internal error, please try again later

Trying to get a pdf representation of a Figma page. For that I am using the CURL call suggested in the API documentation:

curl -H 'X-FIGMA-TOKEN: ###here my private token###' 'https://api.figma.com/v1/images/####here the file ID#####?ids=0:1&format=pdf'

the API keeps returning every time
{"status":500,"err":"Internal error, please try again later"}

Can anyone provide further help?

You can’t export pages or documents this way; the ids passed to the /images/:file endpoint should correspond to figma nodes that sit inside of an existing Figma page (text, frames, vectors, etc).

same error on
curl -sH ‘X-Figma-Token: figd_7S…’ ‘https://api.figma.com/v1/files/tCTaL…’ > t.txt