Skip to main content

Validate

GET Sets the subscription as validated if the received {validation_code} is correct.​

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  https://api.track.toggl.com/webhooks/api/v1/validate/{workspace_id}/{subscription_id}/{validation_code} \
-H "Content-Type: application/json"

Parameters​

Path​

nametyperequireddescription
workspace_idintegertrueNumeric ID of the workspace
subscription_idintegertrueNumeric ID of the subscription
validation_codestringtrueValidation 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
© 2024 Toggl. All rights reserved.