CURL пример для создания заявки:
$header = [
'Authorization: Basic ' . base64_encode('email:api_key'),
'Content-Type: multipart/form-data',
'Cache-Control: no-cache',
];
$data = [
'title' => 'file test'
'description' => 'desc',
'files[]' => new CurlFile('test/assdasd1234234.jpg', 'image/png', 'filename.png'),
];
$ch=curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL,"https://domain/api/v2/tickets");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
$jsonresp = curl_exec($ch);
$response = json_decode($jsonresp,true);
curl_close ($ch);