Skip to main content
July 23, 2025
Solved

How import a diagram into Lucidchart using json import

  • July 23, 2025
  • 12 replies
  • 940 views

I’m trying to take advantage of the json import feature to import a diagram into lucidchart. Currently this fails with the following error:

'{"code":"badRequest","message":"Bad or malformed request","requestId":"0d3f44c4704c255b","details":{"error":"Count: 1, message: \'version\' is undefined on object. Available keys are \'id\', \'title\', \'product\', \'pages\', \'data\'","import_error_code":"invalid_file"}}'

I have been able to import using the example files provided in the sample-lucid-rest-applications/standard-imports repo. 

 

My understanding is that json documents can be imported as long as they in a folder and called document.json. I’ve done this, put this into a zip file and tried to submit but with the above error. 

 

Any advice? I’m currently on a mac if that helps. 

Best answer by vscala

The diagram I am trying to import is an export. I did a get document contents to generate my json and removed the id/parent fields from it before upload. 

Thanks for the additional context, Markeen. Do you have a 'version' field defined? If not, please try adding this line to your JSON and let us know if you get any additional errors.

"version": 1,

 

Comments

August 19, 2025

Hello ​@Richard Udell , you mentioned an in-app import menu for json files; can you tell me where to find that please? I can’t seem to find it.

Richard Udell
Lucid support team
August 19, 2025

Hey ​@Paul281! Happy to clarify, and my apologies if my wording was confusing before.

I mentioned the in-app menu to highlight that JSON import is only available via our API. You won't find a button for it within Lucidchart itself.

The closest in-app alternative would be our CSV import for Process Diagrams. You can find the guide for that in our Help Center if you're interested.

Hope this helps!