# Webhooks API

**URL:** https://community.toggl.com/c/tech-discussions/webhooks-api/24.md

[Latest](https://community.toggl.com/latest.md) · [Categories](https://community.toggl.com/categories.md) · [Tags](https://community.toggl.com/tags.md)

---

## [About the Webhooks API category](https://community.toggl.com/t/about-the-webhooks-api-category/394)

<div class="topic-metadata">

**Author:** [@Support](https://community.toggl.com/u/Support)\
**Replies:** 0\
**Last updated:** [December 2, 2024, 5:40pm UTC](https://community.toggl.com/t/about-the-webhooks-api-category/394 "2024-12-02T17:40:35Z")

</div>

The Webhooks API allows you to create subscriptions to be notified about modifications made to your workspace entities.

---

## ["Validate" Endpoint - GET Sets the subscription as validated](https://community.toggl.com/t/validate-endpoint-get-sets-the-subscription-as-validated/409)

<div class="topic-metadata">

**Author:** [@Support](https://community.toggl.com/u/Support)\
**Replies:** 0\
**Last updated:** [December 2, 2024, 5:54pm UTC](https://community.toggl.com/t/validate-endpoint-get-sets-the-subscription-as-validated/409 "2024-12-02T17:54:21Z")

</div>

https://api.track.toggl.com/webhooks/api/v1/validate/{workspace\_id}/{subscription\_id}/{validation\_code} Sets the subscription as validated if the received {validation\_code} matches the ones stored for {subscription\_id}. …

---

## [“Subscriptions” Endpoints - PATCH Updates an existing subscription enabled status given its ID and workspace ID](https://community.toggl.com/t/subscriptions-endpoints-patch-updates-an-existing-subscription-enabled-status-given-its-id-and-workspace-id/408)

<div class="topic-metadata">

**Author:** [@Support](https://community.toggl.com/u/Support)\
**Replies:** 0\
**Last updated:** [December 2, 2024, 5:53pm UTC](https://community.toggl.com/t/subscriptions-endpoints-patch-updates-an-existing-subscription-enabled-status-given-its-id-and-workspace-id/408 "2024-12-02T17:53:31Z")

</div>

https://api.track.toggl.com/webhooks/api/v1/subscriptions/{workspace\_id}/{subscription\_id} Updates existing subscription enabled status. cURL Go Ruby JavaScript Python Rust extern crate tokio;extern crate serde\_json;…

---

## [“Subscriptions” Endpoints - DELETE Remove existing subscription](https://community.toggl.com/t/subscriptions-endpoints-delete-remove-existing-subscription/407)

<div class="topic-metadata">

**Author:** [@Support](https://community.toggl.com/u/Support)\
**Replies:** 0\
**Last updated:** [December 2, 2024, 5:52pm UTC](https://community.toggl.com/t/subscriptions-endpoints-delete-remove-existing-subscription/407 "2024-12-02T17:52:48Z")

</div>

https://api.track.toggl.com/webhooks/api/v1/subscriptions/{workspace\_id}/{subscription\_id} Remove existing subscription given its ID and workspace ID. cURL Go Ruby JavaScript Python Rust extern crate tokio;extern cra…

---

## [“Subscriptions” Endpoints - PUT Update existing subscription](https://community.toggl.com/t/subscriptions-endpoints-put-update-existing-subscription/406)

<div class="topic-metadata">

**Author:** [@Support](https://community.toggl.com/u/Support)\
**Replies:** 0\
**Last updated:** [December 2, 2024, 5:52pm UTC](https://community.toggl.com/t/subscriptions-endpoints-put-update-existing-subscription/406 "2024-12-02T17:52:11Z")

</div>

https://api.track.toggl.com/webhooks/api/v1/subscriptions/{workspace\_id}/{subscription\_id} Updates existing subscription given its ID and workspace ID. cURL Go Ruby JavaScript Python Rust extern crate tokio;extern cr…

---

## ["Subscriptions" Endpoints - POST Creates a subscription](https://community.toggl.com/t/subscriptions-endpoints-post-creates-a-subscription/405)

<div class="topic-metadata">

**Author:** [@Support](https://community.toggl.com/u/Support)\
**Replies:** 0\
**Last updated:** [December 2, 2024, 5:51pm UTC](https://community.toggl.com/t/subscriptions-endpoints-post-creates-a-subscription/405 "2024-12-02T17:51:31Z")

</div>

https://api.track.toggl.com/webhooks/api/v1/subscriptions/{workspace\_id} Creates a subscription for the requested workspace ID. cURL Go Ruby JavaScript Python Rust extern crate tokio;extern crate serde\_json;use reqwe…

---

## ["Subscriptions" Endpoints - GET Retrieves existing subscriptions for the requested workspace ID](https://community.toggl.com/t/subscriptions-endpoints-get-retrieves-existing-subscriptions-for-the-requested-workspace-id/404)

<div class="topic-metadata">

**Author:** [@Support](https://community.toggl.com/u/Support)\
**Replies:** 0\
**Last updated:** [December 2, 2024, 5:51pm UTC](https://community.toggl.com/t/subscriptions-endpoints-get-retrieves-existing-subscriptions-for-the-requested-workspace-id/404 "2024-12-02T17:51:00Z")

</div>

https://api.track.toggl.com/webhooks/api/v1/subscriptions/{workspace\_id} Retrieves existing subscriptions for the requested workspace ID. cURL Go Ruby JavaScript Python Rust extern crate tokio;extern crate serde\_json…

---

## ["Status" Endpoint - GET Retrieve the Webhooks server status](https://community.toggl.com/t/status-endpoint-get-retrieve-the-webhooks-server-status/403)

<div class="topic-metadata">

**Author:** [@Support](https://community.toggl.com/u/Support)\
**Replies:** 0\
**Last updated:** [December 2, 2024, 5:49pm UTC](https://community.toggl.com/t/status-endpoint-get-retrieve-the-webhooks-server-status/403 "2024-12-02T17:49:31Z")

</div>

https://api.track.toggl.com/webhooks/api/v1/status Retrieve the Webhooks server status. cURL Go Ruby JavaScript Python Rust extern crate tokio;extern crate serde\_json;use reqwest::{Client};use reqwest::header::{CONTE…

---

## ["Ping" Endpoint - POST Sends test payload to subscription's callback URL](https://community.toggl.com/t/ping-endpoint-post-sends-test-payload-to-subscriptions-callback-url/402)

<div class="topic-metadata">

**Author:** [@Support](https://community.toggl.com/u/Support)\
**Replies:** 0\
**Last updated:** [December 2, 2024, 5:48pm UTC](https://community.toggl.com/t/ping-endpoint-post-sends-test-payload-to-subscriptions-callback-url/402 "2024-12-02T17:48:53Z")

</div>

https://api.track.toggl.com/webhooks/api/v1/ping/{workspace\_id}/{subscription\_id} Sends a dummy payload to subscription’s callback URL to check it’s accessible and returns the correct status. cURL Go Ruby JavaScript P…

---

## ["Event filters" Endpoints - GET Returns the list of supported event filters](https://community.toggl.com/t/event-filters-endpoints-get-returns-the-list-of-supported-event-filters/401)

<div class="topic-metadata">

**Author:** [@Support](https://community.toggl.com/u/Support)\
**Replies:** 0\
**Last updated:** [December 2, 2024, 5:47pm UTC](https://community.toggl.com/t/event-filters-endpoints-get-returns-the-list-of-supported-event-filters/401 "2024-12-02T17:47:37Z")

</div>

https://api.track.toggl.com/webhooks/api/v1/event\_filters Returns the list of supported event filters to be used when creating or updating a subscription. cURL Go Ruby JavaScript Python Rust extern crate tokio;extern…

---

## [Webhooks API - Request Examples](https://community.toggl.com/t/webhooks-api-request-examples/400)

<div class="topic-metadata">

**Author:** [@Support](https://community.toggl.com/u/Support)\
**Replies:** 0\
**Last updated:** [December 2, 2024, 5:46pm UTC](https://community.toggl.com/t/webhooks-api-request-examples/400 "2024-12-02T17:46:39Z")

</div>

We show practical examples on how to build requests to interact with the Webhooks API. Notes: the Webhooks API base URL is https://api.track.toggl.com/webhooks/api/v1, we will be using cURL, we will be parsing respons…

---

## [Webhooks API Validating Received Events](https://community.toggl.com/t/webhooks-api-validating-received-events/399)

<div class="topic-metadata">

**Author:** [@Support](https://community.toggl.com/u/Support)\
**Replies:** 0\
**Last updated:** [December 2, 2024, 5:45pm UTC](https://community.toggl.com/t/webhooks-api-validating-received-events/399 "2024-12-02T17:45:58Z")

</div>

In order to be sure that Toggl is the one sending events to your URL endpoint we include a special HTTP header X-Webhook-Signature-256 that you can use to validate that no one else is sending those requests. In order to…

---

## [Webhooks API URL Endpoint Validation](https://community.toggl.com/t/webhooks-api-url-endpoint-validation/398)

<div class="topic-metadata">

**Author:** [@Support](https://community.toggl.com/u/Support)\
**Replies:** 0\
**Last updated:** [December 2, 2024, 5:45pm UTC](https://community.toggl.com/t/webhooks-api-url-endpoint-validation/398 "2024-12-02T17:45:09Z")

</div>

For a subscription to receive events it has to be both enabled and validated. The objective of the validation is for the end user to prove that they have access to the events we will send to the URL endpoint. Otherwise,…

---

## [Webhooks API Event Filters](https://community.toggl.com/t/webhooks-api-event-filters/397)

<div class="topic-metadata">

**Author:** [@Support](https://community.toggl.com/u/Support)\
**Replies:** 0\
**Last updated:** [December 2, 2024, 5:44pm UTC](https://community.toggl.com/t/webhooks-api-event-filters/397 "2024-12-02T17:44:06Z")

</div>

Event Filters allow you to reduce the scope of received events. They currently provide filtering capabilities by entity type and HTTP action applied over them. Some possible event filters that you can build would be: A…

---

## [Webhooks API Authentication](https://community.toggl.com/t/webhooks-api-authentication/396)

<div class="topic-metadata">

**Author:** [@Support](https://community.toggl.com/u/Support)\
**Replies:** 0\
**Last updated:** [December 2, 2024, 5:42pm UTC](https://community.toggl.com/t/webhooks-api-authentication/396 "2024-12-02T17:42:26Z")

</div>

You must authenticate to the Webhooks API using the HTTP Basic Auth mechanism. The HTTP header should follow this structure: Authorization: Basic base64\_encode(\<user api token\>:api\_token) Where: \<user api token\> is y…

---

## [Webhooks API Overview](https://community.toggl.com/t/webhooks-api-overview/395)

<div class="topic-metadata">

**Author:** [@Support](https://community.toggl.com/u/Support)\
**Replies:** 0\
**Last updated:** [December 2, 2024, 5:41pm UTC](https://community.toggl.com/t/webhooks-api-overview/395 "2024-12-02T17:41:45Z")

</div>

The Webhooks API allows you to create subscriptions to be notified about modifications made to your workspace entities. General characteristics​ A user may define one or more Webhooks subscriptions per workspace. Each …
