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
- Python
- Rust
extern crate tokio;extern crate serde_json;use reqwest::{Client};use reqwest::header::{CONTENT_TYPE};#[tokio::main]async fn main() -> Result<(), reqwest::Error> { let client = Client::new(); let json = client.request(Method::POST, "https://api.track.toggl.com/webhooks/api/v1/ping/{workspace_id}/{subscription_id}".to_string()) .header(CONTENT_TYPE, "application/json") .send() .await? .json() .await?; println!("{:#?}", json); Ok(())}
Parameters
Path
name | type | required | description |
---|---|---|---|
workspace_id | integer | true | Numeric ID of the workspace |
subscription_id | integer | true | Numeric ID of the subscription |
Response
200
Name | Type | Description |
---|---|---|
status | string | - |
403
User not found/accessible for workspace
500
Internal Server Error