$sURL = "https://site.ru";
$aHTTP = array(
'http' => array(
'method' => 'POST',
'header' => 'Content-type: application/json',
'Bearer' => 'токен',
'content' => array(
'text' => 'text',
'complete_till' => 1661578861
)
)
);
$context = stream_context_create($aHTTP);
$contents = file_get_contents($sURL, false, $context);
echo $contents;