<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.firma.dev/functions/v1/signing-request-api/company/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'default_expiration_hours' => 2,
'require_terms_acceptance' => true,
'show_custom_branding_only' => true,
'require_otp_verification' => true,
'allow_presigning_download' => true,
'disable_guided_navigation' => true,
'show_signature_frame' => true,
'show_partial_watermark' => true,
'email_local_part' => '<string>',
'color_primary' => '<string>',
'color_primary_fg' => '<string>',
'color_background' => '<string>',
'color_foreground' => '<string>',
'color_card' => '<string>',
'color_border' => '<string>',
'color_accent' => '<string>',
'color_accent_fg' => '<string>',
'color_canvas' => '<string>',
'color_muted' => '<string>',
'color_muted_fg' => '<string>',
'show_qr_code' => true,
'allow_decline' => true,
'show_save_for_later' => true,
'completion_title' => '<string>',
'completion_message' => '<string>',
'completion_redirect_url' => '<string>',
'completion_redirect_delay' => 15,
'default_timezone' => 'Europe/Paris',
'language' => 'en'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}