curl -X POST 'https://api.sendforsign.com/v1/email' \
     -H 'X-Sendforsign-Key: YOUR_API_KEY' \
     -H 'Content-Type: application/json' \
     -d '{ 
		  "data": {
				   "action": "send",
				   "clientKey": "CLIENT_KEY",
                   "userKey": "USER_KEY", 
				   "contractKey": "CONTRACT_KEY",
           "recipients":[{
                "action": "view",
                "customMessage": "Custom message text",
                "fullname": "John Johnson", 
                "email": "john_johnson@mail.com", 
                "position": 1
               }], 
				  }
       }'
     {
       "result": true,
       "code": "200",
       "message": "Contract sent"
    }

Body parameters

action
string
required

Action type.

clientKey
string
required

ID of the client.

userKey
string

ID of the user who is sending the contract. If not specified, the default user credentials will be used.

contractKey
string
required

ID of the contract.

recipients
string

Array of recipients, optional.

Response

result
boolean

Status.

code
string

The code of the answer.

message
string

The message of the answer.