Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 4 Next »

For sending this request, you have to be authorized. See the Authorization page for more details.

If you want to start using webhooks with your external system and already have some resources in your doo account, you may need to initialize your system with all these existing resources.

After you make the following API request, we will send a webhook request to your external system for each specified resource item that already exists in your doo account. For example, if you chose to initialize all the events from doo, we will send a separate webhook request for each existing event in your doo account.

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

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>,
  "webhook_type": "<webhook_type>",
  last_updated_after: "<last_updated_after>",
  last_updated_before "<last_updated_before>"
}'

Parameters

Parameter

Required

Description

<resource_type_name>

Yes

The type the resources you want to initialize.

Available options:

  • events

  • orders

  • attendees

  • contacts

  • invitees

<api_key>

Yes

see Authorization

<access_token>

Yes

see Authorization

<event_id>

Yes, only for the following <resource_type_name>:

  • orders

  • attendees

<organization_id>

Yes, only for the following <resource_type_name>:

  • events

  • contacts

<webhook_type>

No

Available options:

<last_updated_after>

No

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

Timezone: CET

<last_updated_before>

No

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

Timezone: CET

Response example

 

  • No labels