Skip to main content
GetForm and SubmitForm do not require API credentials. The form management methods require an API key with the forms scope (see Manage forms). Forms are identified by a UUID that you obtain from the Paubox dashboard.

Instantiation

Use IFormsLibrary for dependency injection in ASP.NET Core:

Get a form

Retrieve a form’s metadata, field schema, and rendered HTML/CSS:
The Form object includes:

Submit a form

SubmitForm returns void on success and throws on failure.

Submitting with file attachments

The maximum total request size is 250 MB.
The FormAttachment properties:

Manage forms

These methods require a FormsLibrary constructed with an API key that has the forms scope, either new FormsLibrary("YOUR_API_KEY") or new FormsLibrary(configuration) with FormsAPIKey set. The key is sent as Authorization: Bearer YOUR_API_KEY. Without a key they throw InvalidOperationException.

Error handling

Non-2xx responses throw PauboxApiException. Its Message contains only the verb, endpoint, and status; the raw response body is on Body.