Developer Documentation (API)
- Authentication
- PHP Package
- V2 Endpoints
- Pass Templates
- Get a list of templates
- Describe the structure of a pass template
- Create a new template
- Update a template
- Patch a template
- Publish changes of a template
- Get information about fields of a pass-template only
- Schedule a Push Notification
- List scheduled notifications of a template
- Delete a scheduled Push Notification
- Copy a Pass Template
- Delete a Pass Template
- Create an iFrame Integration for a Template
- Create an URL Integration for a Template
- Passes
- REST Hooks
- Validating passes
- Deprecated endpoints
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
}
]