It seems that there is a limit of document size when trying to retrieve the content of a document with the endpoint
https://api.lucid.co/documents/{YourDocumentId}/contents
The limit is about 40000 lines in the json result.
If this limit is exceeded the endpoint returns an error code of 400 for bad request which is not a good response as the endpoint is successfull when the same document contains less elements (block, lines, groups, ...)
Any explanation?
Best regards.