Trying add records via API and a PHP cURL function...getting permission denied error

Trying add records via API and a PHP cURL function...getting permission denied error

Trying to add records via the API and PHP cURL, getting this error -  {"errorlist":{"error":[{"message":"Permission Denied To Add Record(s).","code":2899}]}}
Please advise

Here is my example code:

Here is an html page with a form -

<html>
<head>

<meta http-equiv="Content-Type" content="application/json">
 <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
</head>
<body>
<form method="POST" action="zohoposttest3.php">
<input type="hidden" name ="authtoken" value="*********">
<input type="hidden" name ="scope" id="scope" value="creatorapi">
<input type="text" name="Client_Code" value="test">
<input type="text" name="User_Name" value="test">

<input type="submit" value="Add Record">
</form>
</body>
</html>


And I am posting to this PHP page (zohoposttest3.php) =

<?php
$authtoken = $_POST['authtoken'];
$client_code = $_POST['Client_Code'];
$user_name = $_POST['User_Name'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, " https://creator.zoho.com/api/zoho_jr24/json/ebs/form/REST_API_Tester/record/add?authtoken=" . $authtoken . "&scope=creatorapi&Client_Code=" . $client_code . "&User_Name=" . $user_name);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");

// execute the request

$output = curl_exec($ch);

// output the profile information - includes the header

echo($output) . PHP_EOL;

// close curl resource to free up system resources

curl_close($ch);

?>