Skip to main content
In the contract editor, each placeholder has a Who fills in this field setting. The same setting is available through the API with two placeholder fields:

Set up your account

Before you start, see the First document use case to set up your platform account and get the API key. You also need a contract with recipients and placeholders. See Create recipients and Create placeholder.

Get the recipient key

Request the list of the contract’s recipients. Learn more here.
cURL
Each recipient in the response has a recipientKey. This is the value you pass as externalRecipientKey.

Get the placeholder key

Request the list of the contract’s placeholders. Learn more here.
cURL
Take the placeholderKey of the placeholder you want to assign. It is the same key that the editor shows at the bottom of the placeholder settings.

Assign the placeholder

To a specific recipient:
cURL
To the contract owner, send "fillingType": 2 instead. To unassign the placeholder, send "fillingType": 1 together with "externalRecipientKey": null. A field left out of an update request keeps its current value, so without null the previous recipient stays stored.
You only need to send the fields you change. The placeholder’s name and value are not affected. You can also pass fillingType and externalRecipientKey right away when you create a placeholder.

Check the result

Request the list of placeholders again. Each placeholder in the response has fillingType and externalRecipientKey:
json