Preview Generate File API

You use the Preview Generate File API to Generate Preview of the document:

  1. Create a request and generate preview of the file:
    curl -X GET --header 'Content-Type: application/json' ''
    $targetUrl       = '';
    $ch              = curl_init();
    curl_setopt($ch, CURLOPT_URL,$targetUrl);
    curl_setopt($ch, CURLOPT_POST,0);
    $response        = curl_exec($ch);
    // Decode the json object you retrieved when you ran the request.
    $decodedResponse = json_decode($response, true);
    import urllib
    params = {
        'api_key': 'API_KEY'
        'document_id': 'DOCUMENT_ID'
    url = '' + urllib.urlencode(params)
    response = urllib.urlopen(url)
    require "net/http"
    require "uri"
    uri = URI.parse("")
    response = Net::HTTP.get(uri)
    puts response
      "status": "success",
      "url": "http:\\\member\my-documents\show-file\preview.png",