Create Form
Create a form for a workspace from module source (TSX importing “serval/forms”). The form lands as an unpublished draft unless is_published is set, in which case the module is compiled and every workflow it imports must already be published on the workspace.
Authentication and permissions
Token requirements: User-based token (OAuth) or Organization-scoped API key or Workspace-scoped API key. Send a bearer access token for one of these identities. The permissions and resource restrictions below also apply.
Authorizations
Body
Copy-invariant identity to create the form under ("form_" + 22 alphanumerics). Leave unset and the server mints one. Set it to the source form's scoped_id when pushing configuration between workspaces or environments: the copy then answers to the same scoped id as its source, so the next push resolves it and updates in place instead of creating a second form that collides on name. Must not already be in use on the workspace.

