First time user here. I’m just trying to get a basic api call to create a shape for me. A ‘hello world’, so to speak.
What I have done:
1. Created document.json
2. Zipped it into a file.
3. Referenced file in Postman API request
Document is created in lucidchart, but there is nothing in it.
here is my document.json:
{
"version":1,
"title": "Hello World",
"product": "lucidchart",
"pages":
{
"id": "page1",
"title": "Main page",
"shapes": l
{
"id":"shape1",
"type":"rectangle",
"text":"hello",
"boundingBox":{
"x": 50,
"y": 30,
"w": 100,
"h": 150
} }
] }
] }
Here is my postman request:
{
"title": "stupid helloworld",
"product": "lucidchart",
"file":"C:/Users/KTE2922/Downloads/document.zip"
}
Endpoint:
https://api.lucid.app/documents
The postman response is success:
{
"documentId": "f07b9681-3cbc-4501-9605-cbe756f7f162",
"title": "stupid helloworld",
"editUrl": "https://lucid.app/lucidchart/f07b9681-3cbc-4501-9605-cbe756f7f162/edit",
"viewUrl": "https://lucid.app/lucidchart/f07b9681-3cbc-4501-9605-cbe756f7f162/view",
"version": 126,
"pageCount": 1,
"canEdit": true,
"creatorId": 147315535,
"lastModified": "2025-02-11T18:35:06Z",
"lastModifiedUserId": 147315535,
"trashed": null,
"status": "Draft",
"classification": null,
"customAttributes": <],
"customTags": "],
"parent": null,
"product": "lucidchart",
"created": "2025-02-11T18:35:06Z"
}
I feel if something went wrong, I should not get a successful response. What am I doing wrong?
I have tried researching this:
but have not found any answers. I have also tried:
- different filenames
- zipping the file different ways,
- using the .co endpoint instead of .app
How do I troubleshoot this?
Any help is appreciated.
john