Create a managed PDF preview link
POST
/v1/pdfs/{pdfId}/preview
const url = 'https://api.presscloud.example/v1/pdfs/example/preview';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"expiresInSeconds":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.presscloud.example/v1/pdfs/example/preview \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "expiresInSeconds": 1 }'Returns a short-lived signed preview URL for a managed PDF asset.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” pdfId
required
string
Request Body
Section titled “Request Body ” Media type application/json
object
expiresInSeconds
Optional signed URL lifetime in seconds. When omitted, the default lifetime is 10 minutes.
integer
Example generated
{ "expiresInSeconds": 1}Responses
Section titled “ Responses ”Managed PDF preview link.
Media type application/json
object
access
required
object
url
required
string format: uri
expiresAt
required
Unix epoch time in milliseconds. The signed URL expires 10 minutes after the webhook delivery attempt is generated.
integer
Example generated
{ "access": { "url": "https://example.com", "expiresAt": 1 }}Invalid request payload or parameters.
Media type application/json
object
error
required
string
message
required
string
Example generated
{ "error": "example", "message": "example"}Requested resource was not found.
Media type application/json
object
error
required
string
message
required
string
Example generated
{ "error": "example", "message": "example"}Service or provider configuration is not ready for the requested operation.
Media type application/json
object
error
required
string
message
required
string
Example generated
{ "error": "example", "message": "example"}