Cant get rooms though API

I have been trying to get rooms and channel-id though the v5 api and/or the new api(when possible) but I’m getting a not found in json.{"error":"Not Found","status":404,"message":""}
I believe I am doing this right as this works: https://api.twitch.tv/kraken/chat/sukeyaa/badges
but this doesn’t: https://api.twitch.tv/kraken/chat/sukeyaa/rooms
Note: I would prefer to use the new API when possible

This endpoint is not available in Helix so you will have to use Kraken for now.

It is a v5 API so it requires the numeric channel ID instead of the channel name: https://api.twitch.tv/kraken/chat/125559178/rooms

Also make sure you are sending the correct Accept: application/vnd.twitchtv.v5+json version header along with the request.

{
"_total": 1,
"rooms": [
{
"_id": "2b594b1c-0fa1-4e67-88ea-9518c0d43103",
"owner_id": "125559178",
"name": "subscriber-room",
"topic": "Create a place for your subscribers to hang out",
"is_previewable": false,
"minimum_allowed_role": "SUBSCRIBER"
}
]
}

Thanks @george. After adding Accept: application/vnd.twitchtv.v5+json it worked! Does it normally not show the default chat though? I need to join that chat as well so I need its UUID.

If by default chat you mean the primary stream chat, that is just #<channel name>. It has no UUID that you could use when talking to any API.

thanks, I’ll try that!