Create Signature Request

Estimated reading: 1 minute 5 views

Use Case

Create a Signature Request for a file named “Name.pdf”. This will send an email to the recipient with the signature request.

Request

curl --location 'https://api.sandbox.signaturit.com/v3/signatures.json' 
--header 'Authorization: Bearer BXHcYigHevJYriFgNuNhzTDvGQlBmEDRCpOFWIckocVnWrjDETqFbmiqFkKGgEdGxgdUGfDhMgFrgODfljPQfK' 
--form 'name="Notification1"' 
--form 'recipients[0][name]="Javier"' 
--form 'recipients[0][email]="salesforce@wattyo.com"' 
--form 'delivery_type="email"' 
--form 'data[notification_id]="a0x7e000006KPHkAAO"' 
--form 'data[recordId]="a0R7e00000A8FdnEAF"' 
--form 'data[sObjectType]="wattyo__Order_Item__c"' 
--form 'files[0]=@"/Users/javierponce/Downloads/Name.pdf"'

Success Response

    {
    "created_at": "2023-11-29T11:09:21+0000",
    "data": [
        {
            "key": "notification_id",
            "value": "a0x7e000006KPHkAAO"
        },
        {
            "key": "recordId",
            "value": "a0R7e00000A8FdnEAF"
        },
        {
            "key": "sObjectType",
            "value": "wattyo__Order_Item__c"
        }
    ],
    "id": "930dbabc-2470-4970-94ec-f6e76e1d7471",
    "documents": [
        {
            "created_at": "2023-11-29T11:09:22+0000",
            "file": {
                "name": "Name.pdf",
                "size": 1297
            },
            "id": "52edb133-d6b4-463e-a4e0-b6049465b75f",
            "events": [],
            "email": "salesforce@wattyo.com",
            "name": "Javier",
            "status": "in_queue"
        }
    ]
}

Error Response

This is a sample error response not related to the request above.

    {
        "status_code": 400,
        "message": "Invalid document list"
    }

Leave a Comment

       
Euphoria, forever till the end of times

Euphoria

Share this Doc

Create Signature Request

Or copy link

CONTENTS