Skip to main content
POST
/
pdf
/
render
Generate a PDF
curl --request POST \
  --url https://api.pictify.io/pdf/render \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "templateUid": "<string>",
  "variables": {},
  "options": {
    "preset": "A4",
    "customSize": {
      "width": 123,
      "height": 123
    },
    "margins": {
      "top": 123,
      "bottom": 123,
      "left": 123,
      "right": 123
    },
    "title": "<string>"
  }
}
'
{
  "success": true,
  "url": "<string>",
  "userStorageUrl": "<string>",
  "pageCount": 123,
  "preset": "<string>",
  "pageSize": {
    "width": 123,
    "height": 123
  }
}

Authorizations

Authorization
string
header
required

API key obtained from the Pictify dashboard

Body

application/json
templateUid
string
required

Template UID

variables
object
options
object

Response

200 - application/json

PDF generated

success
boolean
url
string<uri>
userStorageUrl
string<uri>
pageCount
integer
preset
string
pageSize
object