Harmonizely
  • Introduction
  • Authentication
  • Pagination
  • Errors
  • Endpoints
    • Meeting Types
    • Single-Use Links
    • Webhooks
  • Resources
    • Webhook
Powered by GitBook
On this page
  • Create a webhook
  • List all webhooks
  • Delete a webhook

Was this helpful?

  1. Endpoints

Webhooks

You can configure webhook endpoints via the API to be notified about events that happen in your Harmonizely account.

Create a webhook

POST https://harmonizely.com/api/webhooks

Creates a new webhook object.

Headers

Name
Type
Description

Content-Type

string

application/json

X-API-KEY

string

Your API key

Request Body

Name
Type
Description

events

array

The list of events to enable for this endpoint. Possible values: ["meetingScheduled", "meetingCancelled", "meetingRescheduled"]

secret

string

The endpoint's secret used to generate webhook signatures.

url

string

The webhook URL.

{
    "events": [
        "meetingScheduled",
        "meetingCancelled",
        "meetingRescheduled"
    ],
    "url": "https://example.com/webhook",
    "secret": "something",
    "created_at": "2021-05-25T06:17:58+00:00",
    "uuid": "3e687c78-a8b8-4837-9333-57e3d807e61c"
}
{
    "message": "Invalid arguments",
    "errors": {
        "url": [
            "This value is not a valid URL."
        ]
    }
}

List all webhooks

GET https://harmonizely.com/api/webhooks

Lists all webhooks.

Headers

Name
Type
Description

Content-Type

string

application/json

X-API-KEY

string

Your API key

{
    "page": 1,
    "limit": 10,
    "pages": 1,
    "total": 1,
    "_embedded": {
        "items": [
            {
                "events": [
                    "meetingRescheduled",
                    "meetingCancelled",
                    "meetingScheduled"
                ],
                "url": "https://example.com/webhook",
                "secret": null,
                "created_at": "2021-05-24T11:04:11+00:00",
                "uuid": "2ba9ee0b-e62a-43bd-aed0-31b26056ecdc"
            }
        ]
    },
    "_links": {
        "self": {
            "href": "/api/webhooks?page=1&limit=10"
        },
        "first": {
            "href": "/api/webhooks?page=1&limit=10"
        },
        "last": {
            "href": "/api/webhooks?page=1&limit=10"
        }
    }
}

Delete a webhook

DELETE https://harmonizely.com/api/webhooks/:id

Deletes a webhook.

Path Parameters

Name
Type
Description

id

string

Unique identifier of the webhook (UUID4)

Headers

Name
Type
Description

Content-Type

string

application/json

X-API-KEY

string

Your API key.

{
    "code": 404,
    "message": "Not found."
}
PreviousSingle-Use LinksNextWebhook

Last updated 3 years ago

Was this helpful?