You don’t even need an API key for this and can just use your PIN as explained here: [bug] User-created IR-Sets do not appear in the dropdown when creating a new remote, but block creating a new ir-set with the same name · Issue #4 · unfoldedcircle/feature-and-bug-tracker · GitHub
Replace $IP, $PIN and in the second command $DEVICE_ID with the matching one you got from the first command
Retrieve all custom codesets:
curl ‘http://$IP/api/ir/codes/custom?page=1&limit=100’ -u ‘web-configurator:$PIN’
Delete a codeset (if it’s no longer used):
curl --request DELETE ‘http://$IP/api/ir/codes/custom/$DEVICE_ID’ -u ‘web-configurator:$PIN’