All error codes

ssh_key_not_found

HTTP 404 SSH key not found

What happened

The SSH key id does not belong to the account that owns this project - it was never added, it has already been deleted, or it belongs to another customer. Adding keys to a server answers the same code and names every id from ssh_keys that could not be found.

What to do

List the keys with GET /v1/ssh-keys and use an id from there. That list covers every key of the account, not only the ones added through the API, so a key created elsewhere is still addressable.

Retrying

Repeating this request will not help.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/ssh_key_not_found",
    "title": "SSH key not found",
    "status": 404,
    "code": "ssh_key_not_found",
    "request_id": "a277dcd1ca652c65"
}

Branch your code on code, never on the wording of title.