Reputations Webhooks
Learn about reputations webhooks.
Reputations webhooks notify your system when:
- A new reputation object is added after a new account is scanned with an initial scan.
- An existing reputation object is updated with new information after a periodic scan. 
#Added
post/v1/webhooks
Implement the reputations.added webhook to know when a reputation object is added.
- A new reputation object is added when a new account object is created and scanned.
Request body
- #eventsarray of stringsrequiredreputations.added
- #namestringrequiredYour name for the webhook subscription. 
- #urlstringrequiredWhere you want to receive webhook delivery. This can be either a backend URL that you manage, or a URL provided by a webhook management service. 
- #secretstringoptionalOptional secret used to verify webhooks. 
Example Subscription
1curl --request POST \
2     --url https://api.argyle.com/v1/webhooks \
3     --header 'accept: application/json' \
4     --header 'content-type: application/json' \
5     --data '{
6        "events": ["reputations.added"],
7        "name": "name-for-the-webhook-subscription",
8        "url": "https://your-webhook-backend.com",
9        "secret": "optional-secret"
10     }'Example Webhook
1{
2  "event": "reputations.added",
3  "name": "A reputation was added",
4  "data": {
5    "account": "ada143be-3c90-4534-b7ea-9899674dc6e0",
6    "user": "3823026e-a964-45f6-b201-6b8c096b30d3",
7    "reputation": "4334r6e-a964-45eef6-b201-64464"
8  }
9}#Updated
post/v1/webhooks
Implement the reputations.updated webhook to know when a reputation object is updated.
- Reputation objects are updated through periodic scanning.
Request body
- #eventsarray of stringsrequiredreputations.updated
- #namestringrequiredYour name for the webhook subscription. 
- #urlstringrequiredWhere you want to receive webhook delivery. This can be either a backend URL that you manage, or a URL provided by a webhook management service. 
- #secretstringoptionalOptional secret used to verify webhooks. 
Example Subscription
1curl --request POST \
2     --url https://api.argyle.com/v1/webhooks \
3     --header 'accept: application/json' \
4     --header 'content-type: application/json' \
5     --data '{
6        "events": ["reputations.updated"],
7        "name": "name-for-the-webhook-subscription",
8        "url": "https://your-webhook-backend.com",
9        "secret": "optional-secret"
10     }'Example Webhook
1{
2  "event": "reputations.updated",
3  "name": "A reputation was updated",
4  "data": {
5    "account": "ada143be-3c90-4534-b7ea-9899674dc6e0",
6    "user": "3823026e-a964-45f6-b201-6b8c096b30d3",
7    "reputation": "4334r6e-a964-45eef6-b201-64464"
8  }
9}