Trying to call my custom addon

Hello,

I just created a simple addon using hassio.stdin api. I am able to install and configure but I wanted to have it called from switch component but when try to call it

addon: my_addon
addon: core_my_addon

home assistant log returns

ERROR (MainThread) [homeassistant.components.hassio] Error on Hass.io API: Addon not exists

Here’s my config.json

{
  "name": "my addon",
  "version": "1.0",
  "slug": "my_addon",
  "description": "dummy",
  "url": "https://github.com/_repo_url",
  "startup": "services",
  "boot": "auto",
  "stdin": true,
  "host_network": true,
  "options": {
    "literals": [
      {
        "name": "john"
      }
    ]
  },
  "schema": {
    "literals": [
      {
        "name": "str"
      }
    ]
  },
   "image": "homeassistant/{arch}-addon-my_addon"
}

Could I know the right way to approach?

figured it out (repository codes are generated for every addon)