The endpoint has a field `ssh_key_id` - but it is not the name of the secret nor the secret itself, it seems to be a UUID - I was only able to find it by inspectingthe secret-SHOW popup in Chrome dev tools. When I used it it worked and could create the instance via API.