Skip to main content
Solved

invalidImportType error

  • February 18, 2025
  • 5 replies
  • 75 views

Forum|alt.badge.img+5

I’m trying to create a new document in lucidchart by importing a .lucid file.  I am using the demo.lucid file.  I have also tried creating my own .lucid file.  I cannot figure out what I am doing wrong.  Everything seems to match the instructions at https://lucid.readme.io/reference/createorcopyorimportdocument

 The error :
    "code": "invalidImportType",

    "message": "Importing the provided file type is not supported"

Here is my Curl:

curl --location 'https://api.lucid.co/documents' \
--header 'authorization: Bearer oauth2-...8sKF' \
--header 'lucid-api-version: 1' \
--form 'product="lucidchart"' \
--form 'title="helloform"' \
--form '=@"/C:/Users/USER/Downloads/demo (1).lucid"'

Here is a screenshot
 


Any advice is appreciated

Best answer by johnktejik

figured it out.  There’s a hidden option in postman.  Enable that, then set the file (NOT the header) content-type to vnd.lucid.whatever.
 

 

Comments

Humas1985
Lucid Legend Level 10
Forum|alt.badge.img+24
  • Lucid Legend Level 10
  • February 18, 2025

Hi ​@johnktejik 

“.lucid files” are not compatible with the Lucidchart API's import functionality. This API only supports importing external file formats, such as Visio (.vsdx, .vdx), Gliffy (.gxml, .gliffy), and OmniGraffle (.graffle, .graffle.zip), but does not accept native .lucid files.

Can you convert your diagram to a supported format, like .vsdx, before uploading it.

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards


Forum|alt.badge.img+5
  • Author
  • Answer
  • February 18, 2025

figured it out.  There’s a hidden option in postman.  Enable that, then set the file (NOT the header) content-type to vnd.lucid.whatever.
 

 


Forum|alt.badge.img+5
  • Author
  • February 18, 2025

Hi ​@johnktejik 

“.lucid files” are not compatible with the Lucidchart API's import functionality. This API only supports importing external file formats, such as Visio (.vsdx, .vdx), Gliffy (.gxml, .gliffy), and OmniGraffle (.graffle, .graffle.zip), but does not accept native .lucid files.

Can you convert your diagram to a supported format, like .vsdx, before uploading it.

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards

that is just not true


Forum|alt.badge.img

It also took me a while to find the in-line Content-Type in Postman. Unfortunately I still get “invalidImportType”

 

The developer documents clearly state .lucid files are valid for Standard Import. I’d love to get some clarity .


Michael B
Forum|alt.badge.img+4
  • Lucid product team
  • December 19, 2025

Here is a thread of a similar scenario that I think might have your fix.