pdf_generator_api_client 8.0.31 → 8.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +82 -65
- data/docs/AssetsApi.md +5 -5
- data/docs/AttachmentsParamInner.md +20 -0
- data/docs/CallbackParam.md +1 -1
- data/docs/ConversionApi.md +15 -15
- data/docs/ConvertHTML2PDFRequest.md +2 -2
- data/docs/ConvertURL2PDFRequest.md +2 -2
- data/docs/CreateEInvoiceRequest.md +2 -2
- data/docs/CreateFacturXEInvoiceRequestTemplate.md +2 -2
- data/docs/{TemplateParamId.md → CreateFacturXEInvoiceRequestTemplateId.md} +4 -4
- data/docs/CreateWorkspaceRequest.md +1 -1
- data/docs/CreateXRechnungEInvoiceRequest.md +22 -0
- data/docs/DocumentsApi.md +52 -48
- data/docs/EInvoiceType.md +15 -0
- data/docs/EInvoicesApi.md +17 -22
- data/docs/EncryptAndDecryptUrl.md +1 -1
- data/docs/Error.md +18 -0
- data/docs/Font.md +26 -0
- data/docs/FontsApi.md +79 -0
- data/docs/FormActionSendSendDocument.md +1 -1
- data/docs/FormConfigurationImport.md +2 -2
- data/docs/FormFieldsUrl.md +1 -1
- data/docs/FormFillUrl.md +1 -1
- data/docs/FormsApi.md +32 -32
- data/docs/GenerateDocumentAsynchronousRequest.md +7 -1
- data/docs/GenerateDocumentBatchAsynchronousRequest.md +8 -2
- data/docs/GenerateDocumentBatchRequest.md +7 -1
- data/docs/GenerateDocumentRequest.md +6 -0
- data/docs/GenerateQRCode200Response.md +20 -0
- data/docs/{GenerateQRCode201ResponseMeta.md → GenerateQRCode200ResponseMeta.md} +2 -2
- data/docs/GenerateQRCodeRequest.md +3 -3
- data/docs/{InlineObject23.md → GetEInvoiceSchema200Response.md} +3 -3
- data/docs/GetFonts200Response.md +18 -0
- data/docs/GetFormSchema200Response.md +18 -0
- data/docs/GetStatus200Response.md +2 -0
- data/docs/GetTemplateSchema200Response.md +18 -0
- data/docs/InlineObject10.md +2 -2
- data/docs/InlineObject10Meta.md +10 -8
- data/docs/InlineObject11.md +2 -2
- data/docs/InlineObject11Meta.md +5 -3
- data/docs/InlineObject11MetaStats.md +22 -0
- data/docs/InlineObject12.md +2 -4
- data/docs/InlineObject12Response.md +20 -0
- data/docs/InlineObject13.md +2 -4
- data/docs/{InlineObject14ResponseValue.md → InlineObject13ResponseValue.md} +4 -4
- data/docs/{InlineObject14ResponseValueDefault.md → InlineObject13ResponseValueDefault.md} +4 -4
- data/docs/{InlineObject14ResponseValueValue.md → InlineObject13ResponseValueValue.md} +4 -4
- data/docs/InlineObject14.md +4 -2
- data/docs/InlineObject15.md +2 -4
- data/docs/InlineObject16.md +1 -1
- data/docs/InlineObject17.md +1 -1
- data/docs/InlineObject18.md +4 -2
- data/docs/InlineObject19.md +2 -4
- data/docs/InlineObject20.md +4 -2
- data/docs/{InlineObject21Meta.md → InlineObject20Meta.md} +2 -2
- data/docs/InlineObject21.md +2 -4
- data/docs/InlineObject22.md +2 -2
- data/docs/{InlineObject23Response.md → InlineObject22Response.md} +3 -3
- data/docs/InlineObject7.md +1 -1
- data/docs/InlineObject8.md +4 -2
- data/docs/{InlineObject12Meta.md → InlineObject8Meta.md} +3 -5
- data/docs/InlineObject9.md +2 -2
- data/docs/InlineObject9Meta.md +7 -9
- data/docs/MakeAccessibleUrl.md +1 -1
- data/docs/MetadataParam.md +1 -1
- data/docs/MiscApi.md +1 -6
- data/docs/OpenEditorRequestData.md +7 -5
- data/docs/OptimizeUrl.md +1 -1
- data/docs/ServicesApi.md +28 -28
- data/docs/StoreDocumentRequest.md +1 -1
- data/docs/Template.md +3 -1
- data/docs/TemplateDefinition.md +14 -6
- data/docs/TemplateDefinitionNewLayout.md +5 -5
- data/docs/TemplateDefinitionNewLayoutMargins.md +4 -4
- data/docs/TemplateDefinitionNewPagesInner.md +3 -3
- data/docs/TemplateDefinitionNewPagesInnerLayout.md +49 -0
- data/docs/TemplateDefinitionUpdate.md +34 -0
- data/docs/TemplateLibraryApi.md +4 -4
- data/docs/TemplateParam.md +1 -1
- data/docs/TemplateParamData.md +7 -5
- data/docs/TemplateVersion.md +4 -2
- data/docs/TemplateVersionsApi.md +4 -4
- data/docs/TemplatesApi.md +38 -42
- data/docs/ValidationError.md +20 -0
- data/docs/WatermarkFileUrl.md +24 -0
- data/docs/Workspace.md +4 -0
- data/docs/WorkspacesApi.md +21 -15
- data/lib/pdf_generator_api_client/api/assets_api.rb +6 -6
- data/lib/pdf_generator_api_client/api/conversion_api.rb +12 -12
- data/lib/pdf_generator_api_client/api/documents_api.rb +45 -35
- data/lib/pdf_generator_api_client/api/e_invoices_api.rb +20 -20
- data/lib/pdf_generator_api_client/api/fonts_api.rb +86 -0
- data/lib/pdf_generator_api_client/api/forms_api.rb +26 -26
- data/lib/pdf_generator_api_client/api/misc_api.rb +3 -3
- data/lib/pdf_generator_api_client/api/services_api.rb +23 -23
- data/lib/pdf_generator_api_client/api/template_library_api.rb +5 -5
- data/lib/pdf_generator_api_client/api/template_versions_api.rb +5 -5
- data/lib/pdf_generator_api_client/api/templates_api.rb +50 -33
- data/lib/pdf_generator_api_client/api/workspaces_api.rb +42 -14
- data/lib/pdf_generator_api_client/api_client.rb +2 -2
- data/lib/pdf_generator_api_client/api_error.rb +2 -2
- data/lib/pdf_generator_api_client/configuration.rb +2 -2
- data/lib/pdf_generator_api_client/models/accessibility_option.rb +2 -2
- data/lib/pdf_generator_api_client/models/add_watermark_request.rb +2 -2
- data/lib/pdf_generator_api_client/models/async_output_param.rb +2 -2
- data/lib/pdf_generator_api_client/models/{inline_object7_response.rb → attachments_param_inner.rb} +66 -12
- data/lib/pdf_generator_api_client/models/callback_param.rb +31 -3
- data/lib/pdf_generator_api_client/models/convert_html2_pdf_request.rb +39 -3
- data/lib/pdf_generator_api_client/models/convert_pdf2_image_request.rb +2 -2
- data/lib/pdf_generator_api_client/models/convert_url2_pdf_request.rb +51 -4
- data/lib/pdf_generator_api_client/models/copy_template_request.rb +21 -2
- data/lib/pdf_generator_api_client/models/create_e_invoice_request.rb +3 -16
- data/lib/pdf_generator_api_client/models/create_factur_xe_invoice_request.rb +21 -2
- data/lib/pdf_generator_api_client/models/create_factur_xe_invoice_request_template.rb +38 -5
- data/lib/pdf_generator_api_client/models/{template_param_id.rb → create_factur_xe_invoice_request_template_id.rb} +3 -3
- data/lib/pdf_generator_api_client/models/create_workspace_request.rb +28 -2
- data/lib/pdf_generator_api_client/models/{inline_object25.rb → create_x_rechnung_e_invoice_request.rb} +74 -21
- data/lib/pdf_generator_api_client/models/document.rb +2 -2
- data/lib/pdf_generator_api_client/models/document_action.rb +4 -4
- data/lib/pdf_generator_api_client/models/document_signature.rb +2 -2
- data/lib/pdf_generator_api_client/models/document_signatures.rb +2 -2
- data/lib/pdf_generator_api_client/models/document_user.rb +2 -2
- data/lib/pdf_generator_api_client/models/document_version.rb +2 -2
- data/lib/pdf_generator_api_client/models/e_invoice_type.rb +48 -0
- data/lib/pdf_generator_api_client/models/encrypt_and_decrypt_base64.rb +49 -2
- data/lib/pdf_generator_api_client/models/encrypt_and_decrypt_url.rb +49 -2
- data/lib/pdf_generator_api_client/models/encrypt_document_request.rb +2 -2
- data/lib/pdf_generator_api_client/models/{inline_object27.rb → error.rb} +17 -34
- data/lib/pdf_generator_api_client/models/extract_form_fields_request.rb +2 -2
- data/lib/pdf_generator_api_client/models/fill_form_fields_request.rb +2 -2
- data/lib/pdf_generator_api_client/models/{inline_object24.rb → font.rb} +115 -22
- data/lib/pdf_generator_api_client/models/form_action_download.rb +3 -3
- data/lib/pdf_generator_api_client/models/form_action_send.rb +3 -3
- data/lib/pdf_generator_api_client/models/form_action_send_send_document.rb +3 -3
- data/lib/pdf_generator_api_client/models/form_action_send_send_document_headers_inner.rb +2 -2
- data/lib/pdf_generator_api_client/models/form_action_sign.rb +3 -3
- data/lib/pdf_generator_api_client/models/form_action_store.rb +3 -3
- data/lib/pdf_generator_api_client/models/form_configuration.rb +2 -2
- data/lib/pdf_generator_api_client/models/form_configuration_import.rb +23 -9
- data/lib/pdf_generator_api_client/models/form_configuration_new.rb +2 -2
- data/lib/pdf_generator_api_client/models/form_configuration_new_actions_inner.rb +2 -2
- data/lib/pdf_generator_api_client/models/form_field.rb +2 -2
- data/lib/pdf_generator_api_client/models/form_field_options.rb +2 -2
- data/lib/pdf_generator_api_client/models/form_field_sub_rows_inner.rb +2 -2
- data/lib/pdf_generator_api_client/models/form_fields_base64.rb +2 -2
- data/lib/pdf_generator_api_client/models/form_fields_url.rb +2 -2
- data/lib/pdf_generator_api_client/models/form_fill_base64.rb +2 -2
- data/lib/pdf_generator_api_client/models/form_fill_url.rb +2 -2
- data/lib/pdf_generator_api_client/models/form_table_column.rb +2 -2
- data/lib/pdf_generator_api_client/models/format_param.rb +2 -2
- data/lib/pdf_generator_api_client/models/generate_document_asynchronous_request.rb +94 -3
- data/lib/pdf_generator_api_client/models/generate_document_batch_asynchronous_request.rb +111 -3
- data/lib/pdf_generator_api_client/models/generate_document_batch_request.rb +94 -3
- data/lib/pdf_generator_api_client/models/generate_document_request.rb +77 -3
- data/lib/pdf_generator_api_client/models/{generate_qr_code201_response.rb → generate_qr_code200_response.rb} +7 -7
- data/lib/pdf_generator_api_client/models/{generate_qr_code201_response_meta.rb → generate_qr_code200_response_meta.rb} +5 -5
- data/lib/pdf_generator_api_client/models/generate_qr_code_request.rb +65 -5
- data/lib/pdf_generator_api_client/models/generate_viewer_url200_response.rb +2 -2
- data/lib/pdf_generator_api_client/models/generate_viewer_url200_response_meta.rb +2 -2
- data/lib/pdf_generator_api_client/models/generate_viewer_url_request.rb +2 -2
- data/lib/pdf_generator_api_client/models/{data_batch_inner.rb → get_e_invoice_schema200_response.rb} +30 -23
- data/lib/pdf_generator_api_client/models/{inline_object23.rb → get_fonts200_response.rb} +9 -7
- data/lib/pdf_generator_api_client/models/{template_definition_editor.rb → get_form_schema200_response.rb} +30 -13
- data/lib/pdf_generator_api_client/models/get_status200_response.rb +14 -3
- data/lib/pdf_generator_api_client/models/get_template_library200_response.rb +2 -2
- data/lib/pdf_generator_api_client/models/{template_definition_pages_inner.rb → get_template_schema200_response.rb} +30 -43
- data/lib/pdf_generator_api_client/models/import_form_base64.rb +2 -2
- data/lib/pdf_generator_api_client/models/import_form_request.rb +2 -2
- data/lib/pdf_generator_api_client/models/import_form_url.rb +2 -2
- data/lib/pdf_generator_api_client/models/import_template_base64.rb +2 -2
- data/lib/pdf_generator_api_client/models/import_template_request.rb +2 -2
- data/lib/pdf_generator_api_client/models/import_template_url.rb +2 -2
- data/lib/pdf_generator_api_client/models/import_template_url_template.rb +2 -2
- data/lib/pdf_generator_api_client/models/inline_object.rb +2 -2
- data/lib/pdf_generator_api_client/models/inline_object1.rb +2 -2
- data/lib/pdf_generator_api_client/models/inline_object10.rb +5 -7
- data/lib/pdf_generator_api_client/models/inline_object10_meta.rb +20 -10
- data/lib/pdf_generator_api_client/models/inline_object11.rb +3 -3
- data/lib/pdf_generator_api_client/models/inline_object11_meta.rb +13 -4
- data/lib/pdf_generator_api_client/models/{inline_object12_meta_stats.rb → inline_object11_meta_stats.rb} +21 -11
- data/lib/pdf_generator_api_client/models/inline_object12.rb +23 -16
- data/lib/pdf_generator_api_client/models/{inline_object26.rb → inline_object12_response.rb} +55 -21
- data/lib/pdf_generator_api_client/models/inline_object13.rb +12 -54
- data/lib/pdf_generator_api_client/models/{inline_object14_response_value.rb → inline_object13_response_value.rb} +7 -7
- data/lib/pdf_generator_api_client/models/{inline_object14_response_value_default.rb → inline_object13_response_value_default.rb} +3 -3
- data/lib/pdf_generator_api_client/models/{inline_object14_response_value_value.rb → inline_object13_response_value_value.rb} +3 -3
- data/lib/pdf_generator_api_client/models/inline_object14.rb +16 -8
- data/lib/pdf_generator_api_client/models/inline_object15.rb +6 -15
- data/lib/pdf_generator_api_client/models/inline_object16.rb +4 -6
- data/lib/pdf_generator_api_client/models/inline_object17.rb +6 -4
- data/lib/pdf_generator_api_client/models/inline_object18.rb +16 -9
- data/lib/pdf_generator_api_client/models/inline_object19.rb +6 -15
- data/lib/pdf_generator_api_client/models/inline_object1_response.rb +2 -2
- data/lib/pdf_generator_api_client/models/inline_object2.rb +2 -2
- data/lib/pdf_generator_api_client/models/inline_object20.rb +16 -6
- data/lib/pdf_generator_api_client/models/{inline_object21_meta.rb → inline_object20_meta.rb} +5 -5
- data/lib/pdf_generator_api_client/models/inline_object21.rb +7 -16
- data/lib/pdf_generator_api_client/models/inline_object22.rb +3 -4
- data/lib/pdf_generator_api_client/models/{inline_object23_response.rb → inline_object22_response.rb} +5 -5
- data/lib/pdf_generator_api_client/models/inline_object3.rb +2 -2
- data/lib/pdf_generator_api_client/models/inline_object4.rb +2 -2
- data/lib/pdf_generator_api_client/models/inline_object5.rb +2 -2
- data/lib/pdf_generator_api_client/models/inline_object6.rb +2 -2
- data/lib/pdf_generator_api_client/models/inline_object7.rb +3 -3
- data/lib/pdf_generator_api_client/models/inline_object8.rb +16 -6
- data/lib/pdf_generator_api_client/models/{inline_object12_meta.rb → inline_object8_meta.rb} +7 -16
- data/lib/pdf_generator_api_client/models/inline_object9.rb +7 -5
- data/lib/pdf_generator_api_client/models/inline_object9_meta.rb +10 -20
- data/lib/pdf_generator_api_client/models/inline_object_meta.rb +2 -2
- data/lib/pdf_generator_api_client/models/key_field_param.rb +2 -2
- data/lib/pdf_generator_api_client/models/make_accessible_base64.rb +2 -2
- data/lib/pdf_generator_api_client/models/make_accessible_request.rb +2 -2
- data/lib/pdf_generator_api_client/models/make_accessible_url.rb +2 -2
- data/lib/pdf_generator_api_client/models/metadata_param.rb +22 -3
- data/lib/pdf_generator_api_client/models/open_editor_request.rb +4 -4
- data/lib/pdf_generator_api_client/models/open_editor_request_data.rb +6 -5
- data/lib/pdf_generator_api_client/models/optimize_base64.rb +2 -2
- data/lib/pdf_generator_api_client/models/optimize_document_request.rb +2 -2
- data/lib/pdf_generator_api_client/models/optimize_url.rb +2 -2
- data/lib/pdf_generator_api_client/models/output_param.rb +2 -2
- data/lib/pdf_generator_api_client/models/pagination_meta.rb +2 -2
- data/lib/pdf_generator_api_client/models/prefill_param.rb +2 -2
- data/lib/pdf_generator_api_client/models/promote_template_version200_response.rb +2 -2
- data/lib/pdf_generator_api_client/models/public_template_library_item.rb +2 -2
- data/lib/pdf_generator_api_client/models/status_param.rb +2 -2
- data/lib/pdf_generator_api_client/models/store_document_request.rb +22 -5
- data/lib/pdf_generator_api_client/models/template.rb +16 -6
- data/lib/pdf_generator_api_client/models/template_definition.rb +93 -18
- data/lib/pdf_generator_api_client/models/template_definition_new.rb +20 -2
- data/lib/pdf_generator_api_client/models/template_definition_new_data_settings.rb +2 -2
- data/lib/pdf_generator_api_client/models/template_definition_new_editor.rb +2 -2
- data/lib/pdf_generator_api_client/models/template_definition_new_layout.rb +38 -9
- data/lib/pdf_generator_api_client/models/template_definition_new_layout_margins.rb +75 -3
- data/lib/pdf_generator_api_client/models/template_definition_new_layout_repeat_layout.rb +4 -4
- data/lib/pdf_generator_api_client/models/template_definition_new_pages_inner.rb +5 -5
- data/{spec/models/inline_object27_spec.rb → lib/pdf_generator_api_client/models/template_definition_new_pages_inner_layout.rb} +88 -22
- data/lib/pdf_generator_api_client/models/template_definition_new_pages_inner_margins.rb +3 -2
- data/lib/pdf_generator_api_client/models/template_definition_update.rb +335 -0
- data/lib/pdf_generator_api_client/models/template_param.rb +3 -3
- data/lib/pdf_generator_api_client/models/template_param_data.rb +6 -4
- data/lib/pdf_generator_api_client/models/template_version.rb +13 -3
- data/lib/pdf_generator_api_client/models/template_version_collection.rb +2 -2
- data/lib/pdf_generator_api_client/models/template_version_collection_meta.rb +2 -2
- data/lib/pdf_generator_api_client/models/{inline_object29.rb → validation_error.rb} +28 -9
- data/lib/pdf_generator_api_client/models/watermark_base64.rb +2 -2
- data/lib/pdf_generator_api_client/models/{component.rb → watermark_file_url.rb} +77 -93
- data/lib/pdf_generator_api_client/models/watermark_file_url_watermark.rb +2 -2
- data/lib/pdf_generator_api_client/models/watermark_image.rb +2 -2
- data/lib/pdf_generator_api_client/models/watermark_image_content_base64.rb +2 -2
- data/lib/pdf_generator_api_client/models/watermark_image_content_url.rb +2 -2
- data/lib/pdf_generator_api_client/models/watermark_position.rb +2 -2
- data/lib/pdf_generator_api_client/models/watermark_text.rb +2 -2
- data/lib/pdf_generator_api_client/models/workspace.rb +23 -3
- data/lib/pdf_generator_api_client/version.rb +3 -3
- data/lib/pdf_generator_api_client.rb +27 -28
- data/pdf_generator_api_client.gemspec +2 -2
- data/spec/api/assets_api_spec.rb +3 -3
- data/spec/api/conversion_api_spec.rb +5 -5
- data/spec/api/documents_api_spec.rb +15 -13
- data/spec/api/e_invoices_api_spec.rb +6 -6
- data/spec/api/fonts_api_spec.rb +47 -0
- data/spec/api/forms_api_spec.rb +10 -10
- data/spec/api/misc_api_spec.rb +2 -2
- data/spec/api/services_api_spec.rb +9 -9
- data/spec/api/template_library_api_spec.rb +3 -3
- data/spec/api/template_versions_api_spec.rb +3 -3
- data/spec/api/templates_api_spec.rb +13 -10
- data/spec/api/workspaces_api_spec.rb +9 -5
- data/spec/models/accessibility_option_spec.rb +2 -2
- data/spec/models/add_watermark_request_spec.rb +2 -2
- data/spec/models/async_output_param_spec.rb +2 -2
- data/spec/models/attachments_param_inner_spec.rb +42 -0
- data/spec/models/callback_param_spec.rb +2 -2
- data/spec/models/convert_html2_pdf_request_spec.rb +2 -2
- data/spec/models/convert_pdf2_image_request_spec.rb +2 -2
- data/spec/models/convert_url2_pdf_request_spec.rb +2 -2
- data/spec/models/copy_template_request_spec.rb +2 -2
- data/spec/models/create_e_invoice_request_spec.rb +2 -6
- data/spec/models/create_factur_xe_invoice_request_spec.rb +2 -2
- data/spec/models/create_factur_xe_invoice_request_template_id_spec.rb +32 -0
- data/spec/models/create_factur_xe_invoice_request_template_spec.rb +2 -2
- data/spec/models/create_workspace_request_spec.rb +2 -2
- data/spec/models/create_x_rechnung_e_invoice_request_spec.rb +56 -0
- data/spec/models/document_action_spec.rb +3 -3
- data/spec/models/document_signature_spec.rb +2 -2
- data/spec/models/document_signatures_spec.rb +2 -2
- data/spec/models/document_spec.rb +2 -2
- data/spec/models/document_user_spec.rb +2 -2
- data/spec/models/document_version_spec.rb +2 -2
- data/spec/models/{data_batch_inner_spec.rb → e_invoice_type_spec.rb} +8 -20
- data/spec/models/encrypt_and_decrypt_base64_spec.rb +2 -2
- data/spec/models/encrypt_and_decrypt_url_spec.rb +2 -2
- data/spec/models/encrypt_document_request_spec.rb +2 -2
- data/spec/models/{get_template_version422_response_spec.rb → error_spec.rb} +8 -8
- data/spec/models/extract_form_fields_request_spec.rb +2 -2
- data/spec/models/fill_form_fields_request_spec.rb +2 -2
- data/spec/models/{component_spec.rb → font_spec.rb} +16 -40
- data/spec/models/form_action_download_spec.rb +2 -2
- data/spec/models/form_action_send_send_document_headers_inner_spec.rb +2 -2
- data/spec/models/form_action_send_send_document_spec.rb +2 -2
- data/spec/models/form_action_send_spec.rb +2 -2
- data/spec/models/form_action_sign_spec.rb +2 -2
- data/spec/models/form_action_store_spec.rb +2 -2
- data/spec/models/form_configuration_import_spec.rb +2 -2
- data/spec/models/form_configuration_new_actions_inner_spec.rb +2 -2
- data/spec/models/form_configuration_new_spec.rb +2 -2
- data/spec/models/form_configuration_spec.rb +2 -2
- data/spec/models/form_field_options_spec.rb +2 -2
- data/spec/models/form_field_spec.rb +2 -2
- data/spec/models/form_field_sub_rows_inner_spec.rb +2 -2
- data/spec/models/form_fields_base64_spec.rb +2 -2
- data/spec/models/form_fields_url_spec.rb +2 -2
- data/spec/models/form_fill_base64_spec.rb +2 -2
- data/spec/models/form_fill_url_spec.rb +2 -2
- data/spec/models/form_table_column_spec.rb +2 -2
- data/spec/models/format_param_spec.rb +2 -2
- data/spec/models/generate_document_asynchronous_request_spec.rb +20 -2
- data/spec/models/generate_document_batch_asynchronous_request_spec.rb +20 -2
- data/spec/models/generate_document_batch_request_spec.rb +20 -2
- data/spec/models/generate_document_request_spec.rb +20 -2
- data/spec/models/{generate_qr_code201_response_meta_spec.rb → generate_qr_code200_response_meta_spec.rb} +8 -8
- data/spec/models/{generate_qr_code201_response_spec.rb → generate_qr_code200_response_spec.rb} +8 -8
- data/spec/models/generate_qr_code_request_spec.rb +2 -2
- data/spec/models/generate_viewer_url200_response_meta_spec.rb +2 -2
- data/spec/models/generate_viewer_url200_response_spec.rb +2 -2
- data/spec/models/generate_viewer_url_request_spec.rb +2 -2
- data/spec/models/{template_definition_pages_inner_spec.rb → get_e_invoice_schema200_response_spec.rb} +9 -27
- data/spec/models/{inline_object23_spec.rb → get_fonts200_response_spec.rb} +8 -8
- data/spec/models/{template_definition_editor_spec.rb → get_form_schema200_response_spec.rb} +9 -9
- data/spec/models/get_status200_response_spec.rb +8 -2
- data/spec/models/get_template_library200_response_spec.rb +2 -2
- data/spec/models/get_template_schema200_response_spec.rb +36 -0
- data/spec/models/import_form_base64_spec.rb +2 -2
- data/spec/models/import_form_request_spec.rb +2 -2
- data/spec/models/import_form_url_spec.rb +2 -2
- data/spec/models/import_template_base64_spec.rb +2 -2
- data/spec/models/import_template_request_spec.rb +2 -2
- data/spec/models/import_template_url_spec.rb +2 -2
- data/spec/models/import_template_url_template_spec.rb +2 -2
- data/spec/models/inline_object10_meta_spec.rb +8 -2
- data/spec/models/inline_object10_spec.rb +2 -2
- data/spec/models/inline_object11_meta_spec.rb +8 -2
- data/spec/models/{inline_object12_meta_stats_spec.rb → inline_object11_meta_stats_spec.rb} +14 -8
- data/spec/models/inline_object11_spec.rb +2 -2
- data/spec/models/{inline_object25_spec.rb → inline_object12_response_spec.rb} +17 -11
- data/spec/models/inline_object12_spec.rb +2 -8
- data/spec/models/{inline_object14_response_value_default_spec.rb → inline_object13_response_value_default_spec.rb} +4 -4
- data/spec/models/{inline_object14_response_value_spec.rb → inline_object13_response_value_spec.rb} +8 -8
- data/spec/models/{inline_object14_response_value_value_spec.rb → inline_object13_response_value_value_spec.rb} +4 -4
- data/spec/models/inline_object13_spec.rb +3 -13
- data/spec/models/inline_object14_spec.rb +8 -2
- data/spec/models/inline_object15_spec.rb +2 -8
- data/spec/models/inline_object16_spec.rb +2 -2
- data/spec/models/inline_object17_spec.rb +2 -2
- data/spec/models/inline_object18_spec.rb +8 -2
- data/spec/models/inline_object19_spec.rb +2 -8
- data/spec/models/inline_object1_response_spec.rb +2 -2
- data/spec/models/inline_object1_spec.rb +2 -2
- data/spec/models/{inline_object21_meta_spec.rb → inline_object20_meta_spec.rb} +8 -8
- data/spec/models/inline_object20_spec.rb +8 -2
- data/spec/models/inline_object21_spec.rb +2 -8
- data/spec/models/{inline_object23_response_spec.rb → inline_object22_response_spec.rb} +8 -8
- data/spec/models/inline_object22_spec.rb +2 -2
- data/spec/models/inline_object2_spec.rb +2 -2
- data/spec/models/inline_object3_spec.rb +2 -2
- data/spec/models/inline_object4_spec.rb +2 -2
- data/spec/models/inline_object5_spec.rb +2 -2
- data/spec/models/inline_object6_spec.rb +2 -2
- data/spec/models/inline_object7_spec.rb +2 -2
- data/spec/models/{inline_object12_meta_spec.rb → inline_object8_meta_spec.rb} +8 -14
- data/spec/models/inline_object8_spec.rb +8 -2
- data/spec/models/inline_object9_meta_spec.rb +2 -8
- data/spec/models/inline_object9_spec.rb +2 -2
- data/spec/models/inline_object_meta_spec.rb +2 -2
- data/spec/models/inline_object_spec.rb +2 -2
- data/spec/models/key_field_param_spec.rb +2 -2
- data/spec/models/make_accessible_base64_spec.rb +2 -2
- data/spec/models/make_accessible_request_spec.rb +2 -2
- data/spec/models/make_accessible_url_spec.rb +2 -2
- data/spec/models/metadata_param_spec.rb +2 -2
- data/spec/models/open_editor_request_data_spec.rb +2 -2
- data/spec/models/open_editor_request_spec.rb +3 -3
- data/spec/models/optimize_base64_spec.rb +2 -2
- data/spec/models/optimize_document_request_spec.rb +2 -2
- data/spec/models/optimize_url_spec.rb +2 -2
- data/spec/models/output_param_spec.rb +2 -2
- data/spec/models/pagination_meta_spec.rb +2 -2
- data/spec/models/prefill_param_spec.rb +2 -2
- data/spec/models/promote_template_version200_response_spec.rb +2 -2
- data/spec/models/public_template_library_item_spec.rb +2 -2
- data/spec/models/status_param_spec.rb +2 -2
- data/spec/models/store_document_request_spec.rb +2 -2
- data/spec/models/template_definition_new_data_settings_spec.rb +2 -2
- data/spec/models/template_definition_new_editor_spec.rb +2 -2
- data/spec/models/template_definition_new_layout_margins_spec.rb +2 -2
- data/spec/models/template_definition_new_layout_repeat_layout_spec.rb +3 -3
- data/spec/models/template_definition_new_layout_spec.rb +3 -3
- data/spec/models/{template_param_id_spec.rb → template_definition_new_pages_inner_layout_spec.rb} +4 -4
- data/spec/models/template_definition_new_pages_inner_margins_spec.rb +2 -2
- data/spec/models/template_definition_new_pages_inner_spec.rb +2 -2
- data/spec/models/template_definition_new_spec.rb +2 -2
- data/spec/models/template_definition_spec.rb +32 -8
- data/spec/models/template_definition_update_spec.rb +84 -0
- data/spec/models/template_param_data_spec.rb +2 -2
- data/spec/models/template_param_spec.rb +2 -2
- data/spec/models/template_spec.rb +8 -2
- data/spec/models/template_version_collection_meta_spec.rb +2 -2
- data/spec/models/template_version_collection_spec.rb +2 -2
- data/spec/models/template_version_spec.rb +8 -2
- data/spec/models/{inline_object29_spec.rb → validation_error_spec.rb} +8 -8
- data/spec/models/watermark_base64_spec.rb +2 -2
- data/spec/models/{template_definition_data_settings_spec.rb → watermark_file_url_spec.rb} +26 -10
- data/spec/models/watermark_file_url_watermark_spec.rb +2 -2
- data/spec/models/watermark_image_content_base64_spec.rb +2 -2
- data/spec/models/watermark_image_content_url_spec.rb +2 -2
- data/spec/models/watermark_image_spec.rb +2 -2
- data/spec/models/watermark_position_spec.rb +2 -2
- data/spec/models/watermark_text_spec.rb +2 -2
- data/spec/models/workspace_spec.rb +14 -2
- data/spec/spec_helper.rb +2 -2
- metadata +217 -221
- data/docs/Component.md +0 -34
- data/docs/DataBatchInner.md +0 -20
- data/docs/GenerateQRCode201Response.md +0 -20
- data/docs/GetTemplateVersion422Response.md +0 -18
- data/docs/InlineObject12MetaStats.md +0 -20
- data/docs/InlineObject24.md +0 -18
- data/docs/InlineObject25.md +0 -18
- data/docs/InlineObject26.md +0 -18
- data/docs/InlineObject27.md +0 -18
- data/docs/InlineObject28.md +0 -18
- data/docs/InlineObject29.md +0 -20
- data/docs/InlineObject30.md +0 -18
- data/docs/InlineObject31.md +0 -18
- data/docs/InlineObject7Response.md +0 -18
- data/docs/TemplateDefinitionDataSettings.md +0 -20
- data/docs/TemplateDefinitionEditor.md +0 -18
- data/docs/TemplateDefinitionPagesInner.md +0 -24
- data/lib/pdf_generator_api_client/models/get_template_version422_response.rb +0 -220
- data/lib/pdf_generator_api_client/models/inline_object28.rb +0 -221
- data/lib/pdf_generator_api_client/models/inline_object30.rb +0 -221
- data/lib/pdf_generator_api_client/models/inline_object31.rb +0 -221
- data/lib/pdf_generator_api_client/models/template_definition_data_settings.rb +0 -234
- data/spec/models/inline_object24_spec.rb +0 -40
- data/spec/models/inline_object26_spec.rb +0 -40
- data/spec/models/inline_object28_spec.rb +0 -36
- data/spec/models/inline_object30_spec.rb +0 -36
- data/spec/models/inline_object31_spec.rb +0 -36
- data/spec/models/inline_object7_response_spec.rb +0 -36
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#PDF Generator API
|
|
3
3
|
|
|
4
|
-
## Introduction [PDF Generator API](https://pdfgeneratorapi.com) 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. The PDF Generator API features a web API architecture, allowing you to code in the language of your choice. This API supports the JSON media type, and uses UTF-8 character encoding. ## Base URL The base URL for all the API endpoints is `https://us1.pdfgeneratorapi.com/api/v4` For example * `https://us1.pdfgeneratorapi.com/api/v4/templates` * `https://us1.pdfgeneratorapi.com/api/v4/workspaces` * `https://us1.pdfgeneratorapi.com/api/v4/templates/123123` ## Editor PDF Generator API comes with a powerful drag & drop editor that allows to create any kind of document templates, from barcode labels to invoices, quotes and reports. You can find tutorials and videos from our [Support Portal](https://support.pdfgeneratorapi.com). * [Component specification](https://support.pdfgeneratorapi.com/en/category/components-1ffseaj/) * [Expression Language documentation](https://support.pdfgeneratorapi.com/en/category/expression-language-q203pa/) * [Frequently asked questions and answers](https://support.pdfgeneratorapi.com/en/category/qanda-1ov519d/) ## Definitions ### Organization Organization is a group of workspaces owned by your account. ### Workspace Workspace contains templates. Each workspace has access to their own templates and organization default templates. ### Master Workspace Master Workspace is the main/default workspace of your Organization. The Master Workspace identifier is the email you signed up with. ### Default Template Default template is a template that is available for all workspaces by default. You can set the template access type under Page Setup. If template has \"Organization\" access then your users can use them from the \"New\" menu in the Editor. ### Data Field Data Field is a placeholder for the specific data in your JSON data set. In this example JSON you can access the buyer name using Data Field `{paymentDetails::buyerName}`. The separator between depth levels is :: (two colons). When designing the template you don’t have to know every Data Field, our editor automatically extracts all the available fields from your data set and provides an easy way to insert them into the template. ``` { \"documentNumber\": 1, \"paymentDetails\": { \"method\": \"Credit Card\", \"buyerName\": \"John Smith\" }, \"items\": [ { \"id\": 1, \"name\": \"Item one\" } ] } ``` ## Rate limiting Our API endpoints use IP-based rate limiting and allow you to make up to 2 requests per second and 60 requests per minute. If you make more requests, you will receive a response with HTTP code 429. Response headers contain additional values: | Header | Description | |--------|--------------------------------| | X-RateLimit-Limit | Maximum requests per minute | | X-RateLimit-Remaining | The requests remaining in the current minute | | Retry-After | How many seconds you need to wait until you are allowed to make requests | * * * * * # Libraries and SDKs ## Postman Collection We have created a [Postman Collection](https://www.postman.com/pdfgeneratorapi/workspace/pdf-generator-api-public-workspace/overview) so you can easily test all the API endpoints without developing and code. ## Client Libraries All our Client Libraries are auto-generated using [OpenAPI Generator](https://openapi-generator.tech/) which uses the OpenAPI v3 specification to automatically generate a client library in specific programming language. * [PHP Client](https://github.com/pdfgeneratorapi/php-client) * [Java Client](https://github.com/pdfgeneratorapi/java-client) * [Ruby Client](https://github.com/pdfgeneratorapi/ruby-client) * [Python Client](https://github.com/pdfgeneratorapi/python-client) * [Javascript Client](https://github.com/pdfgeneratorapi/javascript-client) We have validated the generated libraries, but let us know if you find any anomalies in the client code. ## Model Context Protocol (MCP) Server Integrate document generation directly into your AI agents and LLM applications using our official Model Context Protocol (MCP) Server. The MCP server provides a standardized interface that allows AI assistants (like Claude Desktop and other MCP-compatible clients) to securely interact with the PDF Generator API. With it, your AI applications can automatically fetch workspaces, retrieve templates, merge data, and generate PDF documents on the fly. [Get PDF Generator API MCP Server](https://github.com/pdfgeneratorapi/mcp-server) * * * * * # Authentication The PDF Generator API uses __JSON Web Tokens (JWT)__ to authenticate all API requests. These tokens offer a method to establish secure server-to-server authentication by transferring a compact JSON object with a signed payload of your account’s API Key and Secret. When authenticating to the PDF Generator API, a JWT should be generated uniquely by a __server-side application__ and included as a __Bearer Token__ in the header of each request. <SecurityDefinitions /> ## Accessing your API Key and Secret You can find your __API Key__ and __API Secret__ from the __Account Settings__ page after you login to PDF Generator API [here](https://pdfgeneratorapi.com/login). ## Creating a JWT JSON Web Tokens are composed of three sections: a header, a payload (containing a claim set), and a signature. The header and payload are JSON objects, which are serialized to UTF-8 bytes, then encoded using base64url encoding. The JWT's header, payload, and signature are concatenated with periods (.). As a result, a JWT typically takes the following form: ``` {Base64url encoded header}.{Base64url encoded payload}.{Base64url encoded signature} ``` We recommend and support libraries provided on [jwt.io](https://jwt.io/). While other libraries can create JWT, these recommended libraries are the most robust. ### Header Property `alg` defines which signing algorithm is being used. PDF Generator API users HS256. Property `typ` defines the type of token and it is always JWT. ``` { \"alg\": \"HS256\", \"typ\": \"JWT\" } ``` ### Payload The second part of the token is the payload, which contains the claims or the pieces of information being passed about the user and any metadata required. It is mandatory to specify the following claims: * issuer (`iss`): Your API key * subject (`sub`): Workspace identifier * expiration time (`exp`): Timestamp (unix epoch time) until the token is valid. It is highly recommended to set the exp timestamp for a short period, i.e. a matter of seconds. This way, if a token is intercepted or shared, the token will only be valid for a short period of time. ``` { \"iss\": \"ad54aaff89ffdfeff178bb8a8f359b29fcb20edb56250b9f584aa2cb0162ed4a\", \"sub\": \"demo.example@actualreports.com\", \"exp\": 1586112639 } ``` ### Payload for Partners Our partners can send their unique identifier (provided by us) in JWT's partner_id claim. If the `partner_id` value is specified in the JWT, the organization making the request is automatically connected to the partner account. * Partner ID (`partner_id`): Unique identifier provide by PDF Generator API team ``` { \"iss\": \"ad54aaff89ffdfeff178bb8a8f359b29fcb20edb56250b9f584aa2cb0162ed4a\", \"sub\": \"demo.example@actualreports.com\", \"partner_id\": \"my-partner-identifier\", \"exp\": 1586112639 } ``` ### Signature To create the signature part you have to take the encoded header, the encoded payload, a secret, the algorithm specified in the header, and sign that. The signature is used to verify the message wasn't changed along the way, and, in the case of tokens signed with a private key, it can also verify that the sender of the JWT is who it says it is. ``` HMACSHA256( base64UrlEncode(header) + \".\" + base64UrlEncode(payload), API_SECRET) ``` ### Putting all together The output is three Base64-URL strings separated by dots. The following shows a JWT that has the previous header and payload encoded, and it is signed with a secret. ``` eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhZDU0YWFmZjg5ZmZkZmVmZjE3OGJiOGE4ZjM1OWIyOWZjYjIwZWRiNTYyNTBiOWY1ODRhYTJjYjAxNjJlZDRhIiwic3ViIjoiZGVtby5leGFtcGxlQGFjdHVhbHJlcG9ydHMuY29tIn0.SxO-H7UYYYsclS8RGWO1qf0z1cB1m73wF9FLl9RCc1Q // Base64 encoded header: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9 // Base64 encoded payload: eyJpc3MiOiJhZDU0YWFmZjg5ZmZkZmVmZjE3OGJiOGE4ZjM1OWIyOWZjYjIwZWRiNTYyNTBiOWY1ODRhYTJjYjAxNjJlZDRhIiwic3ViIjoiZGVtby5leGFtcGxlQGFjdHVhbHJlcG9ydHMuY29tIn0 // Signature: SxO-H7UYYYsclS8RGWO1qf0z1cB1m73wF9FLl9RCc1Q ``` ## Temporary JWTs You can create a temporary token in [Account Settings](https://pdfgeneratorapi.com/account/organization) page after you login to PDF Generator API. The generated token uses your email address as the subject (`sub`) value and is valid for __15 minutes__. You can also use [jwt.io](https://jwt.io/) to generate test tokens for your API calls. These test tokens should never be used in production applications. * * * * * # Error codes | Code | Description | |--------|--------------------------------| | 401 | Unauthorized | | 402 | Payment Required | | 403 | Forbidden | | 404 | Not Found | | 422 | Unprocessable Entity | | 429 | Too Many Requests | | 500 | Internal Server Error | ## 401 Unauthorized | Description | |-------------------------------------------------------------------------| | Authentication failed: request expired | | Authentication failed: workspace missing | | Authentication failed: key missing | | Authentication failed: property 'iss' (issuer) missing in JWT | | Authentication failed: property 'sub' (subject) missing in JWT | | Authentication failed: property 'exp' (expiration time) missing in JWT | | Authentication failed: incorrect signature | ## 402 Payment Required | Description | |-------------------------------------------------------------------------| | Your account is suspended, please upgrade your account | ## 403 Forbidden | Description | |-------------------------------------------------------------------------| | Your account has exceeded the monthly document generation limit. | | Access not granted: You cannot delete master workspace via API | | Access not granted: Template is not accessible by this organization | | Your session has expired, please close and reopen the editor. | ## 404 Entity not found | Description | |-------------------------------------------------------------------------| | Entity not found | | Resource not found | | None of the templates is available for the workspace. | ## 422 Unprocessable Entity | Description | |-------------------------------------------------------------------------| | Unable to parse JSON, please check formatting | | Required parameter missing | | Required parameter missing: template definition not defined | | Required parameter missing: template not defined | ## 429 Too Many Requests | Description | |-------------------------------------------------------------------------| | You can make up to 2 requests per second and 60 requests per minute. | * * * * *
|
|
4
|
+
## Introduction [PDF Generator API](https://pdfgeneratorapi.com) 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. The PDF Generator API features a web API architecture, allowing you to code in the language of your choice. This API supports the JSON media type, and uses UTF-8 character encoding. ## Base URL The base URL for all the API endpoints is `https://us1.pdfgeneratorapi.com/api/v4` For example * `https://us1.pdfgeneratorapi.com/api/v4/templates` * `https://us1.pdfgeneratorapi.com/api/v4/workspaces` * `https://us1.pdfgeneratorapi.com/api/v4/templates/123123` ## Editor PDF Generator API comes with a powerful drag & drop editor that allows to create any kind of document templates, from barcode labels to invoices, quotes and reports. You can find tutorials and videos from our [Support Portal](https://support.pdfgeneratorapi.com). * [Component specification](https://support.pdfgeneratorapi.com/en/category/components-1ffseaj/) * [Expression Language documentation](https://support.pdfgeneratorapi.com/en/category/expression-language-q203pa/) * [Frequently asked questions and answers](https://support.pdfgeneratorapi.com/en/category/qanda-1ov519d/) ## Definitions ### Organization Organization is a group of workspaces owned by your account. ### Workspace Workspace contains templates. Each workspace has access to their own templates and organization default templates. ### Master Workspace Master Workspace is the main/default workspace of your Organization. The Master Workspace identifier is the email you signed up with. ### Default Template Default template is a template that is available for all workspaces by default. You can set the template access type under Page Setup. If template has \"Organization\" access then your users can use them from the \"New\" menu in the Editor. ### Data Field Data Field is a placeholder for the specific data in your JSON data set. In this example JSON you can access the buyer name using Data Field `{paymentDetails::buyerName}`. The separator between depth levels is :: (two colons). When designing the template you don’t have to know every Data Field, our editor automatically extracts all the available fields from your data set and provides an easy way to insert them into the template. ``` { \"documentNumber\": 1, \"paymentDetails\": { \"method\": \"Credit Card\", \"buyerName\": \"John Smith\" }, \"items\": [ { \"id\": 1, \"name\": \"Item one\" } ] } ``` ## Rate limiting Our API endpoints use IP-based rate limiting and allow you to make up to 2 requests per second and 60 requests per minute. If you make more requests, you will receive a response with HTTP code 429. Response headers contain additional values: | Header | Description | |--------|--------------------------------| | X-RateLimit-Limit | Maximum requests per minute | | X-RateLimit-Remaining | The requests remaining in the current minute | | Retry-After | How many seconds you need to wait until you are allowed to make requests | * * * * * # Libraries and SDKs ## Postman Collection We have created a [Postman Collection](https://www.postman.com/pdfgeneratorapi/workspace/pdf-generator-api-public-workspace/overview) so you can easily test all the API endpoints without developing and code. ## Client Libraries All our Client Libraries are auto-generated using [OpenAPI Generator](https://openapi-generator.tech/) which uses the OpenAPI v3 specification to automatically generate a client library in specific programming language. * [PHP Client](https://github.com/pdfgeneratorapi/php-client) * [Java Client](https://github.com/pdfgeneratorapi/java-client) * [Ruby Client](https://github.com/pdfgeneratorapi/ruby-client) * [Python Client](https://github.com/pdfgeneratorapi/python-client) * [Javascript Client](https://github.com/pdfgeneratorapi/javascript-client) We have validated the generated libraries, but let us know if you find any anomalies in the client code. ## Model Context Protocol (MCP) Server Integrate document generation directly into your AI agents and LLM applications using our official Model Context Protocol (MCP) Server. The MCP server provides a standardized interface that allows AI assistants (like Claude Desktop and other MCP-compatible clients) to securely interact with the PDF Generator API. With it, your AI applications can automatically fetch workspaces, retrieve templates, merge data, and generate PDF documents on the fly. [Get PDF Generator API MCP Server](https://github.com/pdfgeneratorapi/mcp-server) * * * * * # Authentication The PDF Generator API uses __JSON Web Tokens (JWT)__ to authenticate all API requests. These tokens offer a method to establish secure server-to-server authentication by transferring a compact JSON object with a signed payload of your account’s API Key and Secret. When authenticating to the PDF Generator API, a JWT should be generated uniquely by a __server-side application__ and included as a __Bearer Token__ in the header of each request. <SecurityDefinitions /> ## Accessing your API Key and Secret You can find your __API Key__ and __API Secret__ from the __Account Settings__ page after you login to PDF Generator API [here](https://pdfgeneratorapi.com/login). ## Creating a JWT JSON Web Tokens are composed of three sections: a header, a payload (containing a claim set), and a signature. The header and payload are JSON objects, which are serialized to UTF-8 bytes, then encoded using base64url encoding. The JWT's header, payload, and signature are concatenated with periods (.). As a result, a JWT typically takes the following form: ``` {Base64url encoded header}.{Base64url encoded payload}.{Base64url encoded signature} ``` We recommend and support libraries provided on [jwt.io](https://jwt.io/). While other libraries can create JWT, these recommended libraries are the most robust. ### Header Property `alg` defines which signing algorithm is being used. PDF Generator API users HS256. Property `typ` defines the type of token and it is always JWT. ``` { \"alg\": \"HS256\", \"typ\": \"JWT\" } ``` ### Payload The second part of the token is the payload, which contains the claims or the pieces of information being passed about the user and any metadata required. It is mandatory to specify the following claims: * issuer (`iss`): Your API key * subject (`sub`): Workspace identifier * expiration time (`exp`): Timestamp (unix epoch time) until the token is valid. It is highly recommended to set the exp timestamp for a short period, i.e. a matter of seconds. This way, if a token is intercepted or shared, the token will only be valid for a short period of time. ``` { \"iss\": \"ad54aaff89ffdfeff178bb8a8f359b29fcb20edb56250b9f584aa2cb0162ed4a\", \"sub\": \"demo.example@actualreports.com\", \"exp\": 1586112639 } ``` ### Payload for Partners Our partners can send their unique identifier (provided by us) in JWT's partner_id claim. If the `partner_id` value is specified in the JWT, the organization making the request is automatically connected to the partner account. * Partner ID (`partner_id`): Unique identifier provide by PDF Generator API team ``` { \"iss\": \"ad54aaff89ffdfeff178bb8a8f359b29fcb20edb56250b9f584aa2cb0162ed4a\", \"sub\": \"demo.example@actualreports.com\", \"partner_id\": \"my-partner-identifier\", \"exp\": 1586112639 } ``` ### Signature To create the signature part you have to take the encoded header, the encoded payload, a secret, the algorithm specified in the header, and sign that. The signature is used to verify the message wasn't changed along the way, and, in the case of tokens signed with a private key, it can also verify that the sender of the JWT is who it says it is. ``` HMACSHA256( base64UrlEncode(header) + \".\" + base64UrlEncode(payload), API_SECRET) ``` ### Putting all together The output is three Base64-URL strings separated by dots. The following shows a JWT that has the previous header and payload encoded, and it is signed with a secret. ``` eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhZDU0YWFmZjg5ZmZkZmVmZjE3OGJiOGE4ZjM1OWIyOWZjYjIwZWRiNTYyNTBiOWY1ODRhYTJjYjAxNjJlZDRhIiwic3ViIjoiZGVtby5leGFtcGxlQGFjdHVhbHJlcG9ydHMuY29tIn0.SxO-H7UYYYsclS8RGWO1qf0z1cB1m73wF9FLl9RCc1Q // Base64 encoded header: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9 // Base64 encoded payload: eyJpc3MiOiJhZDU0YWFmZjg5ZmZkZmVmZjE3OGJiOGE4ZjM1OWIyOWZjYjIwZWRiNTYyNTBiOWY1ODRhYTJjYjAxNjJlZDRhIiwic3ViIjoiZGVtby5leGFtcGxlQGFjdHVhbHJlcG9ydHMuY29tIn0 // Signature: SxO-H7UYYYsclS8RGWO1qf0z1cB1m73wF9FLl9RCc1Q ``` ## Temporary JWTs You can create a temporary token in [Account Settings](https://pdfgeneratorapi.com/account/organization) page after you login to PDF Generator API. The generated token uses your email address as the subject (`sub`) value and is valid for __15 minutes__. You can also use [jwt.io](https://jwt.io/) to generate test tokens for your API calls. These test tokens should never be used in production applications. * * * * * # Error codes Every error response is a JSON object with a `message` string. Request validation failures (422) also include an `errors` object keyed by the field that failed. ```json { \"message\": \"The identifier field is required.\", \"errors\": { \"identifier\": [\"The identifier field is required.\"] } } ``` | Code | Description | |--------|--------------------------------| | 400 | Bad Request | | 401 | Unauthorized | | 402 | Payment Required | | 403 | Forbidden | | 404 | Not Found | | 405 | Method Not Allowed | | 409 | Conflict | | 410 | Gone | | 422 | Unprocessable Entity | | 429 | Too Many Requests | | 500 | Internal Server Error | | 503 | Service Unavailable | ## 401 Unauthorized | Description | |-----------------------------------------------------------------------------------| | Authentication failed: JWT Token missing. | | Authentication failed: Malformed JWT Token. | | Authentication failed: Expired JWT Token. | | Authentication failed: Invalid workspace. | | Authentication failed: Invalid organization. | | Authentication failed: This application no longer has access to the workspace. | | Authentication failed: The sub field is required. (also `iss` and `exp`) | ## 402 Payment Required | Description | |-----------------------------------------------------------------------------------| | Your account is suspended, please upgrade your account or contact support@pdfgeneratorapi.com. | ## 403 Forbidden | Description | |-----------------------------------------------------------------------------------| | You don't have permission to access this content. Please get in touch with your organization administrator to update your access permissions. | | This application was not granted permission for this request. | | Deleting own user is not allowed. | | Deleting organization owner is not allowed. | ## 404 Not Found | Description | |-----------------------------------------------------------------------------------| | Entity not found. | | Route not found. | | Workspace doesn’t have access to read the template. | ## 422 Unprocessable Entity | Description | |-----------------------------------------------------------------------------------| | Unable to parse JSON, please check formatting. | | Template id should be a numeric value. | | The per page must be at least 1. (with `errors.per_page`) | ## 429 Too Many Requests | Description | |-----------------------------------------------------------------------------------| | Per-second rate limit exceeded. Please slow down your requests. | | Per-minute rate limit exceeded. Please try again in a minute. | | Global per-second rate limit exceeded. Please slow down your requests. | | Global per-minute rate limit exceeded. Please try again in a minute. | * * * * *
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 4.0.
|
|
6
|
+
The version of the OpenAPI document: 4.0.34
|
|
7
7
|
Contact: support@pdfgeneratorapi.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.14.0
|
|
@@ -24,7 +24,7 @@ module PDFGeneratorAPI
|
|
|
24
24
|
# @param template_id [Integer] Template unique identifier
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @option opts [CopyTemplateRequest] :copy_template_request
|
|
27
|
-
# @return [
|
|
27
|
+
# @return [InlineObject18]
|
|
28
28
|
def copy_template(template_id, opts = {})
|
|
29
29
|
data, _status_code, _headers = copy_template_with_http_info(template_id, opts)
|
|
30
30
|
data
|
|
@@ -35,7 +35,7 @@ module PDFGeneratorAPI
|
|
|
35
35
|
# @param template_id [Integer] Template unique identifier
|
|
36
36
|
# @param [Hash] opts the optional parameters
|
|
37
37
|
# @option opts [CopyTemplateRequest] :copy_template_request
|
|
38
|
-
# @return [Array<(
|
|
38
|
+
# @return [Array<(InlineObject18, Integer, Hash)>] InlineObject18 data, response status code and response headers
|
|
39
39
|
def copy_template_with_http_info(template_id, opts = {})
|
|
40
40
|
if @api_client.config.debugging
|
|
41
41
|
@api_client.config.logger.debug 'Calling API: TemplatesApi.copy_template ...'
|
|
@@ -67,7 +67,7 @@ module PDFGeneratorAPI
|
|
|
67
67
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'copy_template_request'])
|
|
68
68
|
|
|
69
69
|
# return_type
|
|
70
|
-
return_type = opts[:debug_return_type] || '
|
|
70
|
+
return_type = opts[:debug_return_type] || 'InlineObject18'
|
|
71
71
|
|
|
72
72
|
# auth_names
|
|
73
73
|
auth_names = opts[:debug_auth_names] || ['JSONWebTokenAuth']
|
|
@@ -93,7 +93,7 @@ module PDFGeneratorAPI
|
|
|
93
93
|
# Creates a new template. If template configuration is not specified in the request body then an empty template is created. Template is placed to the workspace specified in authentication params. Template configuration must be sent in the request body.
|
|
94
94
|
# @param template_definition_new [TemplateDefinitionNew] Template configuration
|
|
95
95
|
# @param [Hash] opts the optional parameters
|
|
96
|
-
# @return [
|
|
96
|
+
# @return [InlineObject18]
|
|
97
97
|
def create_template(template_definition_new, opts = {})
|
|
98
98
|
data, _status_code, _headers = create_template_with_http_info(template_definition_new, opts)
|
|
99
99
|
data
|
|
@@ -103,7 +103,7 @@ module PDFGeneratorAPI
|
|
|
103
103
|
# Creates a new template. If template configuration is not specified in the request body then an empty template is created. Template is placed to the workspace specified in authentication params. Template configuration must be sent in the request body.
|
|
104
104
|
# @param template_definition_new [TemplateDefinitionNew] Template configuration
|
|
105
105
|
# @param [Hash] opts the optional parameters
|
|
106
|
-
# @return [Array<(
|
|
106
|
+
# @return [Array<(InlineObject18, Integer, Hash)>] InlineObject18 data, response status code and response headers
|
|
107
107
|
def create_template_with_http_info(template_definition_new, opts = {})
|
|
108
108
|
if @api_client.config.debugging
|
|
109
109
|
@api_client.config.logger.debug 'Calling API: TemplatesApi.create_template ...'
|
|
@@ -135,7 +135,7 @@ module PDFGeneratorAPI
|
|
|
135
135
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(template_definition_new)
|
|
136
136
|
|
|
137
137
|
# return_type
|
|
138
|
-
return_type = opts[:debug_return_type] || '
|
|
138
|
+
return_type = opts[:debug_return_type] || 'InlineObject18'
|
|
139
139
|
|
|
140
140
|
# auth_names
|
|
141
141
|
auth_names = opts[:debug_auth_names] || ['JSONWebTokenAuth']
|
|
@@ -224,7 +224,7 @@ module PDFGeneratorAPI
|
|
|
224
224
|
# Returns template configuration
|
|
225
225
|
# @param template_id [Integer] Template unique identifier
|
|
226
226
|
# @param [Hash] opts the optional parameters
|
|
227
|
-
# @return [
|
|
227
|
+
# @return [InlineObject18]
|
|
228
228
|
def get_template(template_id, opts = {})
|
|
229
229
|
data, _status_code, _headers = get_template_with_http_info(template_id, opts)
|
|
230
230
|
data
|
|
@@ -234,7 +234,7 @@ module PDFGeneratorAPI
|
|
|
234
234
|
# Returns template configuration
|
|
235
235
|
# @param template_id [Integer] Template unique identifier
|
|
236
236
|
# @param [Hash] opts the optional parameters
|
|
237
|
-
# @return [Array<(
|
|
237
|
+
# @return [Array<(InlineObject18, Integer, Hash)>] InlineObject18 data, response status code and response headers
|
|
238
238
|
def get_template_with_http_info(template_id, opts = {})
|
|
239
239
|
if @api_client.config.debugging
|
|
240
240
|
@api_client.config.logger.debug 'Calling API: TemplatesApi.get_template ...'
|
|
@@ -261,7 +261,7 @@ module PDFGeneratorAPI
|
|
|
261
261
|
post_body = opts[:debug_body]
|
|
262
262
|
|
|
263
263
|
# return_type
|
|
264
|
-
return_type = opts[:debug_return_type] || '
|
|
264
|
+
return_type = opts[:debug_return_type] || 'InlineObject18'
|
|
265
265
|
|
|
266
266
|
# auth_names
|
|
267
267
|
auth_names = opts[:debug_auth_names] || ['JSONWebTokenAuth']
|
|
@@ -349,7 +349,7 @@ module PDFGeneratorAPI
|
|
|
349
349
|
# Get schema
|
|
350
350
|
# Returns Template JSON Schema which defines the structure of the Template Definition.
|
|
351
351
|
# @param [Hash] opts the optional parameters
|
|
352
|
-
# @return [
|
|
352
|
+
# @return [GetTemplateSchema200Response]
|
|
353
353
|
def get_template_schema(opts = {})
|
|
354
354
|
data, _status_code, _headers = get_template_schema_with_http_info(opts)
|
|
355
355
|
data
|
|
@@ -358,7 +358,7 @@ module PDFGeneratorAPI
|
|
|
358
358
|
# Get schema
|
|
359
359
|
# Returns Template JSON Schema which defines the structure of the Template Definition.
|
|
360
360
|
# @param [Hash] opts the optional parameters
|
|
361
|
-
# @return [Array<(
|
|
361
|
+
# @return [Array<(GetTemplateSchema200Response, Integer, Hash)>] GetTemplateSchema200Response data, response status code and response headers
|
|
362
362
|
def get_template_schema_with_http_info(opts = {})
|
|
363
363
|
if @api_client.config.debugging
|
|
364
364
|
@api_client.config.logger.debug 'Calling API: TemplatesApi.get_template_schema ...'
|
|
@@ -381,10 +381,10 @@ module PDFGeneratorAPI
|
|
|
381
381
|
post_body = opts[:debug_body]
|
|
382
382
|
|
|
383
383
|
# return_type
|
|
384
|
-
return_type = opts[:debug_return_type] || '
|
|
384
|
+
return_type = opts[:debug_return_type] || 'GetTemplateSchema200Response'
|
|
385
385
|
|
|
386
386
|
# auth_names
|
|
387
|
-
auth_names = opts[:debug_auth_names] || [
|
|
387
|
+
auth_names = opts[:debug_auth_names] || []
|
|
388
388
|
|
|
389
389
|
new_options = opts.merge(
|
|
390
390
|
:operation => :"TemplatesApi.get_template_schema",
|
|
@@ -411,6 +411,9 @@ module PDFGeneratorAPI
|
|
|
411
411
|
# @option opts [String] :access Filter template by access type. No values returns all templates. private - returns only private templates, organization - returns only organization templates. (default to '')
|
|
412
412
|
# @option opts [Integer] :page Pagination: page to return (default to 1)
|
|
413
413
|
# @option opts [Integer] :per_page Pagination: How many records to return per page (default to 15)
|
|
414
|
+
# @option opts [String] :order_by Field to sort the templates by. Ignored when `name` or `tags` is set. (default to 'updated_at')
|
|
415
|
+
# @option opts [String] :order_direction Sort direction. Ignored when `name` or `tags` is set. (default to 'desc')
|
|
416
|
+
# @option opts [String] :search Returns templates whose ID, name, tags, creation date or modification date contains the search value. Ignored when `name` or `tags` is set.
|
|
414
417
|
# @return [InlineObject4]
|
|
415
418
|
def get_templates(opts = {})
|
|
416
419
|
data, _status_code, _headers = get_templates_with_http_info(opts)
|
|
@@ -425,6 +428,9 @@ module PDFGeneratorAPI
|
|
|
425
428
|
# @option opts [String] :access Filter template by access type. No values returns all templates. private - returns only private templates, organization - returns only organization templates. (default to '')
|
|
426
429
|
# @option opts [Integer] :page Pagination: page to return (default to 1)
|
|
427
430
|
# @option opts [Integer] :per_page Pagination: How many records to return per page (default to 15)
|
|
431
|
+
# @option opts [String] :order_by Field to sort the templates by. Ignored when `name` or `tags` is set. (default to 'updated_at')
|
|
432
|
+
# @option opts [String] :order_direction Sort direction. Ignored when `name` or `tags` is set. (default to 'desc')
|
|
433
|
+
# @option opts [String] :search Returns templates whose ID, name, tags, creation date or modification date contains the search value. Ignored when `name` or `tags` is set.
|
|
428
434
|
# @return [Array<(InlineObject4, Integer, Hash)>] InlineObject4 data, response status code and response headers
|
|
429
435
|
def get_templates_with_http_info(opts = {})
|
|
430
436
|
if @api_client.config.debugging
|
|
@@ -434,6 +440,14 @@ module PDFGeneratorAPI
|
|
|
434
440
|
if @api_client.config.client_side_validation && opts[:'access'] && !allowable_values.include?(opts[:'access'])
|
|
435
441
|
fail ArgumentError, "invalid value for \"access\", must be one of #{allowable_values}"
|
|
436
442
|
end
|
|
443
|
+
allowable_values = ["id", "name", "is_draft", "created_at", "updated_at"]
|
|
444
|
+
if @api_client.config.client_side_validation && opts[:'order_by'] && !allowable_values.include?(opts[:'order_by'])
|
|
445
|
+
fail ArgumentError, "invalid value for \"order_by\", must be one of #{allowable_values}"
|
|
446
|
+
end
|
|
447
|
+
allowable_values = ["asc", "desc"]
|
|
448
|
+
if @api_client.config.client_side_validation && opts[:'order_direction'] && !allowable_values.include?(opts[:'order_direction'])
|
|
449
|
+
fail ArgumentError, "invalid value for \"order_direction\", must be one of #{allowable_values}"
|
|
450
|
+
end
|
|
437
451
|
# resource path
|
|
438
452
|
local_var_path = '/templates'
|
|
439
453
|
|
|
@@ -444,6 +458,9 @@ module PDFGeneratorAPI
|
|
|
444
458
|
query_params[:'access'] = opts[:'access'] if !opts[:'access'].nil?
|
|
445
459
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
446
460
|
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
|
461
|
+
query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
|
|
462
|
+
query_params[:'order_direction'] = opts[:'order_direction'] if !opts[:'order_direction'].nil?
|
|
463
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
447
464
|
|
|
448
465
|
# header parameters
|
|
449
466
|
header_params = opts[:header_params] || {}
|
|
@@ -483,7 +500,7 @@ module PDFGeneratorAPI
|
|
|
483
500
|
# Creates a template from existing PDF
|
|
484
501
|
# @param import_template_request [ImportTemplateRequest] Import a PDF via URL or base64 string as template
|
|
485
502
|
# @param [Hash] opts the optional parameters
|
|
486
|
-
# @return [
|
|
503
|
+
# @return [InlineObject18]
|
|
487
504
|
def import_template(import_template_request, opts = {})
|
|
488
505
|
data, _status_code, _headers = import_template_with_http_info(import_template_request, opts)
|
|
489
506
|
data
|
|
@@ -493,7 +510,7 @@ module PDFGeneratorAPI
|
|
|
493
510
|
# Creates a template from existing PDF
|
|
494
511
|
# @param import_template_request [ImportTemplateRequest] Import a PDF via URL or base64 string as template
|
|
495
512
|
# @param [Hash] opts the optional parameters
|
|
496
|
-
# @return [Array<(
|
|
513
|
+
# @return [Array<(InlineObject18, Integer, Hash)>] InlineObject18 data, response status code and response headers
|
|
497
514
|
def import_template_with_http_info(import_template_request, opts = {})
|
|
498
515
|
if @api_client.config.debugging
|
|
499
516
|
@api_client.config.logger.debug 'Calling API: TemplatesApi.import_template ...'
|
|
@@ -525,7 +542,7 @@ module PDFGeneratorAPI
|
|
|
525
542
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(import_template_request)
|
|
526
543
|
|
|
527
544
|
# return_type
|
|
528
|
-
return_type = opts[:debug_return_type] || '
|
|
545
|
+
return_type = opts[:debug_return_type] || 'InlineObject18'
|
|
529
546
|
|
|
530
547
|
# auth_names
|
|
531
548
|
auth_names = opts[:debug_auth_names] || ['JSONWebTokenAuth']
|
|
@@ -622,23 +639,23 @@ module PDFGeneratorAPI
|
|
|
622
639
|
end
|
|
623
640
|
|
|
624
641
|
# Update template
|
|
625
|
-
# Updates template configuration.
|
|
642
|
+
# Updates template configuration. Each top-level field sent (name, layout, pages and the rest) replaces the stored one, so pages must be complete, with every component. A field left out keeps its stored value, the name included.
|
|
626
643
|
# @param template_id [Integer] Template unique identifier
|
|
627
|
-
# @param
|
|
644
|
+
# @param template_definition_update [TemplateDefinitionUpdate] The template configuration to change
|
|
628
645
|
# @param [Hash] opts the optional parameters
|
|
629
|
-
# @return [
|
|
630
|
-
def update_template(template_id,
|
|
631
|
-
data, _status_code, _headers = update_template_with_http_info(template_id,
|
|
646
|
+
# @return [InlineObject18]
|
|
647
|
+
def update_template(template_id, template_definition_update, opts = {})
|
|
648
|
+
data, _status_code, _headers = update_template_with_http_info(template_id, template_definition_update, opts)
|
|
632
649
|
data
|
|
633
650
|
end
|
|
634
651
|
|
|
635
652
|
# Update template
|
|
636
|
-
# Updates template configuration.
|
|
653
|
+
# Updates template configuration. Each top-level field sent (name, layout, pages and the rest) replaces the stored one, so pages must be complete, with every component. A field left out keeps its stored value, the name included.
|
|
637
654
|
# @param template_id [Integer] Template unique identifier
|
|
638
|
-
# @param
|
|
655
|
+
# @param template_definition_update [TemplateDefinitionUpdate] The template configuration to change
|
|
639
656
|
# @param [Hash] opts the optional parameters
|
|
640
|
-
# @return [Array<(
|
|
641
|
-
def update_template_with_http_info(template_id,
|
|
657
|
+
# @return [Array<(InlineObject18, Integer, Hash)>] InlineObject18 data, response status code and response headers
|
|
658
|
+
def update_template_with_http_info(template_id, template_definition_update, opts = {})
|
|
642
659
|
if @api_client.config.debugging
|
|
643
660
|
@api_client.config.logger.debug 'Calling API: TemplatesApi.update_template ...'
|
|
644
661
|
end
|
|
@@ -646,9 +663,9 @@ module PDFGeneratorAPI
|
|
|
646
663
|
if @api_client.config.client_side_validation && template_id.nil?
|
|
647
664
|
fail ArgumentError, "Missing the required parameter 'template_id' when calling TemplatesApi.update_template"
|
|
648
665
|
end
|
|
649
|
-
# verify the required parameter '
|
|
650
|
-
if @api_client.config.client_side_validation &&
|
|
651
|
-
fail ArgumentError, "Missing the required parameter '
|
|
666
|
+
# verify the required parameter 'template_definition_update' is set
|
|
667
|
+
if @api_client.config.client_side_validation && template_definition_update.nil?
|
|
668
|
+
fail ArgumentError, "Missing the required parameter 'template_definition_update' when calling TemplatesApi.update_template"
|
|
652
669
|
end
|
|
653
670
|
# resource path
|
|
654
671
|
local_var_path = '/templates/{templateId}'.sub('{' + 'templateId' + '}', CGI.escape(template_id.to_s))
|
|
@@ -670,10 +687,10 @@ module PDFGeneratorAPI
|
|
|
670
687
|
form_params = opts[:form_params] || {}
|
|
671
688
|
|
|
672
689
|
# http body (model)
|
|
673
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
690
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(template_definition_update)
|
|
674
691
|
|
|
675
692
|
# return_type
|
|
676
|
-
return_type = opts[:debug_return_type] || '
|
|
693
|
+
return_type = opts[:debug_return_type] || 'InlineObject18'
|
|
677
694
|
|
|
678
695
|
# auth_names
|
|
679
696
|
auth_names = opts[:debug_auth_names] || ['JSONWebTokenAuth']
|
|
@@ -744,7 +761,7 @@ module PDFGeneratorAPI
|
|
|
744
761
|
return_type = opts[:debug_return_type] || 'InlineObject1'
|
|
745
762
|
|
|
746
763
|
# auth_names
|
|
747
|
-
auth_names = opts[:debug_auth_names] || [
|
|
764
|
+
auth_names = opts[:debug_auth_names] || []
|
|
748
765
|
|
|
749
766
|
new_options = opts.merge(
|
|
750
767
|
:operation => :"TemplatesApi.validate_template",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#PDF Generator API
|
|
3
3
|
|
|
4
|
-
## Introduction [PDF Generator API](https://pdfgeneratorapi.com) 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. The PDF Generator API features a web API architecture, allowing you to code in the language of your choice. This API supports the JSON media type, and uses UTF-8 character encoding. ## Base URL The base URL for all the API endpoints is `https://us1.pdfgeneratorapi.com/api/v4` For example * `https://us1.pdfgeneratorapi.com/api/v4/templates` * `https://us1.pdfgeneratorapi.com/api/v4/workspaces` * `https://us1.pdfgeneratorapi.com/api/v4/templates/123123` ## Editor PDF Generator API comes with a powerful drag & drop editor that allows to create any kind of document templates, from barcode labels to invoices, quotes and reports. You can find tutorials and videos from our [Support Portal](https://support.pdfgeneratorapi.com). * [Component specification](https://support.pdfgeneratorapi.com/en/category/components-1ffseaj/) * [Expression Language documentation](https://support.pdfgeneratorapi.com/en/category/expression-language-q203pa/) * [Frequently asked questions and answers](https://support.pdfgeneratorapi.com/en/category/qanda-1ov519d/) ## Definitions ### Organization Organization is a group of workspaces owned by your account. ### Workspace Workspace contains templates. Each workspace has access to their own templates and organization default templates. ### Master Workspace Master Workspace is the main/default workspace of your Organization. The Master Workspace identifier is the email you signed up with. ### Default Template Default template is a template that is available for all workspaces by default. You can set the template access type under Page Setup. If template has \"Organization\" access then your users can use them from the \"New\" menu in the Editor. ### Data Field Data Field is a placeholder for the specific data in your JSON data set. In this example JSON you can access the buyer name using Data Field `{paymentDetails::buyerName}`. The separator between depth levels is :: (two colons). When designing the template you don’t have to know every Data Field, our editor automatically extracts all the available fields from your data set and provides an easy way to insert them into the template. ``` { \"documentNumber\": 1, \"paymentDetails\": { \"method\": \"Credit Card\", \"buyerName\": \"John Smith\" }, \"items\": [ { \"id\": 1, \"name\": \"Item one\" } ] } ``` ## Rate limiting Our API endpoints use IP-based rate limiting and allow you to make up to 2 requests per second and 60 requests per minute. If you make more requests, you will receive a response with HTTP code 429. Response headers contain additional values: | Header | Description | |--------|--------------------------------| | X-RateLimit-Limit | Maximum requests per minute | | X-RateLimit-Remaining | The requests remaining in the current minute | | Retry-After | How many seconds you need to wait until you are allowed to make requests | * * * * * # Libraries and SDKs ## Postman Collection We have created a [Postman Collection](https://www.postman.com/pdfgeneratorapi/workspace/pdf-generator-api-public-workspace/overview) so you can easily test all the API endpoints without developing and code. ## Client Libraries All our Client Libraries are auto-generated using [OpenAPI Generator](https://openapi-generator.tech/) which uses the OpenAPI v3 specification to automatically generate a client library in specific programming language. * [PHP Client](https://github.com/pdfgeneratorapi/php-client) * [Java Client](https://github.com/pdfgeneratorapi/java-client) * [Ruby Client](https://github.com/pdfgeneratorapi/ruby-client) * [Python Client](https://github.com/pdfgeneratorapi/python-client) * [Javascript Client](https://github.com/pdfgeneratorapi/javascript-client) We have validated the generated libraries, but let us know if you find any anomalies in the client code. ## Model Context Protocol (MCP) Server Integrate document generation directly into your AI agents and LLM applications using our official Model Context Protocol (MCP) Server. The MCP server provides a standardized interface that allows AI assistants (like Claude Desktop and other MCP-compatible clients) to securely interact with the PDF Generator API. With it, your AI applications can automatically fetch workspaces, retrieve templates, merge data, and generate PDF documents on the fly. [Get PDF Generator API MCP Server](https://github.com/pdfgeneratorapi/mcp-server) * * * * * # Authentication The PDF Generator API uses __JSON Web Tokens (JWT)__ to authenticate all API requests. These tokens offer a method to establish secure server-to-server authentication by transferring a compact JSON object with a signed payload of your account’s API Key and Secret. When authenticating to the PDF Generator API, a JWT should be generated uniquely by a __server-side application__ and included as a __Bearer Token__ in the header of each request. <SecurityDefinitions /> ## Accessing your API Key and Secret You can find your __API Key__ and __API Secret__ from the __Account Settings__ page after you login to PDF Generator API [here](https://pdfgeneratorapi.com/login). ## Creating a JWT JSON Web Tokens are composed of three sections: a header, a payload (containing a claim set), and a signature. The header and payload are JSON objects, which are serialized to UTF-8 bytes, then encoded using base64url encoding. The JWT's header, payload, and signature are concatenated with periods (.). As a result, a JWT typically takes the following form: ``` {Base64url encoded header}.{Base64url encoded payload}.{Base64url encoded signature} ``` We recommend and support libraries provided on [jwt.io](https://jwt.io/). While other libraries can create JWT, these recommended libraries are the most robust. ### Header Property `alg` defines which signing algorithm is being used. PDF Generator API users HS256. Property `typ` defines the type of token and it is always JWT. ``` { \"alg\": \"HS256\", \"typ\": \"JWT\" } ``` ### Payload The second part of the token is the payload, which contains the claims or the pieces of information being passed about the user and any metadata required. It is mandatory to specify the following claims: * issuer (`iss`): Your API key * subject (`sub`): Workspace identifier * expiration time (`exp`): Timestamp (unix epoch time) until the token is valid. It is highly recommended to set the exp timestamp for a short period, i.e. a matter of seconds. This way, if a token is intercepted or shared, the token will only be valid for a short period of time. ``` { \"iss\": \"ad54aaff89ffdfeff178bb8a8f359b29fcb20edb56250b9f584aa2cb0162ed4a\", \"sub\": \"demo.example@actualreports.com\", \"exp\": 1586112639 } ``` ### Payload for Partners Our partners can send their unique identifier (provided by us) in JWT's partner_id claim. If the `partner_id` value is specified in the JWT, the organization making the request is automatically connected to the partner account. * Partner ID (`partner_id`): Unique identifier provide by PDF Generator API team ``` { \"iss\": \"ad54aaff89ffdfeff178bb8a8f359b29fcb20edb56250b9f584aa2cb0162ed4a\", \"sub\": \"demo.example@actualreports.com\", \"partner_id\": \"my-partner-identifier\", \"exp\": 1586112639 } ``` ### Signature To create the signature part you have to take the encoded header, the encoded payload, a secret, the algorithm specified in the header, and sign that. The signature is used to verify the message wasn't changed along the way, and, in the case of tokens signed with a private key, it can also verify that the sender of the JWT is who it says it is. ``` HMACSHA256( base64UrlEncode(header) + \".\" + base64UrlEncode(payload), API_SECRET) ``` ### Putting all together The output is three Base64-URL strings separated by dots. The following shows a JWT that has the previous header and payload encoded, and it is signed with a secret. ``` eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhZDU0YWFmZjg5ZmZkZmVmZjE3OGJiOGE4ZjM1OWIyOWZjYjIwZWRiNTYyNTBiOWY1ODRhYTJjYjAxNjJlZDRhIiwic3ViIjoiZGVtby5leGFtcGxlQGFjdHVhbHJlcG9ydHMuY29tIn0.SxO-H7UYYYsclS8RGWO1qf0z1cB1m73wF9FLl9RCc1Q // Base64 encoded header: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9 // Base64 encoded payload: eyJpc3MiOiJhZDU0YWFmZjg5ZmZkZmVmZjE3OGJiOGE4ZjM1OWIyOWZjYjIwZWRiNTYyNTBiOWY1ODRhYTJjYjAxNjJlZDRhIiwic3ViIjoiZGVtby5leGFtcGxlQGFjdHVhbHJlcG9ydHMuY29tIn0 // Signature: SxO-H7UYYYsclS8RGWO1qf0z1cB1m73wF9FLl9RCc1Q ``` ## Temporary JWTs You can create a temporary token in [Account Settings](https://pdfgeneratorapi.com/account/organization) page after you login to PDF Generator API. The generated token uses your email address as the subject (`sub`) value and is valid for __15 minutes__. You can also use [jwt.io](https://jwt.io/) to generate test tokens for your API calls. These test tokens should never be used in production applications. * * * * * # Error codes | Code | Description | |--------|--------------------------------| | 401 | Unauthorized | | 402 | Payment Required | | 403 | Forbidden | | 404 | Not Found | | 422 | Unprocessable Entity | | 429 | Too Many Requests | | 500 | Internal Server Error | ## 401 Unauthorized | Description | |-------------------------------------------------------------------------| | Authentication failed: request expired | | Authentication failed: workspace missing | | Authentication failed: key missing | | Authentication failed: property 'iss' (issuer) missing in JWT | | Authentication failed: property 'sub' (subject) missing in JWT | | Authentication failed: property 'exp' (expiration time) missing in JWT | | Authentication failed: incorrect signature | ## 402 Payment Required | Description | |-------------------------------------------------------------------------| | Your account is suspended, please upgrade your account | ## 403 Forbidden | Description | |-------------------------------------------------------------------------| | Your account has exceeded the monthly document generation limit. | | Access not granted: You cannot delete master workspace via API | | Access not granted: Template is not accessible by this organization | | Your session has expired, please close and reopen the editor. | ## 404 Entity not found | Description | |-------------------------------------------------------------------------| | Entity not found | | Resource not found | | None of the templates is available for the workspace. | ## 422 Unprocessable Entity | Description | |-------------------------------------------------------------------------| | Unable to parse JSON, please check formatting | | Required parameter missing | | Required parameter missing: template definition not defined | | Required parameter missing: template not defined | ## 429 Too Many Requests | Description | |-------------------------------------------------------------------------| | You can make up to 2 requests per second and 60 requests per minute. | * * * * *
|
|
4
|
+
## Introduction [PDF Generator API](https://pdfgeneratorapi.com) 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. The PDF Generator API features a web API architecture, allowing you to code in the language of your choice. This API supports the JSON media type, and uses UTF-8 character encoding. ## Base URL The base URL for all the API endpoints is `https://us1.pdfgeneratorapi.com/api/v4` For example * `https://us1.pdfgeneratorapi.com/api/v4/templates` * `https://us1.pdfgeneratorapi.com/api/v4/workspaces` * `https://us1.pdfgeneratorapi.com/api/v4/templates/123123` ## Editor PDF Generator API comes with a powerful drag & drop editor that allows to create any kind of document templates, from barcode labels to invoices, quotes and reports. You can find tutorials and videos from our [Support Portal](https://support.pdfgeneratorapi.com). * [Component specification](https://support.pdfgeneratorapi.com/en/category/components-1ffseaj/) * [Expression Language documentation](https://support.pdfgeneratorapi.com/en/category/expression-language-q203pa/) * [Frequently asked questions and answers](https://support.pdfgeneratorapi.com/en/category/qanda-1ov519d/) ## Definitions ### Organization Organization is a group of workspaces owned by your account. ### Workspace Workspace contains templates. Each workspace has access to their own templates and organization default templates. ### Master Workspace Master Workspace is the main/default workspace of your Organization. The Master Workspace identifier is the email you signed up with. ### Default Template Default template is a template that is available for all workspaces by default. You can set the template access type under Page Setup. If template has \"Organization\" access then your users can use them from the \"New\" menu in the Editor. ### Data Field Data Field is a placeholder for the specific data in your JSON data set. In this example JSON you can access the buyer name using Data Field `{paymentDetails::buyerName}`. The separator between depth levels is :: (two colons). When designing the template you don’t have to know every Data Field, our editor automatically extracts all the available fields from your data set and provides an easy way to insert them into the template. ``` { \"documentNumber\": 1, \"paymentDetails\": { \"method\": \"Credit Card\", \"buyerName\": \"John Smith\" }, \"items\": [ { \"id\": 1, \"name\": \"Item one\" } ] } ``` ## Rate limiting Our API endpoints use IP-based rate limiting and allow you to make up to 2 requests per second and 60 requests per minute. If you make more requests, you will receive a response with HTTP code 429. Response headers contain additional values: | Header | Description | |--------|--------------------------------| | X-RateLimit-Limit | Maximum requests per minute | | X-RateLimit-Remaining | The requests remaining in the current minute | | Retry-After | How many seconds you need to wait until you are allowed to make requests | * * * * * # Libraries and SDKs ## Postman Collection We have created a [Postman Collection](https://www.postman.com/pdfgeneratorapi/workspace/pdf-generator-api-public-workspace/overview) so you can easily test all the API endpoints without developing and code. ## Client Libraries All our Client Libraries are auto-generated using [OpenAPI Generator](https://openapi-generator.tech/) which uses the OpenAPI v3 specification to automatically generate a client library in specific programming language. * [PHP Client](https://github.com/pdfgeneratorapi/php-client) * [Java Client](https://github.com/pdfgeneratorapi/java-client) * [Ruby Client](https://github.com/pdfgeneratorapi/ruby-client) * [Python Client](https://github.com/pdfgeneratorapi/python-client) * [Javascript Client](https://github.com/pdfgeneratorapi/javascript-client) We have validated the generated libraries, but let us know if you find any anomalies in the client code. ## Model Context Protocol (MCP) Server Integrate document generation directly into your AI agents and LLM applications using our official Model Context Protocol (MCP) Server. The MCP server provides a standardized interface that allows AI assistants (like Claude Desktop and other MCP-compatible clients) to securely interact with the PDF Generator API. With it, your AI applications can automatically fetch workspaces, retrieve templates, merge data, and generate PDF documents on the fly. [Get PDF Generator API MCP Server](https://github.com/pdfgeneratorapi/mcp-server) * * * * * # Authentication The PDF Generator API uses __JSON Web Tokens (JWT)__ to authenticate all API requests. These tokens offer a method to establish secure server-to-server authentication by transferring a compact JSON object with a signed payload of your account’s API Key and Secret. When authenticating to the PDF Generator API, a JWT should be generated uniquely by a __server-side application__ and included as a __Bearer Token__ in the header of each request. <SecurityDefinitions /> ## Accessing your API Key and Secret You can find your __API Key__ and __API Secret__ from the __Account Settings__ page after you login to PDF Generator API [here](https://pdfgeneratorapi.com/login). ## Creating a JWT JSON Web Tokens are composed of three sections: a header, a payload (containing a claim set), and a signature. The header and payload are JSON objects, which are serialized to UTF-8 bytes, then encoded using base64url encoding. The JWT's header, payload, and signature are concatenated with periods (.). As a result, a JWT typically takes the following form: ``` {Base64url encoded header}.{Base64url encoded payload}.{Base64url encoded signature} ``` We recommend and support libraries provided on [jwt.io](https://jwt.io/). While other libraries can create JWT, these recommended libraries are the most robust. ### Header Property `alg` defines which signing algorithm is being used. PDF Generator API users HS256. Property `typ` defines the type of token and it is always JWT. ``` { \"alg\": \"HS256\", \"typ\": \"JWT\" } ``` ### Payload The second part of the token is the payload, which contains the claims or the pieces of information being passed about the user and any metadata required. It is mandatory to specify the following claims: * issuer (`iss`): Your API key * subject (`sub`): Workspace identifier * expiration time (`exp`): Timestamp (unix epoch time) until the token is valid. It is highly recommended to set the exp timestamp for a short period, i.e. a matter of seconds. This way, if a token is intercepted or shared, the token will only be valid for a short period of time. ``` { \"iss\": \"ad54aaff89ffdfeff178bb8a8f359b29fcb20edb56250b9f584aa2cb0162ed4a\", \"sub\": \"demo.example@actualreports.com\", \"exp\": 1586112639 } ``` ### Payload for Partners Our partners can send their unique identifier (provided by us) in JWT's partner_id claim. If the `partner_id` value is specified in the JWT, the organization making the request is automatically connected to the partner account. * Partner ID (`partner_id`): Unique identifier provide by PDF Generator API team ``` { \"iss\": \"ad54aaff89ffdfeff178bb8a8f359b29fcb20edb56250b9f584aa2cb0162ed4a\", \"sub\": \"demo.example@actualreports.com\", \"partner_id\": \"my-partner-identifier\", \"exp\": 1586112639 } ``` ### Signature To create the signature part you have to take the encoded header, the encoded payload, a secret, the algorithm specified in the header, and sign that. The signature is used to verify the message wasn't changed along the way, and, in the case of tokens signed with a private key, it can also verify that the sender of the JWT is who it says it is. ``` HMACSHA256( base64UrlEncode(header) + \".\" + base64UrlEncode(payload), API_SECRET) ``` ### Putting all together The output is three Base64-URL strings separated by dots. The following shows a JWT that has the previous header and payload encoded, and it is signed with a secret. ``` eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhZDU0YWFmZjg5ZmZkZmVmZjE3OGJiOGE4ZjM1OWIyOWZjYjIwZWRiNTYyNTBiOWY1ODRhYTJjYjAxNjJlZDRhIiwic3ViIjoiZGVtby5leGFtcGxlQGFjdHVhbHJlcG9ydHMuY29tIn0.SxO-H7UYYYsclS8RGWO1qf0z1cB1m73wF9FLl9RCc1Q // Base64 encoded header: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9 // Base64 encoded payload: eyJpc3MiOiJhZDU0YWFmZjg5ZmZkZmVmZjE3OGJiOGE4ZjM1OWIyOWZjYjIwZWRiNTYyNTBiOWY1ODRhYTJjYjAxNjJlZDRhIiwic3ViIjoiZGVtby5leGFtcGxlQGFjdHVhbHJlcG9ydHMuY29tIn0 // Signature: SxO-H7UYYYsclS8RGWO1qf0z1cB1m73wF9FLl9RCc1Q ``` ## Temporary JWTs You can create a temporary token in [Account Settings](https://pdfgeneratorapi.com/account/organization) page after you login to PDF Generator API. The generated token uses your email address as the subject (`sub`) value and is valid for __15 minutes__. You can also use [jwt.io](https://jwt.io/) to generate test tokens for your API calls. These test tokens should never be used in production applications. * * * * * # Error codes Every error response is a JSON object with a `message` string. Request validation failures (422) also include an `errors` object keyed by the field that failed. ```json { \"message\": \"The identifier field is required.\", \"errors\": { \"identifier\": [\"The identifier field is required.\"] } } ``` | Code | Description | |--------|--------------------------------| | 400 | Bad Request | | 401 | Unauthorized | | 402 | Payment Required | | 403 | Forbidden | | 404 | Not Found | | 405 | Method Not Allowed | | 409 | Conflict | | 410 | Gone | | 422 | Unprocessable Entity | | 429 | Too Many Requests | | 500 | Internal Server Error | | 503 | Service Unavailable | ## 401 Unauthorized | Description | |-----------------------------------------------------------------------------------| | Authentication failed: JWT Token missing. | | Authentication failed: Malformed JWT Token. | | Authentication failed: Expired JWT Token. | | Authentication failed: Invalid workspace. | | Authentication failed: Invalid organization. | | Authentication failed: This application no longer has access to the workspace. | | Authentication failed: The sub field is required. (also `iss` and `exp`) | ## 402 Payment Required | Description | |-----------------------------------------------------------------------------------| | Your account is suspended, please upgrade your account or contact support@pdfgeneratorapi.com. | ## 403 Forbidden | Description | |-----------------------------------------------------------------------------------| | You don't have permission to access this content. Please get in touch with your organization administrator to update your access permissions. | | This application was not granted permission for this request. | | Deleting own user is not allowed. | | Deleting organization owner is not allowed. | ## 404 Not Found | Description | |-----------------------------------------------------------------------------------| | Entity not found. | | Route not found. | | Workspace doesn’t have access to read the template. | ## 422 Unprocessable Entity | Description | |-----------------------------------------------------------------------------------| | Unable to parse JSON, please check formatting. | | Template id should be a numeric value. | | The per page must be at least 1. (with `errors.per_page`) | ## 429 Too Many Requests | Description | |-----------------------------------------------------------------------------------| | Per-second rate limit exceeded. Please slow down your requests. | | Per-minute rate limit exceeded. Please try again in a minute. | | Global per-second rate limit exceeded. Please slow down your requests. | | Global per-minute rate limit exceeded. Please try again in a minute. | * * * * *
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 4.0.
|
|
6
|
+
The version of the OpenAPI document: 4.0.34
|
|
7
7
|
Contact: support@pdfgeneratorapi.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.14.0
|
|
@@ -21,23 +21,27 @@ module PDFGeneratorAPI
|
|
|
21
21
|
end
|
|
22
22
|
# Create workspace
|
|
23
23
|
# Creates a regular workspace with identifier specified in the request.
|
|
24
|
+
# @param create_workspace_request [CreateWorkspaceRequest]
|
|
24
25
|
# @param [Hash] opts the optional parameters
|
|
25
|
-
# @
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
data, _status_code, _headers = create_workspace_with_http_info(opts)
|
|
26
|
+
# @return [InlineObject7]
|
|
27
|
+
def create_workspace(create_workspace_request, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_workspace_with_http_info(create_workspace_request, opts)
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
# Create workspace
|
|
33
33
|
# Creates a regular workspace with identifier specified in the request.
|
|
34
|
+
# @param create_workspace_request [CreateWorkspaceRequest]
|
|
34
35
|
# @param [Hash] opts the optional parameters
|
|
35
|
-
# @
|
|
36
|
-
|
|
37
|
-
def create_workspace_with_http_info(opts = {})
|
|
36
|
+
# @return [Array<(InlineObject7, Integer, Hash)>] InlineObject7 data, response status code and response headers
|
|
37
|
+
def create_workspace_with_http_info(create_workspace_request, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
39
|
@api_client.config.logger.debug 'Calling API: WorkspacesApi.create_workspace ...'
|
|
40
40
|
end
|
|
41
|
+
# verify the required parameter 'create_workspace_request' is set
|
|
42
|
+
if @api_client.config.client_side_validation && create_workspace_request.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'create_workspace_request' when calling WorkspacesApi.create_workspace"
|
|
44
|
+
end
|
|
41
45
|
# resource path
|
|
42
46
|
local_var_path = '/workspaces'
|
|
43
47
|
|
|
@@ -58,10 +62,10 @@ module PDFGeneratorAPI
|
|
|
58
62
|
form_params = opts[:form_params] || {}
|
|
59
63
|
|
|
60
64
|
# http body (model)
|
|
61
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_workspace_request)
|
|
62
66
|
|
|
63
67
|
# return_type
|
|
64
|
-
return_type = opts[:debug_return_type] || '
|
|
68
|
+
return_type = opts[:debug_return_type] || 'InlineObject7'
|
|
65
69
|
|
|
66
70
|
# auth_names
|
|
67
71
|
auth_names = opts[:debug_auth_names] || ['JSONWebTokenAuth']
|
|
@@ -150,7 +154,7 @@ module PDFGeneratorAPI
|
|
|
150
154
|
# Returns workspace information for the workspace identifier specified in the request.
|
|
151
155
|
# @param workspace_identifier [String] Workspace identifier
|
|
152
156
|
# @param [Hash] opts the optional parameters
|
|
153
|
-
# @return [
|
|
157
|
+
# @return [InlineObject7]
|
|
154
158
|
def get_workspace(workspace_identifier, opts = {})
|
|
155
159
|
data, _status_code, _headers = get_workspace_with_http_info(workspace_identifier, opts)
|
|
156
160
|
data
|
|
@@ -160,7 +164,7 @@ module PDFGeneratorAPI
|
|
|
160
164
|
# Returns workspace information for the workspace identifier specified in the request.
|
|
161
165
|
# @param workspace_identifier [String] Workspace identifier
|
|
162
166
|
# @param [Hash] opts the optional parameters
|
|
163
|
-
# @return [Array<(
|
|
167
|
+
# @return [Array<(InlineObject7, Integer, Hash)>] InlineObject7 data, response status code and response headers
|
|
164
168
|
def get_workspace_with_http_info(workspace_identifier, opts = {})
|
|
165
169
|
if @api_client.config.debugging
|
|
166
170
|
@api_client.config.logger.debug 'Calling API: WorkspacesApi.get_workspace ...'
|
|
@@ -187,7 +191,7 @@ module PDFGeneratorAPI
|
|
|
187
191
|
post_body = opts[:debug_body]
|
|
188
192
|
|
|
189
193
|
# return_type
|
|
190
|
-
return_type = opts[:debug_return_type] || '
|
|
194
|
+
return_type = opts[:debug_return_type] || 'InlineObject7'
|
|
191
195
|
|
|
192
196
|
# auth_names
|
|
193
197
|
auth_names = opts[:debug_auth_names] || ['JSONWebTokenAuth']
|
|
@@ -214,6 +218,10 @@ module PDFGeneratorAPI
|
|
|
214
218
|
# @param [Hash] opts the optional parameters
|
|
215
219
|
# @option opts [Integer] :page Pagination: page to return (default to 1)
|
|
216
220
|
# @option opts [Integer] :per_page Pagination: How many records to return per page (default to 15)
|
|
221
|
+
# @option opts [String] :order_by Field to sort the workspaces by (default to 'id')
|
|
222
|
+
# @option opts [String] :order_direction Sort direction (default to 'desc')
|
|
223
|
+
# @option opts [Integer] :activated Returns only active (`1`) or deactivated (`0`) workspaces
|
|
224
|
+
# @option opts [String] :search Returns workspaces whose ID, name or identifier contains the search value
|
|
217
225
|
# @return [InlineObject5]
|
|
218
226
|
def get_workspaces(opts = {})
|
|
219
227
|
data, _status_code, _headers = get_workspaces_with_http_info(opts)
|
|
@@ -225,11 +233,27 @@ module PDFGeneratorAPI
|
|
|
225
233
|
# @param [Hash] opts the optional parameters
|
|
226
234
|
# @option opts [Integer] :page Pagination: page to return (default to 1)
|
|
227
235
|
# @option opts [Integer] :per_page Pagination: How many records to return per page (default to 15)
|
|
236
|
+
# @option opts [String] :order_by Field to sort the workspaces by (default to 'id')
|
|
237
|
+
# @option opts [String] :order_direction Sort direction (default to 'desc')
|
|
238
|
+
# @option opts [Integer] :activated Returns only active (`1`) or deactivated (`0`) workspaces
|
|
239
|
+
# @option opts [String] :search Returns workspaces whose ID, name or identifier contains the search value
|
|
228
240
|
# @return [Array<(InlineObject5, Integer, Hash)>] InlineObject5 data, response status code and response headers
|
|
229
241
|
def get_workspaces_with_http_info(opts = {})
|
|
230
242
|
if @api_client.config.debugging
|
|
231
243
|
@api_client.config.logger.debug 'Calling API: WorkspacesApi.get_workspaces ...'
|
|
232
244
|
end
|
|
245
|
+
allowable_values = ["id", "name", "identifier", "created_at"]
|
|
246
|
+
if @api_client.config.client_side_validation && opts[:'order_by'] && !allowable_values.include?(opts[:'order_by'])
|
|
247
|
+
fail ArgumentError, "invalid value for \"order_by\", must be one of #{allowable_values}"
|
|
248
|
+
end
|
|
249
|
+
allowable_values = ["asc", "desc"]
|
|
250
|
+
if @api_client.config.client_side_validation && opts[:'order_direction'] && !allowable_values.include?(opts[:'order_direction'])
|
|
251
|
+
fail ArgumentError, "invalid value for \"order_direction\", must be one of #{allowable_values}"
|
|
252
|
+
end
|
|
253
|
+
allowable_values = [0, 1]
|
|
254
|
+
if @api_client.config.client_side_validation && opts[:'activated'] && !allowable_values.include?(opts[:'activated'])
|
|
255
|
+
fail ArgumentError, "invalid value for \"activated\", must be one of #{allowable_values}"
|
|
256
|
+
end
|
|
233
257
|
# resource path
|
|
234
258
|
local_var_path = '/workspaces'
|
|
235
259
|
|
|
@@ -237,6 +261,10 @@ module PDFGeneratorAPI
|
|
|
237
261
|
query_params = opts[:query_params] || {}
|
|
238
262
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
239
263
|
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
|
264
|
+
query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
|
|
265
|
+
query_params[:'order_direction'] = opts[:'order_direction'] if !opts[:'order_direction'].nil?
|
|
266
|
+
query_params[:'activated'] = opts[:'activated'] if !opts[:'activated'].nil?
|
|
267
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
240
268
|
|
|
241
269
|
# header parameters
|
|
242
270
|
header_params = opts[:header_params] || {}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#PDF Generator API
|
|
3
3
|
|
|
4
|
-
## Introduction [PDF Generator API](https://pdfgeneratorapi.com) 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. The PDF Generator API features a web API architecture, allowing you to code in the language of your choice. This API supports the JSON media type, and uses UTF-8 character encoding. ## Base URL The base URL for all the API endpoints is `https://us1.pdfgeneratorapi.com/api/v4` For example * `https://us1.pdfgeneratorapi.com/api/v4/templates` * `https://us1.pdfgeneratorapi.com/api/v4/workspaces` * `https://us1.pdfgeneratorapi.com/api/v4/templates/123123` ## Editor PDF Generator API comes with a powerful drag & drop editor that allows to create any kind of document templates, from barcode labels to invoices, quotes and reports. You can find tutorials and videos from our [Support Portal](https://support.pdfgeneratorapi.com). * [Component specification](https://support.pdfgeneratorapi.com/en/category/components-1ffseaj/) * [Expression Language documentation](https://support.pdfgeneratorapi.com/en/category/expression-language-q203pa/) * [Frequently asked questions and answers](https://support.pdfgeneratorapi.com/en/category/qanda-1ov519d/) ## Definitions ### Organization Organization is a group of workspaces owned by your account. ### Workspace Workspace contains templates. Each workspace has access to their own templates and organization default templates. ### Master Workspace Master Workspace is the main/default workspace of your Organization. The Master Workspace identifier is the email you signed up with. ### Default Template Default template is a template that is available for all workspaces by default. You can set the template access type under Page Setup. If template has \"Organization\" access then your users can use them from the \"New\" menu in the Editor. ### Data Field Data Field is a placeholder for the specific data in your JSON data set. In this example JSON you can access the buyer name using Data Field `{paymentDetails::buyerName}`. The separator between depth levels is :: (two colons). When designing the template you don’t have to know every Data Field, our editor automatically extracts all the available fields from your data set and provides an easy way to insert them into the template. ``` { \"documentNumber\": 1, \"paymentDetails\": { \"method\": \"Credit Card\", \"buyerName\": \"John Smith\" }, \"items\": [ { \"id\": 1, \"name\": \"Item one\" } ] } ``` ## Rate limiting Our API endpoints use IP-based rate limiting and allow you to make up to 2 requests per second and 60 requests per minute. If you make more requests, you will receive a response with HTTP code 429. Response headers contain additional values: | Header | Description | |--------|--------------------------------| | X-RateLimit-Limit | Maximum requests per minute | | X-RateLimit-Remaining | The requests remaining in the current minute | | Retry-After | How many seconds you need to wait until you are allowed to make requests | * * * * * # Libraries and SDKs ## Postman Collection We have created a [Postman Collection](https://www.postman.com/pdfgeneratorapi/workspace/pdf-generator-api-public-workspace/overview) so you can easily test all the API endpoints without developing and code. ## Client Libraries All our Client Libraries are auto-generated using [OpenAPI Generator](https://openapi-generator.tech/) which uses the OpenAPI v3 specification to automatically generate a client library in specific programming language. * [PHP Client](https://github.com/pdfgeneratorapi/php-client) * [Java Client](https://github.com/pdfgeneratorapi/java-client) * [Ruby Client](https://github.com/pdfgeneratorapi/ruby-client) * [Python Client](https://github.com/pdfgeneratorapi/python-client) * [Javascript Client](https://github.com/pdfgeneratorapi/javascript-client) We have validated the generated libraries, but let us know if you find any anomalies in the client code. ## Model Context Protocol (MCP) Server Integrate document generation directly into your AI agents and LLM applications using our official Model Context Protocol (MCP) Server. The MCP server provides a standardized interface that allows AI assistants (like Claude Desktop and other MCP-compatible clients) to securely interact with the PDF Generator API. With it, your AI applications can automatically fetch workspaces, retrieve templates, merge data, and generate PDF documents on the fly. [Get PDF Generator API MCP Server](https://github.com/pdfgeneratorapi/mcp-server) * * * * * # Authentication The PDF Generator API uses __JSON Web Tokens (JWT)__ to authenticate all API requests. These tokens offer a method to establish secure server-to-server authentication by transferring a compact JSON object with a signed payload of your account’s API Key and Secret. When authenticating to the PDF Generator API, a JWT should be generated uniquely by a __server-side application__ and included as a __Bearer Token__ in the header of each request. <SecurityDefinitions /> ## Accessing your API Key and Secret You can find your __API Key__ and __API Secret__ from the __Account Settings__ page after you login to PDF Generator API [here](https://pdfgeneratorapi.com/login). ## Creating a JWT JSON Web Tokens are composed of three sections: a header, a payload (containing a claim set), and a signature. The header and payload are JSON objects, which are serialized to UTF-8 bytes, then encoded using base64url encoding. The JWT's header, payload, and signature are concatenated with periods (.). As a result, a JWT typically takes the following form: ``` {Base64url encoded header}.{Base64url encoded payload}.{Base64url encoded signature} ``` We recommend and support libraries provided on [jwt.io](https://jwt.io/). While other libraries can create JWT, these recommended libraries are the most robust. ### Header Property `alg` defines which signing algorithm is being used. PDF Generator API users HS256. Property `typ` defines the type of token and it is always JWT. ``` { \"alg\": \"HS256\", \"typ\": \"JWT\" } ``` ### Payload The second part of the token is the payload, which contains the claims or the pieces of information being passed about the user and any metadata required. It is mandatory to specify the following claims: * issuer (`iss`): Your API key * subject (`sub`): Workspace identifier * expiration time (`exp`): Timestamp (unix epoch time) until the token is valid. It is highly recommended to set the exp timestamp for a short period, i.e. a matter of seconds. This way, if a token is intercepted or shared, the token will only be valid for a short period of time. ``` { \"iss\": \"ad54aaff89ffdfeff178bb8a8f359b29fcb20edb56250b9f584aa2cb0162ed4a\", \"sub\": \"demo.example@actualreports.com\", \"exp\": 1586112639 } ``` ### Payload for Partners Our partners can send their unique identifier (provided by us) in JWT's partner_id claim. If the `partner_id` value is specified in the JWT, the organization making the request is automatically connected to the partner account. * Partner ID (`partner_id`): Unique identifier provide by PDF Generator API team ``` { \"iss\": \"ad54aaff89ffdfeff178bb8a8f359b29fcb20edb56250b9f584aa2cb0162ed4a\", \"sub\": \"demo.example@actualreports.com\", \"partner_id\": \"my-partner-identifier\", \"exp\": 1586112639 } ``` ### Signature To create the signature part you have to take the encoded header, the encoded payload, a secret, the algorithm specified in the header, and sign that. The signature is used to verify the message wasn't changed along the way, and, in the case of tokens signed with a private key, it can also verify that the sender of the JWT is who it says it is. ``` HMACSHA256( base64UrlEncode(header) + \".\" + base64UrlEncode(payload), API_SECRET) ``` ### Putting all together The output is three Base64-URL strings separated by dots. The following shows a JWT that has the previous header and payload encoded, and it is signed with a secret. ``` eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhZDU0YWFmZjg5ZmZkZmVmZjE3OGJiOGE4ZjM1OWIyOWZjYjIwZWRiNTYyNTBiOWY1ODRhYTJjYjAxNjJlZDRhIiwic3ViIjoiZGVtby5leGFtcGxlQGFjdHVhbHJlcG9ydHMuY29tIn0.SxO-H7UYYYsclS8RGWO1qf0z1cB1m73wF9FLl9RCc1Q // Base64 encoded header: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9 // Base64 encoded payload: eyJpc3MiOiJhZDU0YWFmZjg5ZmZkZmVmZjE3OGJiOGE4ZjM1OWIyOWZjYjIwZWRiNTYyNTBiOWY1ODRhYTJjYjAxNjJlZDRhIiwic3ViIjoiZGVtby5leGFtcGxlQGFjdHVhbHJlcG9ydHMuY29tIn0 // Signature: SxO-H7UYYYsclS8RGWO1qf0z1cB1m73wF9FLl9RCc1Q ``` ## Temporary JWTs You can create a temporary token in [Account Settings](https://pdfgeneratorapi.com/account/organization) page after you login to PDF Generator API. The generated token uses your email address as the subject (`sub`) value and is valid for __15 minutes__. You can also use [jwt.io](https://jwt.io/) to generate test tokens for your API calls. These test tokens should never be used in production applications. * * * * * # Error codes | Code | Description | |--------|--------------------------------| | 401 | Unauthorized | | 402 | Payment Required | | 403 | Forbidden | | 404 | Not Found | | 422 | Unprocessable Entity | | 429 | Too Many Requests | | 500 | Internal Server Error | ## 401 Unauthorized | Description | |-------------------------------------------------------------------------| | Authentication failed: request expired | | Authentication failed: workspace missing | | Authentication failed: key missing | | Authentication failed: property 'iss' (issuer) missing in JWT | | Authentication failed: property 'sub' (subject) missing in JWT | | Authentication failed: property 'exp' (expiration time) missing in JWT | | Authentication failed: incorrect signature | ## 402 Payment Required | Description | |-------------------------------------------------------------------------| | Your account is suspended, please upgrade your account | ## 403 Forbidden | Description | |-------------------------------------------------------------------------| | Your account has exceeded the monthly document generation limit. | | Access not granted: You cannot delete master workspace via API | | Access not granted: Template is not accessible by this organization | | Your session has expired, please close and reopen the editor. | ## 404 Entity not found | Description | |-------------------------------------------------------------------------| | Entity not found | | Resource not found | | None of the templates is available for the workspace. | ## 422 Unprocessable Entity | Description | |-------------------------------------------------------------------------| | Unable to parse JSON, please check formatting | | Required parameter missing | | Required parameter missing: template definition not defined | | Required parameter missing: template not defined | ## 429 Too Many Requests | Description | |-------------------------------------------------------------------------| | You can make up to 2 requests per second and 60 requests per minute. | * * * * *
|
|
4
|
+
## Introduction [PDF Generator API](https://pdfgeneratorapi.com) 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. The PDF Generator API features a web API architecture, allowing you to code in the language of your choice. This API supports the JSON media type, and uses UTF-8 character encoding. ## Base URL The base URL for all the API endpoints is `https://us1.pdfgeneratorapi.com/api/v4` For example * `https://us1.pdfgeneratorapi.com/api/v4/templates` * `https://us1.pdfgeneratorapi.com/api/v4/workspaces` * `https://us1.pdfgeneratorapi.com/api/v4/templates/123123` ## Editor PDF Generator API comes with a powerful drag & drop editor that allows to create any kind of document templates, from barcode labels to invoices, quotes and reports. You can find tutorials and videos from our [Support Portal](https://support.pdfgeneratorapi.com). * [Component specification](https://support.pdfgeneratorapi.com/en/category/components-1ffseaj/) * [Expression Language documentation](https://support.pdfgeneratorapi.com/en/category/expression-language-q203pa/) * [Frequently asked questions and answers](https://support.pdfgeneratorapi.com/en/category/qanda-1ov519d/) ## Definitions ### Organization Organization is a group of workspaces owned by your account. ### Workspace Workspace contains templates. Each workspace has access to their own templates and organization default templates. ### Master Workspace Master Workspace is the main/default workspace of your Organization. The Master Workspace identifier is the email you signed up with. ### Default Template Default template is a template that is available for all workspaces by default. You can set the template access type under Page Setup. If template has \"Organization\" access then your users can use them from the \"New\" menu in the Editor. ### Data Field Data Field is a placeholder for the specific data in your JSON data set. In this example JSON you can access the buyer name using Data Field `{paymentDetails::buyerName}`. The separator between depth levels is :: (two colons). When designing the template you don’t have to know every Data Field, our editor automatically extracts all the available fields from your data set and provides an easy way to insert them into the template. ``` { \"documentNumber\": 1, \"paymentDetails\": { \"method\": \"Credit Card\", \"buyerName\": \"John Smith\" }, \"items\": [ { \"id\": 1, \"name\": \"Item one\" } ] } ``` ## Rate limiting Our API endpoints use IP-based rate limiting and allow you to make up to 2 requests per second and 60 requests per minute. If you make more requests, you will receive a response with HTTP code 429. Response headers contain additional values: | Header | Description | |--------|--------------------------------| | X-RateLimit-Limit | Maximum requests per minute | | X-RateLimit-Remaining | The requests remaining in the current minute | | Retry-After | How many seconds you need to wait until you are allowed to make requests | * * * * * # Libraries and SDKs ## Postman Collection We have created a [Postman Collection](https://www.postman.com/pdfgeneratorapi/workspace/pdf-generator-api-public-workspace/overview) so you can easily test all the API endpoints without developing and code. ## Client Libraries All our Client Libraries are auto-generated using [OpenAPI Generator](https://openapi-generator.tech/) which uses the OpenAPI v3 specification to automatically generate a client library in specific programming language. * [PHP Client](https://github.com/pdfgeneratorapi/php-client) * [Java Client](https://github.com/pdfgeneratorapi/java-client) * [Ruby Client](https://github.com/pdfgeneratorapi/ruby-client) * [Python Client](https://github.com/pdfgeneratorapi/python-client) * [Javascript Client](https://github.com/pdfgeneratorapi/javascript-client) We have validated the generated libraries, but let us know if you find any anomalies in the client code. ## Model Context Protocol (MCP) Server Integrate document generation directly into your AI agents and LLM applications using our official Model Context Protocol (MCP) Server. The MCP server provides a standardized interface that allows AI assistants (like Claude Desktop and other MCP-compatible clients) to securely interact with the PDF Generator API. With it, your AI applications can automatically fetch workspaces, retrieve templates, merge data, and generate PDF documents on the fly. [Get PDF Generator API MCP Server](https://github.com/pdfgeneratorapi/mcp-server) * * * * * # Authentication The PDF Generator API uses __JSON Web Tokens (JWT)__ to authenticate all API requests. These tokens offer a method to establish secure server-to-server authentication by transferring a compact JSON object with a signed payload of your account’s API Key and Secret. When authenticating to the PDF Generator API, a JWT should be generated uniquely by a __server-side application__ and included as a __Bearer Token__ in the header of each request. <SecurityDefinitions /> ## Accessing your API Key and Secret You can find your __API Key__ and __API Secret__ from the __Account Settings__ page after you login to PDF Generator API [here](https://pdfgeneratorapi.com/login). ## Creating a JWT JSON Web Tokens are composed of three sections: a header, a payload (containing a claim set), and a signature. The header and payload are JSON objects, which are serialized to UTF-8 bytes, then encoded using base64url encoding. The JWT's header, payload, and signature are concatenated with periods (.). As a result, a JWT typically takes the following form: ``` {Base64url encoded header}.{Base64url encoded payload}.{Base64url encoded signature} ``` We recommend and support libraries provided on [jwt.io](https://jwt.io/). While other libraries can create JWT, these recommended libraries are the most robust. ### Header Property `alg` defines which signing algorithm is being used. PDF Generator API users HS256. Property `typ` defines the type of token and it is always JWT. ``` { \"alg\": \"HS256\", \"typ\": \"JWT\" } ``` ### Payload The second part of the token is the payload, which contains the claims or the pieces of information being passed about the user and any metadata required. It is mandatory to specify the following claims: * issuer (`iss`): Your API key * subject (`sub`): Workspace identifier * expiration time (`exp`): Timestamp (unix epoch time) until the token is valid. It is highly recommended to set the exp timestamp for a short period, i.e. a matter of seconds. This way, if a token is intercepted or shared, the token will only be valid for a short period of time. ``` { \"iss\": \"ad54aaff89ffdfeff178bb8a8f359b29fcb20edb56250b9f584aa2cb0162ed4a\", \"sub\": \"demo.example@actualreports.com\", \"exp\": 1586112639 } ``` ### Payload for Partners Our partners can send their unique identifier (provided by us) in JWT's partner_id claim. If the `partner_id` value is specified in the JWT, the organization making the request is automatically connected to the partner account. * Partner ID (`partner_id`): Unique identifier provide by PDF Generator API team ``` { \"iss\": \"ad54aaff89ffdfeff178bb8a8f359b29fcb20edb56250b9f584aa2cb0162ed4a\", \"sub\": \"demo.example@actualreports.com\", \"partner_id\": \"my-partner-identifier\", \"exp\": 1586112639 } ``` ### Signature To create the signature part you have to take the encoded header, the encoded payload, a secret, the algorithm specified in the header, and sign that. The signature is used to verify the message wasn't changed along the way, and, in the case of tokens signed with a private key, it can also verify that the sender of the JWT is who it says it is. ``` HMACSHA256( base64UrlEncode(header) + \".\" + base64UrlEncode(payload), API_SECRET) ``` ### Putting all together The output is three Base64-URL strings separated by dots. The following shows a JWT that has the previous header and payload encoded, and it is signed with a secret. ``` eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhZDU0YWFmZjg5ZmZkZmVmZjE3OGJiOGE4ZjM1OWIyOWZjYjIwZWRiNTYyNTBiOWY1ODRhYTJjYjAxNjJlZDRhIiwic3ViIjoiZGVtby5leGFtcGxlQGFjdHVhbHJlcG9ydHMuY29tIn0.SxO-H7UYYYsclS8RGWO1qf0z1cB1m73wF9FLl9RCc1Q // Base64 encoded header: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9 // Base64 encoded payload: eyJpc3MiOiJhZDU0YWFmZjg5ZmZkZmVmZjE3OGJiOGE4ZjM1OWIyOWZjYjIwZWRiNTYyNTBiOWY1ODRhYTJjYjAxNjJlZDRhIiwic3ViIjoiZGVtby5leGFtcGxlQGFjdHVhbHJlcG9ydHMuY29tIn0 // Signature: SxO-H7UYYYsclS8RGWO1qf0z1cB1m73wF9FLl9RCc1Q ``` ## Temporary JWTs You can create a temporary token in [Account Settings](https://pdfgeneratorapi.com/account/organization) page after you login to PDF Generator API. The generated token uses your email address as the subject (`sub`) value and is valid for __15 minutes__. You can also use [jwt.io](https://jwt.io/) to generate test tokens for your API calls. These test tokens should never be used in production applications. * * * * * # Error codes Every error response is a JSON object with a `message` string. Request validation failures (422) also include an `errors` object keyed by the field that failed. ```json { \"message\": \"The identifier field is required.\", \"errors\": { \"identifier\": [\"The identifier field is required.\"] } } ``` | Code | Description | |--------|--------------------------------| | 400 | Bad Request | | 401 | Unauthorized | | 402 | Payment Required | | 403 | Forbidden | | 404 | Not Found | | 405 | Method Not Allowed | | 409 | Conflict | | 410 | Gone | | 422 | Unprocessable Entity | | 429 | Too Many Requests | | 500 | Internal Server Error | | 503 | Service Unavailable | ## 401 Unauthorized | Description | |-----------------------------------------------------------------------------------| | Authentication failed: JWT Token missing. | | Authentication failed: Malformed JWT Token. | | Authentication failed: Expired JWT Token. | | Authentication failed: Invalid workspace. | | Authentication failed: Invalid organization. | | Authentication failed: This application no longer has access to the workspace. | | Authentication failed: The sub field is required. (also `iss` and `exp`) | ## 402 Payment Required | Description | |-----------------------------------------------------------------------------------| | Your account is suspended, please upgrade your account or contact support@pdfgeneratorapi.com. | ## 403 Forbidden | Description | |-----------------------------------------------------------------------------------| | You don't have permission to access this content. Please get in touch with your organization administrator to update your access permissions. | | This application was not granted permission for this request. | | Deleting own user is not allowed. | | Deleting organization owner is not allowed. | ## 404 Not Found | Description | |-----------------------------------------------------------------------------------| | Entity not found. | | Route not found. | | Workspace doesn’t have access to read the template. | ## 422 Unprocessable Entity | Description | |-----------------------------------------------------------------------------------| | Unable to parse JSON, please check formatting. | | Template id should be a numeric value. | | The per page must be at least 1. (with `errors.per_page`) | ## 429 Too Many Requests | Description | |-----------------------------------------------------------------------------------| | Per-second rate limit exceeded. Please slow down your requests. | | Per-minute rate limit exceeded. Please try again in a minute. | | Global per-second rate limit exceeded. Please slow down your requests. | | Global per-minute rate limit exceeded. Please try again in a minute. | * * * * *
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 4.0.
|
|
6
|
+
The version of the OpenAPI document: 4.0.34
|
|
7
7
|
Contact: support@pdfgeneratorapi.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.14.0
|