Identities Webhooks
Sent when an identity object is created or updated.
#Added
The identities.added
webhook is sent when a new identity object is created, typically during initial data retrieval.
- eventsarray of stringsrequired
identities.added
- namestringrequired
Your name for the webhook subscription.
- urlstringrequired
Where 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.
- secretstringoptional
Optional secret used to verify webhooks.
- eventstring
identities.added
- namestring
Name used for the webhook subscription.
- dataobject
- accountstring
ID of the account.
- userstring
ID of the user.
- identitystring
ID of the new identity object.
1curl --request POST \
2 --url https://api.argyle.com/v2/webhooks \
3 --header 'accept: application/json' \
4 --header 'content-type: application/json' \
5 --data '{
6 "events": ["identities.added"],
7 "name": "name-for-the-webhook-subscription",
8 "url": "https://your-webhook-backend.com",
9 "secret": "optional-secret"
10 }'
1{
2 "event": "identities.added",
3 "name": "name-for-the-webhook-subscription",
4 "data": {
5 "account": "0187c66e-e7e5-811c-b006-2232f00f426a",
6 "user": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
7 "identity": "0153b145-7ab9-bea2-cc16-a8b71328942f"
8 }
9}
#Updated
The identities.updated
webhook is sent when there is any change to a property value of an identity object.
- eventsarray of stringsrequired
identities.updated
- namestringrequired
Your name for the webhook subscription.
- urlstringrequired
Where 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.
- secretstringoptional
Optional secret used to verify webhooks.
- eventstring
identities.updated
- namestring
Name used for the webhook subscription.
- dataobject
- accountstring
ID of the account.
- userstring
ID of the user.
- identitystring
ID of the new identity object.
1curl --request POST \
2 --url https://api.argyle.com/v2/webhooks \
3 --header 'accept: application/json' \
4 --header 'content-type: application/json' \
5 --data '{
6 "events": ["identities.updated"],
7 "name": "name-for-the-webhook-subscription",
8 "url": "https://your-webhook-backend.com",
9 "secret": "optional-secret"
10 }'
1{
2 "event": "identities.updated",
3 "name": "name-for-the-webhook-subscription",
4 "data": {
5 "account": "0187c66e-e7e5-811c-b006-2232f00f426a",
6 "user": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
7 "identity": "0153b145-7ab9-bea2-cc16-a8b71328942f"
8 }
9}