Skip to main content
Use the Agent API when a web or backend application needs to work with contracts. The API does not require access to the Neuron source code.
This page covers template proposal and contract creation, not the complete agreement lifecycle. Before sending a proposal, ask the Neuron operator which transport and XML namespace the deployment supports.

Before you start

You need:
  • the Neuron host;
  • an Agent API account and JWT from the Agent API quickstart;
  • a current approved Legal Identity for operations that require one;
  • valid template XML, normally prepared in LegalLab.
Set the examples’ placeholders without committing credentials:

Path A: propose your template

Base64-encode the complete UTF-8 XML file as one string:
Submit it:
The response contains Template; record its id. A proposed template must be approved before it can create instances.

Path B: create from an approved template

If the operator has already supplied an approved template ID, you can begin here:
Replace Parts and Parameters with the names and value types defined by that template. The response contains the created Contract.
An empty Parts or Parameters array works only when the selected template does not require those values. The template—not this endpoint—defines what must be supplied.

Continue after creation

  • Retrieve the returned contract with POST /Agent/Legal/GetContract.
  • Present the exact returned human-readable text before signing.
  • Use POST /Agent/Legal/SignContract only after the signer, role, content, key, nonce, and signatures have been confirmed.
  • Do not implement POST /Agent/Legal/SendProposal from this page. Obtain the supported request format from the Neuron operator first.
See the contract API reference for request fields and responses.