Webhook for app uninstall not showing up after creation

I’m having trouble with creating a webhook for tracking when my app gets uninstalled. Here’s what I did:

I sent a POST request to create the webhook:

POST https://{store-name}.myshopify.com/admin/webhooks.json

{
  "webhook": {
    "topic": "app/uninstalled",
    "address": "https://{my-server}/webhook/app-removal",
    "format": "json"
  }
}

The request worked fine and I got a 201 status code back with the webhook ID in the response.

But when I try to fetch this webhook using:

GET https://{store-name}.myshopify.com/admin/webhooks/{webhook-id}.json

I get this error:

{
  "errors": "Not Found"
}

And when I try to get all webhooks:

GET https://{store-name}.myshopify.com/admin/webhooks.json

It returns an empty list. The webhook also doesn’t appear in the store’s webhook settings page. I’m testing this on a development store. Anyone know what could be causing this issue?

yeah, sounds like an endpoint issue. you can’t set uninstalled webhooks via the admin API - gotta do it in the partners dashboard. check your app settings there and add it from that side instead of the API calls.