Skip to main content
The Forms client does not require API credentials. Forms are identified by a UUID that you obtain from the Paubox dashboard.

Instantiation

Get a form

Retrieve a form’s metadata, field schema, and rendered HTML/CSS:
The response is a raw JSON string. Decode it to access fields:
Key fields in the response: getForm dies if the form UUID is invalid or the form is not found.

Submit a form

submitForm dies on failure with a message containing the HTTP status code and response body.

Submitting with file attachments

The maximum total request size is 250 MB.
Each attachment in the arrayref is a hashref with two keys:

Error handling

Wrap calls in eval to catch failures: