POST
/
webhook
curl --request POST \
  --url https://api.treasuryprime.com/webhook \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "basic_secret": "secret",
  "basic_user": "organization_name",
  "event": "ach.update",
  "url": "https://example.application.com/notify"
}'
{
  "basic_secret": null,
  "basic_user": "organization_name",
  "created_at": "2018-12-03T19:46:45Z",
  "error": null,
  "event": "ach.update",
  "id": "wh_012345678923",
  "status": "enabled",
  "updated_at": "2018-12-03T19:46:45Z",
  "url": "https://example.application.com/notify",
  "userdata": null
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
The webhook to create

The body is of type object.

Response

200 - application/json
The webhook created

The response is of type object.