Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We send a maximum of 100 initialization webhook requests per minute, so it may take some time if you want to initialize a lot of data.

Request

Code Block
languagebash
curl -X POST 'https://rest.doo.net/v1/webhooks/init/<resource_name>' \
-H 'Content-Type: application/json' \
-H 'x-api-key: <api_key>' \
-H 'Authorization: Bearer <access_token>' \
-d '{
  "event_id": <event_id>
  "organization_id": <organization_id>,
  last_updated_after: "<last_updated_after>",
  last_updated_before "<last_updated_before>",
  "webhook_type": ["<webhook_type>", <webhook_type>, ...],
  last"webhook_updatedconfiguration_afterid": "<last<webhook_updatedconfiguration_after>id>",
  last_updated_before "<last_updated_before>""max_rate_per_min": <max_rate_per_min>
}'

Parameters

Parameter

Required

Description

<resource_type_name>

Yes

The resource type you want to initialize.

Available options:

  • events

  • orders

  • attendees

  • contacts

  • invitees

    See Supported resources and webhook types for available resource names.

    <api_key>

    Yes

    see See Authorization

    <access_token>

    Yes

    see See Authorization

    <event_id>

    Yes, only for the following resource types:

    • orders

    • attendees

    • invitees

    <organization_id>

    Yes, only for the following resource types:

    • events

    • contacts

    <webhook_type>

    No

    Use it if you want to initialize only a particular webhook types.

    Available options for events resource type:

    • on_event_created

    • on_event_removed

    Available options for orders resource type:

    • order_created

    • order_cancelled

    Available options for attendees resource type:

    • attendee_pending

    • attendee_validated

    • attendee_cancelled

    • attendee_checkin

    Available options for contacts resource type:

    • on_contact_created

    • on_contact_deleted

    Available options for invitees resource type:

    • on_invitee_invited

    • on_invitee_opened

    • on_invitee_clicked

    • on_invitee_undecided

    • on_invitee_interested

    • on_invitee_declined

    • on_invitee_added

    <last_updated_after>

    No

    Use it if you want to initialize resources updated after a particular date and time.

    Format: Y-m-d H:i:s (example: 2021-03-25 09:00:00)

    Timezone: CET

    <last_updated_before>

    No

    Use it if you want to initialize resources updated before a particular date and time.

    Format: Y-m-d H:i:s (example: 2021-03-25 16:00:00)

    Timezone: CET

    <webhook_type>

    No

    Use it if you want to initialize only particular webhook types.

    See Supported resources and webhook types for available webhook types for the selected resource.

    webhook_configuration_id

    No

    In case you have multiple webhook configurations, you can specify the one for which you want to make the initialization.

    max_rate_per_min

    No

    Specifies the maximum number of requests per minute that we send for the webhook initialization.

    You can use this parameter to reduce the load to your system if required.

    Default value: 100

    Minimum value: 1

    Maximum value: 100

    Response example

    Code Block

    ...