List webhooks
curl --request GET \
--url https://api.shelv.dev/v1/webhooks \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.shelv.dev/v1/webhooks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.shelv.dev/v1/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.shelv.dev/v1/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"createdAt": "2023-11-07T05:31:56Z",
"events": [
"shelf.ready"
],
"publicId": "<string>",
"url": "<string>",
"userId": "<string>"
}
]Webhooks
List webhooks
List all webhook endpoints for the authenticated user.
GET
/
v1
/
webhooks
List webhooks
curl --request GET \
--url https://api.shelv.dev/v1/webhooks \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.shelv.dev/v1/webhooks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.shelv.dev/v1/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.shelv.dev/v1/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"createdAt": "2023-11-07T05:31:56Z",
"events": [
"shelf.ready"
],
"publicId": "<string>",
"url": "<string>",
"userId": "<string>"
}
]Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
200 - application/json
List of webhooks
Available options:
shelf.ready, shelf.failed, shelf.review Pattern:
^wh_[0-9a-f]{24}$Webhook endpoint URL. In production, URLs must use https://, avoid URL credentials, use port 443 when explicit, and cannot use localhost/.localhost/.local hostnames. In non-production, http://localhost and http://.localhost are allowed for local testing.
Maximum string length:
2048