curl 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}`, {
headers: { Authorization: `Bearer ${dashboardJwt}` },
})
const widget = await res.json()
Widgets
Get a widget
Fetch a single Liddie payment or donation widget by id, with the full configuration — appearance, currencies, amounts — documented on create widget.
GET
/
api
/
v1
/
widgets
/
{id}
curl 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}`, {
headers: { Authorization: `Bearer ${dashboardJwt}` },
})
const widget = await res.json()
Returns one widget by id, with the same fields documented on Create a widget.
Who can call this
Send your dashboard JWT (browser session) as a Bearer token, with team rolemerchant_admin or merchant_member plus the widgets:view permission. Widget management is not accessible with an API key. See the Authentication guide.
Path parameters
string
required
The widget id.
curl 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}`, {
headers: { Authorization: `Bearer ${dashboardJwt}` },
})
const widget = await res.json()
See also
- Create a widget — documentation for every field on the returned widget.
- Update a widget — full update with the same body as create.
- List widgets — enumerate all widgets on the account.