PDF Generator API allows you easily generate transactional PDF documents and reduce the development and support costs by enabling your users to create and manage their document templates using a browser-based drag-and-drop document editor.
First, get PDF Generator credentials
Log in to your PDF Generator account
Click "Settings" and copy your "API key" and "Secret" to a text editor
Lastly, create a PDF Generator credential in Tines
You will need to create:
One Resource: "PDF Generator username"
Two Credentials:
Text type: "PDF Generator API key"
JWT type: "PDF Generator"
Resource
Login to your Tines tenant
Navigate to the team that will be using the API and click "Resource"
Click "+ New Resource"
Input the values for the PDF Generator resource
Name: PDF Generator username
Description: Optional
Builder: Your PDF Generator username
Optional
Access: What other teams can also use the resource
Click "Save resource"
Text type
Navigate to the team that will be using the API and click "Credentials"
Click "+ New Credential" and select "Text"
Input the values for the PDF Generator credential
Name: PDF Generator API key
Description: Optional
Value: Your PDF Generator API key
Optional
Domains: Ensure this credential can only be used when making HTTP requests to specific domains.
Access: What other teams can also use the API
Click "Save"
JWT type
Log in to your Tines tenant
Navigate to the team that will be using the API and click "Credential"
Click "+ New Credential" and select "JWT"
Input the values for the PDF Generator credential
Name: PDF Generator
Description: Optional
Algorithm: HS256
Payload: Copy the below object and paste into the "Plain code" section:
Replace
<unix_epoch_time>
with the unix epoch time timestamp of how long the the token is valid for.It is highly recommended to set the
exp
timestamp for a short period, i.e. a matter of seconds, that way if a token is intercepted or shared, the token will only be valid for a short period of time.
{
"iss": "<<CREDENTIAL.pdf_generator_api_key>>",
"sub": "<<RESOURCE.pdf_generator_username>>",
"exp": "<unix_epoch_time>"
}Tick "Auto generate 'iat' (Issued At) & 'exp' (Expiration Time) claims"
HMAC Secret: Your Secret
Optional
Domains: Ensure this credential can only be used when making HTTP requests to specific domains
Access: What other teams can also use the API
Click "Save"
Your credential should look like the following:
For more on creating credentials in Tines, click here.
You can find a selection of PDF Generator stories in the story library