How to get the URL when I send a template to sign ?

How to get the URL when I send a template to sign ?

Hello,

I want to know how can I get the URL of template who is send at the people.
I have the code bellow : 

    $requestData = '{
        "templates": {
            "field_data": {
                "field_text_data": {
                "Prénom":"'.$nom.'",
            },
                "field_boolean_data": {},
                "field_date_data": {},
            },
            "actions": [
            {
               "recipient_name": "'.$nom.'",
               "recipient_email": "'.$mail.'",
               "action_id": "16183000000061014",
               "signing_order": 1,
               "role": "Stagiaire",
               "verify_recipient": false,
               "private_notes": "",
            }
            ],
             "notes": ""
            }
        }';
    $POST_DATA = array(
    'data' => $requestData,
    );

    $curl = curl_init("https://sign.zoho.com/api/v1/templates/16183000000061001/createdocument");
    curl_setopt($curl, CURLOPT_TIMEOUT, 30);
    curl_setopt($curl, CURLOPT_HTTPHEADER, array(
    'Authorization:Zoho-oauthtoken <OauthToken>',
    ));
    curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "GET");
    curl_setopt($curl, CURLOPT_POST, true);
    curl_setopt($curl, CURLOPT_POSTFIELDS, $POST_DATA);
    $response = curl_exec($curl);
    echo $response;
    $jsonbody = json_decode($response);// contain filed tyes response
    if($jsonbody->status == "success")
    {
    $created_request_id = $jsonbody->requests->request_id//Save the ID from the response to update later
    $status = $jsonbody->requests->request_status;
    echo $status;
    }
    else //Error check for error
    {
    echo $jsonbody->message;
    }    
    curl_close ($curl);

Do you have a solution ?
Thanks
RB

      • Sticky Posts

      • Free webinar: The critical role of electronic signatures in HR

        Hello everyone, Businesses and organizations have started implementing electronic signatures across departments, and human resources is no exception. Employee and employer signatures are crucial in HR processes, as they serve as an acknowledgment of critical
      • Zoho Sign: Product updates - Mid - 2024

        Hello, everyone! We've crossed the halfway point in 2024, and here's what Zoho Sign has been up to lately. We've been part of several Zoho User Groups, and we've started creating video content for our developers. Along with this, we have once again been