curl -X DELETE https://api.liddie.io/api/v1/widgets/<widgetId> \
--cookie "<dashboard session>"
// Dashboard-session endpoint: send your dashboard JWT as a Bearer token
const res = await fetch(`https://api.liddie.io/api/v1/widgets/${widgetId}`, {
method: 'DELETE',
headers: { Authorization: `Bearer ${dashboardJwt}` },
})
const { data } = await res.json()
{ "ok": true, "data": { "deleted": true } }
Widgets
Delete a widget
Delete a Liddie payment or donation widget by id. Embedded copies stop working immediately, so remove the embed code from your pages before deleting.
DELETE
/
api
/
v1
/
widgets
/
{id}
curl -X DELETE https://api.liddie.io/api/v1/widgets/<widgetId> \
--cookie "<dashboard session>"
// Dashboard-session endpoint: send your dashboard JWT as a Bearer token
const res = await fetch(`https://api.liddie.io/api/v1/widgets/${widgetId}`, {
method: 'DELETE',
headers: { Authorization: `Bearer ${dashboardJwt}` },
})
const { data } = await res.json()
{ "ok": true, "data": { "deleted": true } }
Deletes a widget.
Deletion takes effect immediately for every embedded copy — any page still embedding this widget can no longer start checkouts. Remove or replace the embed code on your pages before deleting, so visitors don’t hit a dead button.
Who can call this
Send your dashboard JWT (browser session) as a Bearer token, with team rolemerchant_admin or merchant_member plus the widgets:manage permission. Widget management is not accessible with an API key. Mutations are rate-limited to 20 requests per minute. See the Authentication guide.
Path parameters
string
required
The widget id.
curl -X DELETE https://api.liddie.io/api/v1/widgets/<widgetId> \
--cookie "<dashboard session>"
// Dashboard-session endpoint: send your dashboard JWT as a Bearer token
const res = await fetch(`https://api.liddie.io/api/v1/widgets/${widgetId}`, {
method: 'DELETE',
headers: { Authorization: `Bearer ${dashboardJwt}` },
})
const { data } = await res.json()
{ "ok": true, "data": { "deleted": true } }
Response
boolean
true when the widget was deleted.See also
- List widgets — confirm the widget is gone.
- Create a widget — create a replacement widget.
- Update a widget — change a widget instead of deleting it.