Send Contracts

Send Contracts with API

POST https://appapi.cloudsign.pro/api/v1/api-send-contract

This API endpoint helps to add data in the document and send contract through the URL generated. In this API you can pre-fill all the necessary information from API, and we will process the data in the document. This saves lots of time and the processing is very fast.

Headers

NameTypeDescription

Authorization*

Bearer youraccesstoken

x-api-key*

703f3cf9-333d-499f-112k-722f77ed3c34

Request Body

NameTypeDescription

template_id*

8204af9d-fe98-431e-af81-ff8a73f4faf9

is_mobile_send*

1

alpha_name*

user1

alpha_email*

user1@mail.com

beta_name*

user2

beta_email*

user2@mail.com

text_1*

This is data is for testing purpose

gender_2*

Male

address_3*

123 cloudsign testing

{
"msg": "Contract send successfully",
"data": {
"url": [
{
"Alpha_sign": "https://app.cloudsign.pro/templateredirect/.eJwtjEsKwyAQQO_iOlPUGT_TywSjYwltPgSzCKV3r5Su3-et8ra2I-U2zkXdFZXJMlWETBGBagnAaAiKVAlSnA0TqkEd20t-AbIZ-mLZ03qN05mf0vrF-IDaaEJjdWTNwhqxypzds6tnmRv2md46BvgX1kb7uW9nl8ytWxT8TBUgHRSQPZaCAGyVAro9MkEp1Xny9BcDeh.UdjxbT0dq_7jhIPiQMsA9Qthnzg"
},
{
"Beta_sign": "https://app.cloudsign.pro/templateredirect/.eJwtjEEOwiAQRe_CumOAGTqMl2koDKZRW9PQRWO8u8S4-8l_771N3ta2p9ympZiroTJ7oYqQKSJQLQyCjqBoVdYSPM9oBrNvD_0JKH7ocyGidJXTeRrGCcLRH12666p7asq1TW576J30IwnzBsW_hjqXXMt317PeYSNhTAbXJAvnoILJmqFUwWFKNYTSfL0IsN6M.f26TbNk0DU2paPkkJZHwMsTAmEM"
}
],
"contract_id": "4db294f3-c483-4fd7-9314-defe7ed527b3",
"remain_permission_count": 83
}
}
curl --request POST \
  --url https://appapi.cloudsign.pro/api/v1/api-send-contract \
  --header 'Authorization: ' \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: ' \
  --data '{
    "template_id": "8204af9d-fe98-431e-af81-ff8a73f4faf9",
    "alpha_name": "dh",
    "alpha_email": "abc@mail.com",
    "beta_name": "Beta",
    "beta_email": "beta@mail.com",
    "text 0": "j",
    "gender 1": "M",
    "address 2": "123 wall street"
}'

For sending data through API and processing, you will need to enter in the template_id and any other necessary information into the required fields.

The Authorization parameter specified in the endpoint must match the authenticated user's api-access-token.

Enter the Authorization token which you received from the Authentication API endpoint:

https://appapi.cloudsign.pro/api/v1/auth/api-access-token ("access_token") Add a string "Bearer" before writing the token. Then you will enter the x-api-key which you entered as "client_id" when you use the api-access-token API endpoint.

After sending the parameters in JSON click Send API Request, to get the response.

If the response is successful, you will get a status code of 200Otherwisese you will get a status code of 4XX or a similar error code as the status code. If you get 4XX please recheck your credentials or enter the necessary key in JSON as prompted.

You can also upload a contract and with pre-filled data by using the CURL or other similar options available in the drop-down. Copy the Request Sample CURL change the parameter inside the string and pass the URL. You will get the response shown in the Response Example.

Once you get 200 as the status code, you receive all the details in JSON inside "data" in the response. When working on other sections of Cloudsign API you will need the access_token as the authentication token.

Limitations:

While working with Cloudsign API Keys, the following limitations may apply:

  • API keys cannot be transferred between Cloudsign accounts.

  • The maximum number of API keys per account are limited.

  • An API key is set to expire within a certain time frame. You can see the time in expires_in response.

Last updated