Determining Jam vs Design file from the REST API

Is there a way to determine if a file is a FigJam or Figma Design file from the API. I tried several things and without success.
Seems like both of them are using the same structure under the hood, just opened with a different figma “editor”, i.e. “design” vs “whiteboard”.

1 Like

I have a similar need, is there a way to determine this via the REST API?

It seems at the moment it is impossible to get the editor type via the Rest API, but it is already available for the Figma Plugins API: Version 1, Update 31 · Figma Developers

Now, with a get file, the editor type will be indicated at the end of the object. For example, "editorType":"figma" or "editorType":"figjam".