For the complete documentation index, see llms.txt. This page is also available as Markdown.

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
}
Parameter
Type
Required
Description

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:

You can check what each of these parameters means directly in the full GraphQL API documentation, in the Docs menu of Altair. If you're not sure how to do that, check out our tutorial on Using Altair.

If Altair doesn't help you integrate with the API, check out some examples of how to make these requests in other ways: https://graphql.org/graphql-js/graphql-clients/

Para importar e usar no Postman

Last updated