An in-person signer signs with you present — at a branch counter, a site visit or a meeting. You are the host: Doctavian notifies you rather than the signer, and you open the signing link and run the signing session for them on your own device, logged in as yourself.
The flow, once the envelope is sent:
GET /signatures/envelope/check — confirm the position is an in-person signer's and see where it stands.POST /signatures/envelope/accept, POST /signatures/envelope/open and POST /signatures/envelope/sign — the signer accepts the terms and signs, in the session you run.Every call is made with the tid (transaction token) of the in-person signer's position, plus the API key as on every operation. Sign also needs your bearer token as the host.
Give the recipient the inpersonsigner role and name the host in hostEmail:
POST https://api.doctavian.com/v1/signatures/envelope/create
Authorization: Bearer <token>
x-api-key: <api-key>
Content-Type: application/json
{
"documents": [
{
"referenceDocumentId": 1,
"name": "Account Opening Form",
"loadMethod": "Storage",
"urn": "af567f07-cafa-4d5c-830c-0f24af7555df"
}
],
"recipients": [
{
"referenceSignerId": 1,
"name": "Maria Lopez",
"email": "maria.lopez@example.com",
"role": "inpersonsigner",
"hostEmail": "alex.morgan@worldindustries.com",
"mandatory": true
}
],
"fields": [
{
"type": "signature",
"name": "signature_maria",
"isRequired": true,
"referenceSignerId": 1,
"referenceDocumentId": 1,
"page": 1,
"positionX": 100,
"positionY": 600,
"width": 200,
"height": 60
}
],
"envelope": {
"subject": "Account opening form"
}
}hostEmail is required for this role and must belong to an existing user on an active subscription — someone outside your subscription cannot be nominated as host. On an envelope created from a template, hostEmail is one of the recipient values you can override per envelope — see Create an Envelope from a Template.
In a sign group with the inpersonsigner role, each signer in the group gets a host of their own through their hostEmail. The hosts can be the same person for every signer or a different person for each.
Send the envelope as usual with POST /signatures/envelope/{envelopeId}/send.
The notification for an in-person signer goes to the host, not to the signer, and tells the host that the signing is an in-person flow. The link in it carries the signer's tid. The host must be logged in as the user whose address is given in hostEmail to open the signing and sign; an address that does not match cannot open it.
To check where the signer stands at any point, call check with that tid:
GET https://api.doctavian.com/v1/signatures/envelope/check?tid=5b8e2c71-9f4a-4d36-b0e5-c3a1d7f9e284
x-api-key: <api-key>The response's recipient carries the fields you need here (trimmed):
"recipient": {
"id": "2bdacd57-662d-49da-be4b-e876b8b12ea1",
"role": "inpersonsigner",
"status": "In Progress",
"legalAccepted": false,
"hostEmail": "alex.morgan@worldindustries.com"
}With you hosting the session, the signer goes through the same steps as any recipient, on the same tid:
POST /signatures/envelope/accept?tid=…. The body is optional and carries only externalContext. Until the terms are accepted, open and sign are rejected with 400 LEGAL_TERMS_NOT_ACCEPTED.POST /signatures/envelope/open?tid=… returns the documents and the field ids assigned to the signer.POST /signatures/envelope/sign?tid=… with one fields entry per field the signer fills. For an in-person signer this call must carry the host's bearer token:POST https://api.doctavian.com/v1/signatures/envelope/sign?tid=5b8e2c71-9f4a-4d36-b0e5-c3a1d7f9e284
Authorization: Bearer <host token>
x-api-key: <api-key>
Content-Type: application/json
{
"fields": [
{
"id": "ff9f4c27-e0b1-41a9-ad2e-330ed25d8da6",
"value": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg=="
}
]
}A signature image is raw Base64-encoded PNG or JPEG data with no data: prefix. When the signer is done, the recipient's status becomes Completed.
If sign is sent without the host's bearer token, or with another user's, it is rejected with 400 HOST_USER_NOT_MATCHING.
For every error these calls can return, see Error Codes, Error Handling and the API Reference.