Skip to main content
POST
/
v2
/
webhooks
User Uploads
curl --request POST \
  --url https://api-sandbox.argyle.com/v2/webhooks \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "events": [
    "user_uploads.ocr_completed"
  ],
  "name": "name-for-the-webhook-subscription",
  "url": "https://your-webhook-backend.com",
  "secret": "optional-secret"
}
'
{
  "event": "user_uploads.ocr_completed",
  "name": "name-for-the-webhook-subscription",
  "data": {
    "account": "01856c65-43b6-8b5d-b32a-56b8fbda5c28",
    "user": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
    "user_upload": "01320596-2c3d-189c-53e7-a8ce6d625b33"
  }
}

Authorizations

Authorization
string
header
required

Username = api_key_id, Password = api_key_secret

Body

application/json
events
string[]
required

List of events to subscribe to.

Example:
["user_uploads.ocr_completed"]
name
string
required

Name for the webhook subscription.

Example:

"name-for-the-webhook-subscription"

url
string
required

The URL where webhook notifications will be sent.

Example:

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

secret
string

Optional secret used to verify webhooks.

Example:

"optional-secret"

Response

200 - application/json

Webhook message

event
string

user_uploads.ocr_completed

Example:

"user_uploads.ocr_completed"

name
string

Name for the webhook subscription.

Example:

"name-for-the-webhook-subscription"

data
object