Create a request
Create a new legal request for a published workflow. The required fields and variables depend on the workflow — use the Get workflow schema endpoint first to discover them.
Some workflows generate an agreement from a template and require counterparty details, while others accept an uploaded document via the file field. The schema endpoint tells you exactly which fields and variables are needed.
Requires the write scope.
Authorizations
Obtain a Bearer token via the Create access token endpoint using the OAuth2 client credentials flow.
Body
The hash ID of the published workflow to use.
Email of an existing user in your company who is making the request.
Name of the counterparty signer. Required by some workflow types — check the workflow schema.
Email of the counterparty signer. Required by some workflow types — check the workflow schema.
Name of the counterparty's organization. Required by some workflow types — check the workflow schema.
The document file to use. Required by workflows that accept a third-party document — check the workflow schema.
A JSON object containing the workflow variable values. Use the workflow schema endpoint to discover required and optional variables.
{
"purpose": "To agree on confidential",
"duration_unit": "year",
"duration": 2
}
Response
Request created successfully.