GET
/
documents
/
{document_id}
/
download_url
JavaScript
import Morphik from 'morphik';

const client = new Morphik({
  apiKey: 'My API Key',
});

const response = await client.documents.getDownloadURL('document_id');

console.log(response.download_url);
{
  "download_url": "<string>",
  "expires_in": 123
}

Headers

authorization
string

Path Parameters

document_id
string
required

Query Parameters

expires_in
integer
default:3600

URL expiration time in seconds

Response

200
application/json

Successful Response

Response for document download URL endpoint