Custom data on a document (metadata)

Modified on Tue, 15 Sep at 11:56 AM

You can store custom data on a document — for example an order ID, a note, or anything from your system. Signi doesn't process it in any way, it just keeps it and returns it back to you. Ideal for matching a document in Signi with a record in your system.

How to do it

When creating a document, add a metadata field. The value must be JSON (written as text with escaped quotes) — the individual items are then displayed in the Signi app on the document overview as well as in the document detail, each one separately:

{
    "people": [
        { "is_proposer": true, "email": "vas@email.cz", "contract_role": "approve" },
        { "is_proposer": false, "email": "protistrana@email.cz", "contract_role": "sign",
          "first_name": "Jan", "last_name": "Novák", "person_type": "nature",
          "positions": [ { "x": 50, "y": 80, "page": 0 } ] }
    ],
    "metadata": "{\"poznámka\": \"nějaká dlouhá poznámka s hodně slovy.\",\"barva\": \"modrá\",\"velikost bot\": \"34\"}",
    "file": "uploaded_file_key"
}

Where you get it back

In the document detail via the API:

curl -H "x-api-key: VAS_API_KLIC" https://api.signi.com/api/v1/contract/ID_DOKUMENTU
{
    "contract_id": "1234567",
    "contract_name": "Smlouva o dílo",
    "state": "pending",
    "metadata": "{\"poznámka\": \"nějaká dlouhá poznámka s hodně slovy.\",\"barva\": \"modrá\",\"velikost bot\": \"34\"}"
}

And in the Signi app — on the document overview and in the document detail, broken down into individual items.

Where to go next

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article