webhookSubscriptionCreate not working for creating a subscription via pub/sub


mutation webhookSubscriptionCreate($topic: WebhookSubscriptionTopic!, $webhookSubscription: WebhookSubscriptionInput!) {
        webhookSubscriptionCreate(topic: $topic, webhookSubscription: $webhookSubscription) {
        webhookSubscription {
          id
          topic
          endpoint {
              __typename
              ... on WebhookPubSubEndpoint {
              pubSubProject
              pubSubTopic
              }
            }
          createdAt
          updatedAt
        }
        userErrors {
          field
          message
        }
        }
      }

“problems”: [
{
“path”: [
“pubSubProject”
],
“explanation”: “Field is not defined on WebhookSubscriptionInput”
},
{
“path”: [
“pubSubTopic”
],
“explanation”: “Field is not defined on WebhookSubscriptionInput”
}
]
}

What API version are you using?

Looking at the documentation the endpoint field is deprecated and recommends you use uri field instead. webhookSubscriptionCreate - GraphQL Admin

Using 2025-07, uri is also not working for pub sub

When you say not working, what are you getting back?

Please could you provide your query and any error

The query and error are as mentioned above.

For uri getting:

uri does not exist in 2025-07 so you’ll need to change to 2025-10 if you wish to use that.

And I would advise doing so as endpoint is deprecated now.

The error is same for latest api

Just saying this isn’t helping us to help you here. Provide the full query/mutation and variables along which you’re using with the latest API version.

It seems like that incorrect api version is being used in my app despite having specified the latest one in config file being used and deploy the latest config file

image

```

You’ve set the webhooks API version there but that doesn’t control the version for the mutation you’re making.

so, how can we do that?

Which framework starter are you using for your app?

using remix template

we can do it like as mentioned. Thank you guys, the latest mutation is working correctly now