API call for custom data in incidents

Can some one just point to a link in the KB that shows how to fetch custom data from a incident?

Are you referring to the original event/alert data that triggered the 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.