# Manage hooks via webtask API

**URL:** <https://community.auth0.com/t/manage-hooks-via-webtask-api/8392>\
**Category:** Get Help\
**Tags:** webtask, hooks, management-api\
**Created:** [October 5, 2017, 12:11pm UTC](https://community.auth0.com/t/manage-hooks-via-webtask-api/8392 "2017-10-05T12:11:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexander.huber](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@alexander.huber](https://community.auth0.com/u/alexander.huber)\
**Post date:** [October 5, 2017, 12:11pm UTC](https://community.auth0.com/t/manage-hooks-via-webtask-api/8392/1 "2017-10-05T12:11:38Z")

</div>

In [this post](http://community.auth0.com/questions/7325/managing-hooks-and-rules) (Managing hooks and rules) it is mentioned that hooks can be managed using the Webtask API. How would that work specifically? Unfortunately, I am not sure where I should get the Webtask API token from. I found samples in the Auth0 Extend documentation, but I do not know how to apply the samples to the Webtasks in my Auth0 account.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [October 6, 2017, 7:26pm UTC](https://community.auth0.com/t/manage-hooks-via-webtask-api/8392/2 "2017-10-06T19:26:07Z")

</div>

If you follow the [instructions on how to setup the Auth0 Command Line Interface](https://auth0.com/docs/hooks/cli) (CLI) to manage hooks you’ll find how to obtain the token necessary to also perform the API calls. Having possession of the token you can see the Webtask [API docs](https://webtask.io/docs/webtask_upsert) to get an overall idea of the API surface. Have in mind that hooks are a specialization of webtasks and as such the CLI has better handling for reflecting the necessary hooks configuration into a webtask API call so you may need to do some further analysis to reach to the point where you can manage hooks through the Webtask API.

A possible approach would be to inspect the underlying requests made by the CLI as a quick way to know how to perform them directly against the API.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:56am UTC](https://community.auth0.com/t/manage-hooks-via-webtask-api/8392/3 "2018-03-02T05:56:50Z")

</div>


