Unable to get Incident_body details

While creating Incident, I have provided
“incident” : {

“body”: {
“type”: “incident_body”,
“details”: “Some failure details”
},
}

But i am unable to get those details.
Tried using /incident/ and /incidents//log_entries but not able to get the details.

In the pagerduty web UI, i see these body details under custom details.
How to fetch them properly. Please help in getting this resolve as i am struck here.

https://developer.pagerduty.com/api-reference/b3A6Mjc0ODE0Nw-list-log-entries-for-an-incident

curl --request GET
–url ‘https://api.pagerduty.com/incidents/INC_ID_HERE/log_entries?is_overview=false&include[]=channels
–header ‘Accept: application/vnd.pagerduty+json;version=2’
–header ‘Authorization: Token token=YOUR_TOKEN’
–header ‘Content-Type: application/json’

Then in the response, find the “trigger_log_entry” type and look at the channel.details object for the “Custom Details” listed on the Details tab of an incident in the PD WebUI.

1 Like

Thank you so much. I am able to get the body details now.