Document Access
Create Asynchronously
Changed onStarts an asynchronous import of a document file. This endpoint will immediately reserve a document ID, but the document is not necessarily created nor populated until the job has succeeded.
The uploaded file must not exceed 50 MB.
Synchronous and asynchronous file imports share a per-account rate limit.
post/v1/documents/import/jobs
Request
- Base URLhttps://api.lucid.co
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://lucid.app/oauth2/authorizeToken URLhttps://api.lucid.co/oauth2/tokenScopeslucidchart.document.content, lucidchart.document.app.folder, lucidspark.document.content, lucidspark.document.app.folder
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Idempotency-Keystring
Distinguishing key for duplicate job requests. Use a different value if intending to run the same job twice.
Request body multipart/form-data
Example request
{
"product": "lucidchart"
}Response
OK. Returns the queued or existing import job and the ID reserved for the imported document.
Example response
{
"jobId": "jobr_2f5e5b82-6f1d-4c9f-932a-14e43cf30454"
}Changes
- info
endpoint added
- info