Signing a document
How to sign a document
After creating a document, you can sign it using the signDocument mutation.
The document will be signed on behalf of the owner of the API key used in the request. Therefore, this mutation must not be used to sign documents on behalf of other individuals.
mutation SignDocument(
$documentId: UUID!
$organizationId: Int
) {
signDocument(
id: $documentId
organization_id: $organizationId
)
}Variables:
{
"documentId": "DOCUMENT_UUID",
"organizationId": null
}If the operation is performed within an organization’s context, provide the organization ID:
{
"documentId": "UUID_DO_DOCUMENTO",
"organizationId": 123
}id
UUID!
Yes
Document UUID that will be signed
organization_id
Int
No
Identifier of the organization associated with the signature. Defaults to null.
Return
The mutation returns a Boolean value:
A value of true indicates that the document was signed successfully.
Before signing
The account associated with the API key must be included as one of the document’s signers. Otherwise, the API will return a signature_not_found error.
This mutation also cannot be used to allow other signers to sign directly within your application. It signs exclusively using the account associated with the API key. To collect signatures from other people, use the signature request or signing link flow.
You can test the signing process in Altair:

Last updated