I want to create an ICP account through the API. Is there a way to do this?

I want to create an ICP account through the API. Is there a way to do this? I want to write an app to create an account and transfer ICP tokens. At present, I haven’t found the corresponding API. Can I ask if this can be realized?