All URIs are relative to https://us1.pdfgeneratorapi.com/api/v4
| Method | HTTP request | Description |
|---|---|---|
| createForm | POST /forms | Create form |
| deleteForm | DELETE /forms/{formId} | Delete form |
| getForm | GET /forms/{formId} | Get form |
| getForms | GET /forms | Get forms |
| importForm | POST /forms/import | Import Form |
| openFormBuilder | POST /forms/open | Open new form builder |
| openFormBuilderForExistingForm | POST /forms/{formId}/open | Open existing form builder |
| shareForm | POST /forms/{formId}/share | Share form |
| updateForm | PUT /forms/{formId} | Update form |
InlineObject20 createForm(formConfigurationNew)
Create form
Creates a new form based on the configuration sent in the request body.
// Import classes:
import com.pdfgeneratorapi.client.ApiClient;
import com.pdfgeneratorapi.client.ApiException;
import com.pdfgeneratorapi.client.Configuration;
import com.pdfgeneratorapi.client.auth.*;
import com.pdfgeneratorapi.client.models.*;
import com.pdfgeneratorapi.client.api.FormsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://us1.pdfgeneratorapi.com/api/v4");
// Configure HTTP bearer authorization: JSONWebTokenAuth
HttpBearerAuth JSONWebTokenAuth = (HttpBearerAuth) defaultClient.getAuthentication("JSONWebTokenAuth");
JSONWebTokenAuth.setBearerToken("BEARER TOKEN");
FormsApi apiInstance = new FormsApi(defaultClient);
FormConfigurationNew formConfigurationNew = new FormConfigurationNew(); // FormConfigurationNew | Form configuration
try {
InlineObject20 result = apiInstance.createForm(formConfigurationNew);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormsApi#createForm");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| formConfigurationNew | FormConfigurationNew | Form configuration |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Form configuration | - |
| 401 | Unauthorized | - |
| 402 | Account Suspended | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 422 | Unprocessable Entity | - |
| 429 | Too Many Requests | - |
| 500 | Internal Server Error | - |
deleteForm(formId)
Delete form
Deletes the form with specified id
// Import classes:
import com.pdfgeneratorapi.client.ApiClient;
import com.pdfgeneratorapi.client.ApiException;
import com.pdfgeneratorapi.client.Configuration;
import com.pdfgeneratorapi.client.auth.*;
import com.pdfgeneratorapi.client.models.*;
import com.pdfgeneratorapi.client.api.FormsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://us1.pdfgeneratorapi.com/api/v4");
// Configure HTTP bearer authorization: JSONWebTokenAuth
HttpBearerAuth JSONWebTokenAuth = (HttpBearerAuth) defaultClient.getAuthentication("JSONWebTokenAuth");
JSONWebTokenAuth.setBearerToken("BEARER TOKEN");
FormsApi apiInstance = new FormsApi(defaultClient);
Integer formId = 1; // Integer | Form unique identifier
try {
apiInstance.deleteForm(formId);
} catch (ApiException e) {
System.err.println("Exception when calling FormsApi#deleteForm");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| formId | Integer | Form unique identifier |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | The resource was deleted successfully. | - |
| 401 | Unauthorized | - |
| 402 | Account Suspended | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 422 | Unprocessable Entity | - |
| 429 | Too Many Requests | - |
| 500 | Internal Server Error | - |
InlineObject20 getForm(formId)
Get form
Returns form configuration
// Import classes:
import com.pdfgeneratorapi.client.ApiClient;
import com.pdfgeneratorapi.client.ApiException;
import com.pdfgeneratorapi.client.Configuration;
import com.pdfgeneratorapi.client.auth.*;
import com.pdfgeneratorapi.client.models.*;
import com.pdfgeneratorapi.client.api.FormsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://us1.pdfgeneratorapi.com/api/v4");
// Configure HTTP bearer authorization: JSONWebTokenAuth
HttpBearerAuth JSONWebTokenAuth = (HttpBearerAuth) defaultClient.getAuthentication("JSONWebTokenAuth");
JSONWebTokenAuth.setBearerToken("BEARER TOKEN");
FormsApi apiInstance = new FormsApi(defaultClient);
Integer formId = 1; // Integer | Form unique identifier
try {
InlineObject20 result = apiInstance.getForm(formId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormsApi#getForm");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| formId | Integer | Form unique identifier |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Form configuration | - |
| 401 | Unauthorized | - |
| 402 | Account Suspended | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 422 | Unprocessable Entity | - |
| 429 | Too Many Requests | - |
| 500 | Internal Server Error | - |
InlineObject6 getForms(page, perPage)
Get forms
Returns a list of forms available for the organization
// Import classes:
import com.pdfgeneratorapi.client.ApiClient;
import com.pdfgeneratorapi.client.ApiException;
import com.pdfgeneratorapi.client.Configuration;
import com.pdfgeneratorapi.client.auth.*;
import com.pdfgeneratorapi.client.models.*;
import com.pdfgeneratorapi.client.api.FormsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://us1.pdfgeneratorapi.com/api/v4");
// Configure HTTP bearer authorization: JSONWebTokenAuth
HttpBearerAuth JSONWebTokenAuth = (HttpBearerAuth) defaultClient.getAuthentication("JSONWebTokenAuth");
JSONWebTokenAuth.setBearerToken("BEARER TOKEN");
FormsApi apiInstance = new FormsApi(defaultClient);
Integer page = 1; // Integer | Pagination: page to return
Integer perPage = 15; // Integer | Pagination: How many records to return per page
try {
InlineObject6 result = apiInstance.getForms(page, perPage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormsApi#getForms");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| page | Integer | Pagination: page to return | [optional] [default to 1] |
| perPage | Integer | Pagination: How many records to return per page | [optional] [default to 15] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | An array of form objects | - |
| 401 | Unauthorized | - |
| 402 | Account Suspended | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 422 | Unprocessable Entity | - |
| 429 | Too Many Requests | - |
| 500 | Internal Server Error | - |
InlineObject20 importForm(importFormRequest)
Import Form
Creates a new form based on editable PDF
// Import classes:
import com.pdfgeneratorapi.client.ApiClient;
import com.pdfgeneratorapi.client.ApiException;
import com.pdfgeneratorapi.client.Configuration;
import com.pdfgeneratorapi.client.auth.*;
import com.pdfgeneratorapi.client.models.*;
import com.pdfgeneratorapi.client.api.FormsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://us1.pdfgeneratorapi.com/api/v4");
// Configure HTTP bearer authorization: JSONWebTokenAuth
HttpBearerAuth JSONWebTokenAuth = (HttpBearerAuth) defaultClient.getAuthentication("JSONWebTokenAuth");
JSONWebTokenAuth.setBearerToken("BEARER TOKEN");
FormsApi apiInstance = new FormsApi(defaultClient);
ImportFormRequest importFormRequest = new ImportFormRequest(); // ImportFormRequest | Import editable PDF via URL or base64 string as form
try {
InlineObject20 result = apiInstance.importForm(importFormRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormsApi#importForm");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| importFormRequest | ImportFormRequest | Import editable PDF via URL or base64 string as form |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Form configuration | - |
| 401 | Unauthorized | - |
| 402 | Account Suspended | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 422 | Unprocessable Entity | - |
| 429 | Too Many Requests | - |
| 500 | Internal Server Error | - |
InlineObject22 openFormBuilder()
Open new form builder
Creates a new Form Builder session and returns a URL that can be used to open the embeddable Form Builder for creating a new form.
// Import classes:
import com.pdfgeneratorapi.client.ApiClient;
import com.pdfgeneratorapi.client.ApiException;
import com.pdfgeneratorapi.client.Configuration;
import com.pdfgeneratorapi.client.auth.*;
import com.pdfgeneratorapi.client.models.*;
import com.pdfgeneratorapi.client.api.FormsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://us1.pdfgeneratorapi.com/api/v4");
// Configure HTTP bearer authorization: JSONWebTokenAuth
HttpBearerAuth JSONWebTokenAuth = (HttpBearerAuth) defaultClient.getAuthentication("JSONWebTokenAuth");
JSONWebTokenAuth.setBearerToken("BEARER TOKEN");
FormsApi apiInstance = new FormsApi(defaultClient);
try {
InlineObject22 result = apiInstance.openFormBuilder();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormsApi#openFormBuilder");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Form Builder URL | - |
| 401 | Unauthorized | - |
| 402 | Account Suspended | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 422 | Unprocessable Entity | - |
| 429 | Too Many Requests | - |
| 500 | Internal Server Error | - |
InlineObject22 openFormBuilderForExistingForm(formId)
Open existing form builder
Creates a Form Builder session for editing an existing form and returns a URL that can be used to open the embeddable Form Builder.
// Import classes:
import com.pdfgeneratorapi.client.ApiClient;
import com.pdfgeneratorapi.client.ApiException;
import com.pdfgeneratorapi.client.Configuration;
import com.pdfgeneratorapi.client.auth.*;
import com.pdfgeneratorapi.client.models.*;
import com.pdfgeneratorapi.client.api.FormsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://us1.pdfgeneratorapi.com/api/v4");
// Configure HTTP bearer authorization: JSONWebTokenAuth
HttpBearerAuth JSONWebTokenAuth = (HttpBearerAuth) defaultClient.getAuthentication("JSONWebTokenAuth");
JSONWebTokenAuth.setBearerToken("BEARER TOKEN");
FormsApi apiInstance = new FormsApi(defaultClient);
Integer formId = 1; // Integer | Form unique identifier
try {
InlineObject22 result = apiInstance.openFormBuilderForExistingForm(formId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormsApi#openFormBuilderForExistingForm");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| formId | Integer | Form unique identifier |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Form Builder URL | - |
| 401 | Unauthorized | - |
| 402 | Account Suspended | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 422 | Unprocessable Entity | - |
| 429 | Too Many Requests | - |
| 500 | Internal Server Error | - |
InlineObject21 shareForm(formId)
Share form
Creates an unique sharing URL to collect form data
// Import classes:
import com.pdfgeneratorapi.client.ApiClient;
import com.pdfgeneratorapi.client.ApiException;
import com.pdfgeneratorapi.client.Configuration;
import com.pdfgeneratorapi.client.auth.*;
import com.pdfgeneratorapi.client.models.*;
import com.pdfgeneratorapi.client.api.FormsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://us1.pdfgeneratorapi.com/api/v4");
// Configure HTTP bearer authorization: JSONWebTokenAuth
HttpBearerAuth JSONWebTokenAuth = (HttpBearerAuth) defaultClient.getAuthentication("JSONWebTokenAuth");
JSONWebTokenAuth.setBearerToken("BEARER TOKEN");
FormsApi apiInstance = new FormsApi(defaultClient);
Integer formId = 1; // Integer | Form unique identifier
try {
InlineObject21 result = apiInstance.shareForm(formId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormsApi#shareForm");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| formId | Integer | Form unique identifier |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Form sharing URL | - |
| 401 | Unauthorized | - |
| 402 | Account Suspended | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 422 | Unprocessable Entity | - |
| 429 | Too Many Requests | - |
| 500 | Internal Server Error | - |
InlineObject20 updateForm(formId, formConfigurationNew)
Update form
Updates the form configuration. The form configuration must be complete as the entire configuration is replaced and not merged.
// Import classes:
import com.pdfgeneratorapi.client.ApiClient;
import com.pdfgeneratorapi.client.ApiException;
import com.pdfgeneratorapi.client.Configuration;
import com.pdfgeneratorapi.client.auth.*;
import com.pdfgeneratorapi.client.models.*;
import com.pdfgeneratorapi.client.api.FormsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://us1.pdfgeneratorapi.com/api/v4");
// Configure HTTP bearer authorization: JSONWebTokenAuth
HttpBearerAuth JSONWebTokenAuth = (HttpBearerAuth) defaultClient.getAuthentication("JSONWebTokenAuth");
JSONWebTokenAuth.setBearerToken("BEARER TOKEN");
FormsApi apiInstance = new FormsApi(defaultClient);
Integer formId = 1; // Integer | Form unique identifier
FormConfigurationNew formConfigurationNew = new FormConfigurationNew(); // FormConfigurationNew | Form configuration
try {
InlineObject20 result = apiInstance.updateForm(formId, formConfigurationNew);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormsApi#updateForm");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| formId | Integer | Form unique identifier | |
| formConfigurationNew | FormConfigurationNew | Form configuration |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Form configuration | - |
| 401 | Unauthorized | - |
| 402 | Account Suspended | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 422 | Unprocessable Entity | - |
| 429 | Too Many Requests | - |
| 500 | Internal Server Error | - |