Baack

Webhook Trigger

Browse the docs

Endpoints

  • ReadGET/n/v1/webhooktrigger/{urn}

    Endpoint for webhook event trigger representation used to access the initiating trigger for webhook delivery.

    Notes

    • Webhook trigger replay can be initiated by initiating an UPDATE / http PUT for a trigger
    • Re-triggering will initiate fanout of the trigger to subscriptions for delivery
    • Delivery attempts are dependent upon the active subscriptions
    • Read of the trigger returns the active subscriptions for the trigger in the representation for debugging expected live subscriptions

    Parameters

    urn (path, required)

    String representation of a Unique Resource Name. Typically a UUID with 36 characters.

    Responses

    200 OK
    returns Webhook TriggerREAD_SUCCESS
    404 Not found
    returns ErrorNOT_FOUND
    curl -H "Authorization: Bearer $BAACK_API_TOKEN" \
      https://api.baack.co/n/v1/webhooktrigger/{urn}
  • DeleteDELETE/n/v1/webhooktrigger/{urn}

    Endpoint for webhook event trigger representation used to access the initiating trigger for webhook delivery.

    Parameters

    urn (path, required)

    String representation of a Unique Resource Name. Typically a UUID with 36 characters.

    Responses

    202
    DELETE_SUCCESS

Fields

Webhook Trigger fields
FieldTypeDescription
urnstring (uuid)
ownerCompany

Required on create.

.

subscriptionsarray of Webhook Subscription

Ignored on update.

targetUrnstring (uuid)
subjectstring

Required on create.

.

One of: UNKNOWN, ADDRESS, API_CLIENT, BEARER_TOKEN, BOOLEAN_ITEM, CLIENT_IDENTIFIER, COMPANY, DATETIME_ITEM, DOUBLE_ITEM, EMAIL, ENTITY, ENTITY_LIST, GROUP, GROUP_MEMBERSHIP, IDENTITY, JSON_ITEM, LINK_ITEM, REFERENCE_ITEM, IMAGE_ITEM, LATLONG_ITEM, LONG_ITEM, MARKDOWN_ITEM, MESSAGE_THREAD, MESSAGE_THREAD_NOTIFICATION, MONEY_ITEM, OAUTH_TOKEN, PAYMENT_INVOICE, PAYMENT_INVOICE_LINE, PAYMENT_INVOICE_REMITTANCE, PERMISSION, PERSON, PERSON_NAME, PROJECT, ROLE, TASK, TELEPHONE, TEMPLATE_ITEM, TEXT_ITEM, THREAD_POST, WEBHOOK_SUBSCRIPTION, WORKFLOW, DEAL, LEAD

eventstring

Required on create.

.

One of: ALL, CREATE, UPDATE, DELETE

timestampstring (date-time)
deliveriesarray of Webhook Delivery

Ignored on update.

Used by: Search Item, Webhook Event

Webhook Delivery

Representation of a webhook delivery attempt body which is sent when a webhook trigger event matches a subscription for a change.

Fields

Webhook Delivery fields
FieldTypeDescription
urnstring (uuid)
targetUrnstring (uuid)
httpResponseCodeinteger (int32)
subscriptionWebhook Subscription
attemptinteger (int32)
endTimestampstring (date-time)
startTimestampstring (date-time)
statusstring

One of: PENDING, RUNNING, DONE, RETRY_PENDING, RETRY_EXCEEDED, PROCESSING_ERROR, BEARER_UNAVAILABLE, ACCESS_DENIED_ERROR, CONNECTION_ERROR, STATUS_CODE_ERROR, CLIENT_ERROR, DELIVERY_ERROR, CONNECTION_TIMEOUT_ERROR, RESPONSE_TIMEOUT_ERROR, OVERLOAD_ERROR

Used by: Webhook Trigger