Skip to Content
devhelp shopDocs

Admin — Webhooks

Webhook endpoint subscriptions, delivery logs, and secret rotation.

List webhook endpoints

GET
/admin/v1/webhooks

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Query Parameters

limit?number
Default24
cursor?string

Response Body

OK

application/json
  1. response
items*array<>
nextCursor*string|null
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/webhooks'
Example Response
{  "items": [    {      "id": "string",      "url": "string",      "description": "string",      "topics": [        "blog.updated"      ],      "status": "active",      "disabledReason": "string",      "previousSecretExpiresAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": "string"}
POST
/admin/v1/webhooks

Returns the signing secret. It is shown only here and after a rotation. The URL must be https and must not resolve to a private address.

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Request Body

application/json
  1. body
url*string
topics*array<>
description?string

Response Body

OK

application/json
  1. response
id*string
url*string
description*string|null
topics*array<>
status*string
Value in"active""disabled""deleted"
disabledReason*string|null
previousSecretExpiresAt*|null
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
secret*string
Example Request
curl -X POST 'https://api.devhelp.pk/admin/v1/webhooks' \  -H 'Content-Type: application/json' \  -d '{  "url": "string",  "topics": [    "blog.updated"  ]}'
Example Response
{  "id": "string",  "url": "string",  "description": "string",  "topics": [    "blog.updated"  ],  "status": "active",  "disabledReason": "string",  "previousSecretExpiresAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "secret": "string"}

Get a webhook endpoint

GET
/admin/v1/webhooks/{id}

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

id*string

Response Body

OK

application/json
  1. response
id*string
url*string
description*string|null
topics*array<>
status*string
Value in"active""disabled""deleted"
disabledReason*string|null
previousSecretExpiresAt*|null
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/webhooks/string'
Example Response
{  "id": "string",  "url": "string",  "description": "string",  "topics": [    "blog.updated"  ],  "status": "active",  "disabledReason": "string",  "previousSecretExpiresAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}
PATCH
/admin/v1/webhooks/{id}

Re-enabling an endpoint resumes its pending deliveries.

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

id*string

Request Body

application/json
  1. body
url?string
topics?array<>
description?string|null
status?string
Value in"active""disabled"

Response Body

OK

application/json
  1. response
id*string
url*string
description*string|null
topics*array<>
status*string
Value in"active""disabled""deleted"
disabledReason*string|null
previousSecretExpiresAt*|null
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X PATCH 'https://api.devhelp.pk/admin/v1/webhooks/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "url": "string",  "description": "string",  "topics": [    "blog.updated"  ],  "status": "active",  "disabledReason": "string",  "previousSecretExpiresAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}
DELETE
/admin/v1/webhooks/{id}

It stops receiving events immediately. Its delivery log is kept.

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

id*string

Response Body

OK

application/json
  1. response
id*string
deleted*unknown
Example Request
curl -X DELETE 'https://api.devhelp.pk/admin/v1/webhooks/string'
Example Response
{  "id": "string",  "deleted": true}
POST
/admin/v1/webhooks/{id}/rotate-secret

Returns the new secret. For 24 hours deliveries carry signatures from both the old and the new secret, so a receiver can switch over without dropping events.

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

id*string

Response Body

OK

application/json
  1. response
id*string
url*string
description*string|null
topics*array<>
status*string
Value in"active""disabled""deleted"
disabledReason*string|null
previousSecretExpiresAt*|null
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
secret*string
Example Request
curl -X POST 'https://api.devhelp.pk/admin/v1/webhooks/string/rotate-secret'
Example Response
{  "id": "string",  "url": "string",  "description": "string",  "topics": [    "blog.updated"  ],  "status": "active",  "disabledReason": "string",  "previousSecretExpiresAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "secret": "string"}
POST
/admin/v1/webhooks/{id}/test

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

id*string

Response Body

OK

application/json
  1. response
id*string
endpointId*string
eventId*string
topic*string
Value in"blog.updated""review.updated""message.updated""order.placed""order.confirmed""order.receipt_requested""order.cancelled""order.reported""order.report_withdrawn""fulfillment.created""fulfillment.dispatched""fulfillment.delivered""fulfillment.rto""fulfillment.received""fulfillment.cancelled""fulfillment.lost""return.created""refund.created""inventory.low_stock""inventory.out_of_stock""inventory.back_in_stock""product.created""product.updated""product.deleted""collection.created""collection.updated""collection.deleted""discount.created""discount.updated""discount.deleted""sale.started""sale.ended""customer.created""customer.updated""customer.deleted""checkout.updated""checkout.abandoned""contact.subscribed""page.created""page.updated""page.deleted""menu.updated""redirect.created""redirect.updated""redirect.deleted""store.updated""faq.updated""booking_setup.updated""enquiry.created""booking.booked""booking.rescheduled""booking.cancelled""booking.arrived""booking.completed""booking.no_show""booking.payment_recorded""site.published""payment.succeeded""payment.failed""payment.refunded""order.payment_expired""app.installed""app.uninstalled""app.updated""webhook.test"
status*string
Value in"pending""delivering""succeeded""failed"
attempts*number
nextAttemptAt*|null
lastStatusCode*number|null
lastError*string|null
succeededAt*|null
createdAt*string
Formatdate-time
Example Request
curl -X POST 'https://api.devhelp.pk/admin/v1/webhooks/string/test'
Example Response
{  "id": "string",  "endpointId": "string",  "eventId": "string",  "topic": "blog.updated",  "status": "pending",  "attempts": 0,  "nextAttemptAt": "2019-08-24T14:15:22Z",  "lastStatusCode": 0,  "lastError": "string",  "succeededAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z"}
GET
/admin/v1/webhooks/{id}/deliveries

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

id*string

Query Parameters

limit?number
Default24
cursor?string
status?string
Value in"pending""delivering""succeeded""failed"
topic?string
Value in"blog.updated""review.updated""message.updated""order.placed""order.confirmed""order.receipt_requested""order.cancelled""order.reported""order.report_withdrawn""fulfillment.created""fulfillment.dispatched""fulfillment.delivered""fulfillment.rto""fulfillment.received""fulfillment.cancelled""fulfillment.lost""return.created""refund.created""inventory.low_stock""inventory.out_of_stock""inventory.back_in_stock""product.created""product.updated""product.deleted""collection.created""collection.updated""collection.deleted""discount.created""discount.updated""discount.deleted""sale.started""sale.ended""customer.created""customer.updated""customer.deleted""checkout.updated""checkout.abandoned""contact.subscribed""page.created""page.updated""page.deleted""menu.updated""redirect.created""redirect.updated""redirect.deleted""store.updated""faq.updated""booking_setup.updated""enquiry.created""booking.booked""booking.rescheduled""booking.cancelled""booking.arrived""booking.completed""booking.no_show""booking.payment_recorded""site.published""payment.succeeded""payment.failed""payment.refunded""order.payment_expired""app.installed""app.uninstalled""app.updated""webhook.test"

Response Body

OK

application/json
  1. response
items*array<>
nextCursor*string|null
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/webhooks/string/deliveries'
Example Response
{  "items": [    {      "id": "string",      "endpointId": "string",      "eventId": "string",      "topic": "blog.updated",      "status": "pending",      "attempts": 0,      "nextAttemptAt": "2019-08-24T14:15:22Z",      "lastStatusCode": 0,      "lastError": "string",      "succeededAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": "string"}
GET
/admin/v1/webhook-deliveries/{id}

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

id*string

Response Body

OK

application/json
  1. response
id*string
endpointId*string
eventId*string
topic*string
Value in"blog.updated""review.updated""message.updated""order.placed""order.confirmed""order.receipt_requested""order.cancelled""order.reported""order.report_withdrawn""fulfillment.created""fulfillment.dispatched""fulfillment.delivered""fulfillment.rto""fulfillment.received""fulfillment.cancelled""fulfillment.lost""return.created""refund.created""inventory.low_stock""inventory.out_of_stock""inventory.back_in_stock""product.created""product.updated""product.deleted""collection.created""collection.updated""collection.deleted""discount.created""discount.updated""discount.deleted""sale.started""sale.ended""customer.created""customer.updated""customer.deleted""checkout.updated""checkout.abandoned""contact.subscribed""page.created""page.updated""page.deleted""menu.updated""redirect.created""redirect.updated""redirect.deleted""store.updated""faq.updated""booking_setup.updated""enquiry.created""booking.booked""booking.rescheduled""booking.cancelled""booking.arrived""booking.completed""booking.no_show""booking.payment_recorded""site.published""payment.succeeded""payment.failed""payment.refunded""order.payment_expired""app.installed""app.uninstalled""app.updated""webhook.test"
status*string
Value in"pending""delivering""succeeded""failed"
attempts*number
nextAttemptAt*|null
lastStatusCode*number|null
lastError*string|null
succeededAt*|null
createdAt*string
Formatdate-time
payload?unknown
attemptLog*array<>
Example Request
curl -X GET 'https://api.devhelp.pk/admin/v1/webhook-deliveries/string'
Example Response
{  "id": "string",  "endpointId": "string",  "eventId": "string",  "topic": "blog.updated",  "status": "pending",  "attempts": 0,  "nextAttemptAt": "2019-08-24T14:15:22Z",  "lastStatusCode": 0,  "lastError": "string",  "succeededAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "payload": null,  "attemptLog": [    {      "id": "string",      "statusCode": 0,      "durationMs": 0,      "error": "string",      "responseSnippet": "string",      "createdAt": "2019-08-24T14:15:22Z"    }  ]}

Send a delivery again

POST
/admin/v1/webhook-deliveries/{id}/redeliver

Queues the same event, with the same id, for another attempt. Previous attempts stay in the log.

Authorization

secretKey
headerx-api-key<token>

Admin secret API key (dh_sk_live_…). Keep server-side only; never expose in browser code. Also accepted as Authorization: Bearer.

Path Parameters

id*string

Response Body

OK

application/json
  1. response
id*string
endpointId*string
eventId*string
topic*string
Value in"blog.updated""review.updated""message.updated""order.placed""order.confirmed""order.receipt_requested""order.cancelled""order.reported""order.report_withdrawn""fulfillment.created""fulfillment.dispatched""fulfillment.delivered""fulfillment.rto""fulfillment.received""fulfillment.cancelled""fulfillment.lost""return.created""refund.created""inventory.low_stock""inventory.out_of_stock""inventory.back_in_stock""product.created""product.updated""product.deleted""collection.created""collection.updated""collection.deleted""discount.created""discount.updated""discount.deleted""sale.started""sale.ended""customer.created""customer.updated""customer.deleted""checkout.updated""checkout.abandoned""contact.subscribed""page.created""page.updated""page.deleted""menu.updated""redirect.created""redirect.updated""redirect.deleted""store.updated""faq.updated""booking_setup.updated""enquiry.created""booking.booked""booking.rescheduled""booking.cancelled""booking.arrived""booking.completed""booking.no_show""booking.payment_recorded""site.published""payment.succeeded""payment.failed""payment.refunded""order.payment_expired""app.installed""app.uninstalled""app.updated""webhook.test"
status*string
Value in"pending""delivering""succeeded""failed"
attempts*number
nextAttemptAt*|null
lastStatusCode*number|null
lastError*string|null
succeededAt*|null
createdAt*string
Formatdate-time
Example Request
curl -X POST 'https://api.devhelp.pk/admin/v1/webhook-deliveries/string/redeliver'
Example Response
{  "id": "string",  "endpointId": "string",  "eventId": "string",  "topic": "blog.updated",  "status": "pending",  "attempts": 0,  "nextAttemptAt": "2019-08-24T14:15:22Z",  "lastStatusCode": 0,  "lastError": "string",  "succeededAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z"}

On this page