Generating via api

Generating via api

Request

curl https://gpdf.io/api/files \

-k -X POST \

-H "Accept: application/json" \

-H "Content-type: application/json" \

-H "gpdf-access-token: eyJhbGciOiJIUz..." \

-d '{"slug": "your_app_slug", "query": [ {"name":"app_variable_name", "value":"app_variable_value" }]}'

Response

{"status":200,"success":true,"message":{

"id":"605f0aca-419a-482d-8eb7-7cbc906787e2",

"app_id":"d6d46696-d4af-446e-80e2-12d17cd1638a",

"file_hash":"8beadb215df52335a58e177a37ebe40b",

"pdf_parameters":{

"title":"Test Title",

"password":"",

"dpi":300,

"page_width":0,

"page_height":0,

"orientation":"portrait",

"page_size":"A4"

},

"created_at":"2020-02-10 22:02:12",

"updated_at":"2020-02-10 22:02:12"

}}

Get File

https://gpdf.io/api/files/{id}?hash={file_hash}