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
IFormsLibrary for dependency injection in ASP.NET Core:
Get a form
Retrieve a form’s metadata, field schema, and rendered HTML/CSS: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.FormAttachment properties:
Manage forms
These methods require aFormsLibrary 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 throwPauboxApiException. Its Message contains only the verb, endpoint, and status; the raw response body is on Body.