Skip to main content

I would like to obtain a document created through the Legacy API as a PNG image, but the following error occurred. Is the Legacy API still available?

 

レスポンスを受信しました。ステータス=HTTP/1.1 404 Not Found]
response header -------------------------------
Content-Type: text/html; charset=utf-8
Content-Length: 1203
Vary: Origin
x-lucid-flow-id: c4672f9a24a7a665
Date: Tue, 17 Jun 2025 08:46:34 GMT
Connection: keep-alive
Alt-Svc: h3=":443"; ma=93600
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
-----------------------------------------------
response body ---------------------------------
<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Not Found</title>
        
<style  type="text/css">
            html, body, pre {
                margin: 0;
                padding: 0;
                font-family: Monaco, 'Lucida Console', monospace;
                background: #ECECEC;
            }
            h1 {
                margin: 0;
                background: #AD632A;
                padding: 20px 45px;
                color: #fff;
                text-shadow: 1px 1px 1px rgba(0,0,0,.3);
                border-bottom: 1px solid #9F5805;
                font-size: 28px;
            }
            p#detail {
                margin: 0;
                padding: 15px 45px;
                background: #F6A960;
                border-top: 4px solid #D29052;
                color: #733512;
                text-shadow: 1px 1px 1px rgba(255,255,255,.3);
                font-size: 14px;
                border-bottom: 1px solid #BA7F5B;
            }
        </style>
    </head>
    <body>
        <h1>Not Found</h1>

        <p id="detail">
            For request 'GET /publicapi/documents/image/6723dbec-c92f-4f31-b950-86a16a742b3b/1/128/1'
        </p>

    </body>
</html>

Hi ​@shu 

The Lucidchart Legacy API is no longer supported, and all integrations should migrate to the new Lucidchart REST API for continued functionality, including exporting documents as PNG files.

To learn more - Legacy API Auth (Graph API) | Community

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


I apologize for not being able to provide a correct explanation. To be precise, I would like to retrieve a document created with the Lucidchart REST API as a PNG image. However, I can only find the legacy API for obtaining documents as PNG images. Could you please let me know how to export a document as a PNG image using the Lucidchart REST API?

I appreciate your help, and I apologize for the inconvenience during your busy schedule.


Hi ​@shu 

The recommended next course of action is.

  1. Please update your integration to utilize the REST API export endpoint. Authenticate your requests using OAuth2.
  2. To receive a PNG image, include the Accept: image/png header in your request.

To learn more

Hope this helps - Happy to help further!!


Thank you for your response.
Thanks to you, I was able to execute it with the REST API.

However, the output I received seems to be raw binary data rather than a PNG image URL. Is it possible to output it in another format (for example, as a PNG image URL) instead of raw binary data?
 

Output:

 


I apologize for the repeated messages. I have resolved the issue mentioned above.

Thank you so much!

 


Reply