How to view an IR code from Unfolded's database?

I’m using an IR codeset downloaded from inside the Web Configurator.

Now I’d like to use the Dock’s API to send an IR command that I have added to my remote. But for that I need the raw IR code (pronto / hex).

Is there a way to view it? The “Paste IR code” → “Edit infrared code” page only shows custom codes, otherwise the form is blank.

Tried API as well:/api/remotes/my-tv-entity/ir/INPUT_2
The docs describe the API call as “Gets an infrared code in the codeset”, but it only returns this for me:
{“cmd_id”:“INPUT_2”,“custom”:false,“modified”:false}

I guess the actual Hex/Pronto codes from the internal database can’t be shown to the user probably due to licensing/copyright reasons.

But you can send ir codes from the database using the core api on the remote (PUT /ir/emitters/{emitterId}/send)

I need to use the dock’s API, because the dock is always online, unlike the remote which usually sleeps.

But I managed to get the code by learning it with a secondary remote, then learning from it with Unfolded.