Developer Documentation (API)
Get a list of templates
GET Request
Endpoint URL https://veski.leikbreytir.is/api/hook/list
Purpose
Lists the active REST hooks for your account
Required input parameters
None.
Returned values
On success you’ll receive a JSON array as the payload containing an array of arrays of REST hooks.
Each array contains the following fields:
- subscription_url: the subscription URL of this REST hook. You’ve specified it when subscribing.
- target_url: the target URL of this hook where data is pushed to. You’ve specified it when subscribing.
- event_type: the type of this hook. See the corresponding documentation on what hooks are available.
- pass_template: if you specified a pass template, its ID is returned here. Otherwhise the value will be null.
Example output:
[
{
"subscription_url": "https://my.online.service/api/resthook_subscribe/
appscan/123456789",
"target_url": "https://my.online.service/api/resthook/appscan
/123456789",
"event": "app_scan_created",
"pass_template": null
},
{
"subscription_url": "https://my.online.service/api/resthook_subscribe/
pass_created/123456789",
"target_url": "https://my.online.service/api/resthook/pass_created
/123456789",
"event": "pass_created",
"pass_template": null
}
]