Skip to main content
POST
/
v2
/
webhooks
Added
curl --request POST \
  --url https://api-sandbox.argyle.com/v2/webhooks \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "events": [
    "identities.added"
  ],
  "name": "name-for-the-webhook-subscription",
  "url": "https://your-webhook-backend.com",
  "secret": "optional-secret"
}
'
{
  "event": "identities.added",
  "name": "name-for-the-webhook-subscription",
  "data": {
    "account": "0187c66e-e7e5-811c-b006-2232f00f426a",
    "user": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
    "identity": "0153b145-7ab9-bea2-cc16-a8b71328942f"
  }
}
Sent when an identity object is created or updated.

Authorizations

Authorization
string
header
required

Username = api_key_id, Password = api_key_secret

Body

application/json
events
string[]
required

identities.added

name
string
required

Your name for the webhook subscription.

Example:

"name-for-the-webhook-subscription"

url
string
required

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.

Example:

"https://your-webhook-backend.com"

secret
string

Optional secret used to verify webhooks.

Example:

"optional-secret"

Response

200 - application/json

Webhook subscription successful

event
string

identities.added

Example:

"identities.added"

name
string

Name used for the webhook subscription.

Example:

"name-for-the-webhook-subscription"

data
object