API keys
API keys allow you to authenticate and authorise requests made to PullRule’s endpoints.How to create an API key
- Go to the Settings page in PullRule.
- Navigate to the API section.
- Click on New API Key.
- Follow the prompts to name your key and set permissions.
Treat API keys like passwords. Keep them secret and rotate regularly.
Webhooks
Webhooks allow PullRule to notify your systems in real-time when specific events occur, such as when a new pull request is created or updated.How to set up a webhook
- Go to the Settings page in PullRule.
- Navigate to the API section.
- Click on New Webhook button.
- Enter the URL where you want to receive notifications.
- Select the events you want to subscribe to, such as
pull_request.scoredorpull_request.synced. - Save the webhook configuration.

