SG Ground Truth

GET /webhook/hooks

get_webhook_hooks

Lists every hook on the site, not only this script's. status takes active or disabled and a value no hook has answers 200 with zero rows rather than 400.

API

Params

part value
status active or disabled. Optional
page[size], page[number] default size 500

Sample requests

r = c.get("/webhook/hooks", params={"status": "active"})
{ "data": [ { "id": "<uuid>", "url": "https://<host>/hook",
    "entity_types": { "Version": { "update": ["sg_status_list"] } },
    "status": "active", "projects": [], "num_deliveries": 0,
    "validate_ssl_cert": true, "batch_deliveries": true,
    "is_token_set": true, "name": "", "description": "" } ],
  "links": { "self": "/api/v1/webhook/hooks",
             "next": "/api/v1/webhook/hooks?page%5Bnumber%5D=2&page%5Bsize%5D=500" } }

Response codes

status when
200 including for a status value no hook has, where data is []

Edge cases

  • The listing is site-wide. A hook another integration registered is returned with its third-party url and its entity_types, so a script reading this sees every subscription on the site.
  • is_token_set is a boolean. The token itself is never returned.
  • links.next is present on an empty page, as everywhere else in this API (006_pagination).
  • A status the enum does not have answers 200 with zero rows. There is no error to distinguish a filter typo from a site with no matching hooks.

Every entry on this site is the output of a probe in probes/. The corpus is generated by running those probes against a live Flow Production Tracking site, not written from memory.

Not affiliated with or endorsed by Autodesk. Flow Production Tracking is their product; this is an independent record of how its REST API answers.