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 returned stdClass includes: getForm throws \Exception if the form is not found or the response is invalid.

Submit a form

submitForm returns true on a successful submission (HTTP 201) and throws \Exception 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.
The FormAttachment fields:

Error handling

Wrap calls in a try/catch block: