Baack

Webhook Subscription

Browse the docs

Endpoints

  • CreatePOST/n/v1/webhooksubscription/

    Webhook subscription endpoint which supports the management of subscriptions at scale.

    Baack allocates the URN and returns it in the response.

    Request body: Webhook Subscription

    Responses

    201 Created
    returns Webhook SubscriptionCREATE_SUCCESS
    400 Bad request
    returns ErrorREPRESENTATION_MISSING_REQUIRED_FIELD
  • ReadGET/n/v1/webhooksubscription/{urn}

    Webhook subscription endpoint which supports the management of subscriptions at scale.

    Notes

    • Webhook subscriptions are fine grained.
    • The expiration timestamp for the webhook can not be more than 90 days in the future but can be updated periodically to ensure that subscriptions remain fresh.
    • Webhooks which fail to accept delivery according to the requirements for handling events will have their expiration updated. Create a secondary subscription to notify your integration when webhooks are cancelled.

    Parameters

    urn (path, required)

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

    Responses

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

    Webhook subscription endpoint which supports the management of subscriptions at scale.

    Parameters

    urn (path, required)

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

    Request body: Webhook Subscription

    Responses

    202
    returns Webhook SubscriptionUPDATE_SUCCESS
    400 Bad request
    returns ErrorREPRESENTATION_MISSING_REQUIRED_FIELD
  • DeleteDELETE/n/v1/webhooksubscription/{urn}

    Webhook subscription endpoint which supports the management of subscriptions at scale.

    Parameters

    urn (path, required)

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

    Responses

    202
    DELETE_SUCCESS

Webhook

POSTyour destination URL

Subject: WEBHOOK_SUBSCRIPTION

Webhook for listening updates related to webhook subscriptions for your company.

Notification events for webhook subscription updates for your company account.

Updates to webhooks can be critical to your integration so it is strongly encouraged to integrate these as subscriptions being revoked can result in loss of functionality.

Note that when a webhook is disabled its expiration timestamp will be set to 'now' to disable the subscription.

Body: Webhook Event

Your response

200
Return 200 status to indicate that data was received successfully

Fields

Webhook Subscription fields
FieldTypeDescription
urnstring (uuid)
apiClientAPI Client

Required on create.Ignored on update.

.

authstring

One of: BASIC, DIGEST, BEARER, HMAC_SHA256

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

eventsPerMinuteinteger (int32)

Required on create.

.

expirationTimestampstring (date-time)
destinationUrlstring (uri)

Required on create.

.

Up to 1024 characters.

secretstring (password)

Required on create.

.

eventstring

Required on create.

.

One of: ALL, CREATE, UPDATE, DELETE

urlstring (uri)

Used by: Search Item, Webhook Delivery, Webhook Event, Webhook Trigger