ChannelID from Auth not working with Channel API

I’m just starting out with Twitch Extensions.
In my 1st extension, I’m getting data from the Twitch Auth callback with a ChannelID '240173824 and a userID ‘U240173824’. However, when I try to fetch https://api.twitch.tv/kraken/channels/240173824, I get a 400 response and no channel object. Is the channelID incorrect? Do I need additional information to the fetch call?

Thanks!

For kraken you should make sure you are requesting Version 5 when using an ID - Add api_version=5 to a URL or better yet, use the version and client ID in the header

a cURL header example can be seen at https://dev.twitch.tv/docs/v5/#translating-from-user-names-to-user-ids