Skip to main content
POST
/
v2
/
webhooks
Add or update a verifications webhook
curl --request POST \
  --url https://api-sandbox.argyle.com/v2/webhooks \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "events": [
    "<string>"
  ],
  "name": "<string>",
  "url": "<string>",
  "secret": "<string>",
  "config": {}
}
'
{
  "event": "verifications.updated",
  "name": "name-for-the-webhook-subscription",
  "data": {
    "user": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
    "verification": "43a2c6c3-1e63-91e5-88e3-f9ab2dcc489b",
    "resource": {
      "id": "43a2c6c3-1e63-91e5-88e3-f9ab2dcc489b",
      "user": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
      "created_at": "2023-03-09T16:22:06.081Z",
      "updated_at": "2023-03-09T16:22:06.081Z",
      "source": "api",
      "status": {
        "state": "COMPLETED",
        "code": "completed",
        "errors": []
      },
      "report": {
        "id": "2a14ce6f-3aed-4c15-8ea2-92a17b6edb95",
        "type": "doc-voi-mortgage",
        "file_url": "https://api-sandbox.argyle.com/v2/reports/12345678-e321-4a76-8d10-093cfdbb8cdd/pdf",
        "json_url": "https://api-sandbox.argyle.com/v2/reports/12345678-e321-4a76-8d10-093cfdbb8cdd/json"
      },
      "employments": [
        {
          "employer": "Starbucks",
          "status": "active",
          "hire_date": "2015-08-28",
          "termination_date": null
        }
      ],
      "loan": {
        "number": "1234",
        "borrower_id": "ABC789",
        "application_id": "2121313",
        "officer_email": "[email protected]"
      },
      "billing": {
        "cost_center": "5"
      }
    }
  }
}
Sent when a verification has been updated.

Authorizations

Authorization
string
header
required

Username = api_key_id, Password = api_key_secret

Body

application/json
events
string[]
required

verifications.updated

name
string
required

Your 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.

secret
string

Optional secret used to verify webhooks.

config
object

"include_resource": true will return the verification object in the response within a resource object.

Response

200 - application/json
event
string

verifications.updated

name
string

Name used for the webhook subscription.

data
object