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}.
- 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::GET, "https://api.track.toggl.com/webhooks/api/v1/validate/{workspace_id}/{subscription_id}/{validation_code}".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 | 
| validation_code | string | true | Validation code of the subscription | 
Response
200
OK
400
Possible error messages:
- subscription {subscription_id} for workspace {workspace_id} and validation code ‘{validation_code}’ was not found
 - subscription {subscription_id} has already been validated
 
500
Internal Server Error