If you created your action with App Builder, it's likely in a package
So you may need to include this in your action name when creating the api
aio rt:api:create /pet-store /pet get package/getPet --response-type http
(Notice package/getPet)
Your package can be found in app.config.yaml or ext.config.yaml. It's the first property under packages