Header and body not capturing

Highlighted
New Contributor

Hello ,
When we are looking in to api call logs than headers and body are empty in all api calls ? can you please help what needs to send from api to capture things.

We believe we are using right method already . like this will be header :- curl_setopt($ch, CURLOPT_HTTPHEADER, array( ‘Content-Type: application/json’, 'Authorization: Bearer '.$access_token));

and in body we are sending param.

0 Upvotes
3 Replies 3
Highlighted
HubSpot Moderator

Hi @Rahul_Chhlotre,

Just to make sure that we’re on the same page, are you referring to the API call logging tool in your developer portal? Can you send me a link to your developer portal so that I can take a look?

0 Upvotes
Highlighted
HubSpot Moderator

Hi @Rahul_Chhlotre,

I see; I’m not particularly familiar with PHP. Can you send me the raw request you’re sending so that I can take a look?

0 Upvotes
Highlighted
HubSpot Moderator

Hi @Rahul_Chhlotre,

Sorry for the confusion on this. This is actually working as intended: Successful requests will only show the basic details, while requests that returned an error will show additional details for the request and response header and body.

0 Upvotes