Configuring webhooks for events in your sponsored account

You can configure webhooks to alert you when you receive new sponsorships or existing sponsors make changes to their sponsorships.

In this article

To monitor changes to your sponsorships, such as cancellations at the end of a pay period, you can create webhooks for your sponsored user or organization account. When you set up a webhook for your sponsored user or organization account, you'll receive updates when sponsorships are created, edited, or deleted. For more information, see the sponsorship webhook event.

Managing webhooks for your sponsored user account

  1. In the upper-right corner of any page, click your profile photo, then click GitHub Sponsors.
    GitHub Sponsors button
  2. If a list of your sponsored and eligible accounts is shown, to the right of your account name, click Dashboard.
    Developer sponsors dashboard button
  3. In the left sidebar, click Webhooks.
    Webhooks tab
  4. Click Add webhook.
    Add webhook button in the Webhooks sidebar
  5. Type a payload URL, then optionally customize the configuration. For more information, see "Creating webhooks."
    Fields for payload URL and other customization options
  6. Under "Content type", select which data format you’d like to receive. For more information, see "Creating webhooks"
    Menu for webhook formatting
  7. Type a secret token. For more information, see "Securing your webhooks."
    Fields for secret token and other customization options
  8. To receive updates for the SponsorshipEvent, select Active.
    Selecting active events
  9. Click Create webhook.
    Create webhook button in the Webhooks sidebar
  10. To edit an existing webhook, click Edit. To remove an existing webhook, click Delete.
    Buttons for managing webhook

Managing webhooks for your sponsored organization

Organization owners can configure webhooks for a sponsored organization.

  1. In the upper-right corner of any page, click your profile photo, then click GitHub Sponsors.
    GitHub Sponsors button
  2. In the list of your sponsored and eligible accounts, to the right of the organization, click Dashboard.
    Organization sponsors dashboard button
  3. In the left sidebar, click Webhooks.
    Webhooks tab
  4. Click Add webhook.
    Add webhook button in the Webhooks sidebar
  5. Type a payload URL, then optionally customize the configuration. For more information, see "Creating webhooks."
    Fields for payload URL and other customization options
  6. Under "Content type", select which data format you’d like to receive. For more information, see "Creating webhooks"
    Menu for webhook formatting
  7. Type a secret token. For more information, see "Securing your webhooks."
    Fields for secret token and other customization options
  8. To receive updates for the SponsorshipEvent, select Active.
    Selecting active events
  9. Click Create webhook.
    Create webhook button in the Webhooks sidebar
  10. To edit an existing webhook, click Edit. To remove an existing webhook, click Delete.
    Buttons for managing webhook

Ask a human

Can't find what you're looking for?

Contact us