Creating a Session on Homey

Hey,

i try this Part, but always get an error

Array
(
    [error] => Missing Session ID in Token
    [error_description] => Missing Session ID in Token
    [stack] => Error: Missing Session ID in Token
    at ManagerApi.getSession (file:///node_modules/@athombv/homey-core/dist/lib/ManagerApi.mjs:41:19)
    at ManagerApi.onRequest (file:///node_modules/@athombv/homey-core/dist/lib/ManagerApi.mjs:177:38)
    at file:///app/lib/Server.mjs:614:43
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    [statusCode] => 401
    [statusName] => HomeyErrorUnauthorized
)

My php code:

	$curl = curl_init();

	curl_setopt_array($curl, array(
	  CURLOPT_URL => 'https://abcdef...xyz.homey.athom-prod-euwest1-001.homeypro.net/api/manager/users/login',
	  CURLOPT_RETURNTRANSFER => true,
	  CURLOPT_ENCODING => '',
	  CURLOPT_MAXREDIRS => 10,
	  CURLOPT_TIMEOUT => 0,
	  CURLOPT_FOLLOWLOCATION => true,
	  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
	  CURLOPT_CUSTOMREQUEST => 'POST',
	  CURLOPT_POSTFIELDS => http_build_query(array('token' => $delegation_token)),
	  CURLOPT_HTTPHEADER => array('content-type: application/json', 'Authorization: Bearer ' . $access_token),
	));

	$response = curl_exec($curl);

	curl_close($curl);

	print_r(json_decode($response, true));