Skip to content

Trigger Webhook

Request

Simulates a webhook event according to the payload. This will trigger requests to subscribed callback URLs, if any.

Security
HTTPBearer
Headers
x-jiko-idempotencystring, (uuid)(X-Jiko-Idempotency)required

A new UUID that you generate for each request, reads included. It is part of the request signature and prevents replay of a request. A value that was already sent in the last hour is rejected with 409 jiko.errors.DuplicateRequestError, even if the first request failed. When you retry a request, generate a new value and sign the request again.

x-jiko-signaturestring(X-Jiko-Signature)required

Base64-encoded HMAC-SHA256 hash of x-jiko-idempotency + request pathname + body, keyed with your shared secret. See Authentication for the full algorithm and a code sample.

Bodyapplication/jsonrequired
event_idstring, (uuid)(Event Id)required
timestampstring, (date-time)(Timestamp)required
payloadobject(ApplicationUpdatePayload)required
event_typestring(Event Type)required
Enum:"application.approved""application.manual_review""application.documents_needed""application.rejected"
Discriminator
curl -i -X POST \
  https://your-partner-name.sandbox-api.jikoservices.com/api/v1/sandbox/webhook/ \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'x-jiko-idempotency: 497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -H 'x-jiko-signature: string' \
  -d '{
    "event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",
    "timestamp": "2019-08-24T14:15:22Z",
    "payload": {
      "application_id": "48ac72d0-a829-4896-a067-dcb1c2b0f30c"
    },
    "event_type": "application.approved"
  }'

Responses

Successful Response

Response
No content