Skip to main content
POST
/
api
/
webhooks
Create a webhook
curl --request POST \
  --url https://api.shelv.dev/api/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "events": [
    "shelf.ready"
  ],
  "url": "<string>"
}
'
{
  "createdAt": "2023-11-07T05:31:56Z",
  "events": [
    "shelf.ready"
  ],
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "secret": "<string>",
  "url": "<string>",
  "userId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
events
enum<string>[]
required
Minimum array length: 1
Available options:
shelf.ready,
shelf.failed,
shelf.review
url
string<uri>
required

Response

Webhook created (includes signing secret)

createdAt
string<date-time>
required
events
enum<string>[]
required
Available options:
shelf.ready,
shelf.failed,
shelf.review
id
string<uuid>
required
secret
string
required
url
string<uri>
required
userId
string
required