# Html2pdf.app API - Help to get PDF file generated by API call and save to database

**URL:** <https://forum.bubble.io/t/html2pdf-app-api-help-to-get-pdf-file-generated-by-api-call-and-save-to-database/129635>\
**Category:** APIs\
**Created:** [January 9, 2021, 2:31am UTC](https://forum.bubble.io/t/html2pdf-app-api-help-to-get-pdf-file-generated-by-api-call-and-save-to-database/129635 "2021-01-09T02:31:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jizreel\_alencar](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jizreel_alencar/32/76311_2.png) [@jizreel\_alencar](https://forum.bubble.io/u/jizreel_alencar)\
**Post date:** [January 9, 2021, 2:31am UTC](https://forum.bubble.io/t/html2pdf-app-api-help-to-get-pdf-file-generated-by-api-call-and-save-to-database/129635/1 "2021-01-09T02:31:05Z")

</div>

Hi, I’ve already learned a lot developing with Bubble, but I still find it difficult working with APIs.

I’m using API from [https://html2pdf.app/](https://html2pdf.app/) to generate a PDF file from a page of my app, I set up the call to generate the file successfully, but I don’t know how to get the file and save to my database.

The instruction from the site is: “We will send generated pdf document (encoded with base64) to your provided callback URL in this structure: \*{“document”: “…”}”

So, I need to set up an end point (the callback URL) to receive the generated file and save to the database, but I have no idea on how to do that. help please!
