curl -X POST 'https://api.sendforsign.com/api/recipient' \
     -H 'Authorization: Bearer 123456789' \
     -H 'Content-Type: application/json' \
     -d '{ 
		  "data": {
				   "action": "send",
                   "userKey": "USER_KEY", 
				   "contractKey": "CONTRACT_KEY",
           "recipients":[
            {
                "recipientKey": "RECIPIENT_KEY",
                "action": "sign",
                "customMessage": "Custom message text",
                "fullname": "John Johnson", 
                "email": "john_johnson1@mail.com", 
                "position": 1
            },
            {
                "action": "view",
                "customMessage": "Custom message text",
                "fullname": "John Johnson", 
                "email": "john_johnson2@mail.com", 
                "position": 2
            }
               ], 
				  }
       }'
     {
       "result": true,
       "code": "200",
       "message": "Contract sent"
    }

One way to send a contract to recipients is when you create a contract. See this page to learn more.

If you need to send an existing contract to recipients, use the request below.

Body parameters

action
string
required

Action type.

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. If no array of recipients is provided, the system will send the contract to those recipients who were added previously.

Response

result
boolean

Status.

code
string

The code of the answer.

message
string

The message of the answer.