List widget types
Overview
List all active widget types for the widget builder. Also returns the widget add-on status when you supply store_id (whether the store has an active add-on and which store ids it covers).
Prerequisites
- A bearer token in the
Authorizationheader.
Base URL
| Environment | URL |
|---|---|
| Production | https://production-api.shoutaboutus.com |
| Development | https://development-api.shoutaboutus.com |
Endpoint
GET /api/v1/widget/type
Authentication
-
Requires a bearer token in the
Authorization: Bearer <bearer-token>header. -
Bearer — any valid token (no role or ownership gate is applied).
Rate limit
- No rate limit.
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
store_id | integer | Optional | Must be an existing location + must belong to the auth company. When present, widget_add_ons is populated. |
company_id | integer | Optional | Must be an existing account + must belong to the auth company. |
How it works
- 200 with
{ "data": { "status": "success", "data": [.widget types ], "widget_add_ons": { status,store_ids} | null } }.widget_add_onsis null when nostore_idis given.
Response
200 OK · 200
200{
"data": {
"status": "success",
"data": [
{
"id": 1,
"name": "Feed Widget",
"status": "active"
},
{
"id": 2,
"name": "Badge Widget",
"status": "active"
}
],
"widget_add_ons": {
"status": true,
"store_ids": [
26,
27
]
}
}
}Errors
| Status | Meaning |
|---|---|
401 | The bearer token is missing, expired or invalid |
422 | The request failed validation — the response names the fields |
500 | Unexpected server error |
Example request
curl --request GET \
--url "https://production-api.shoutaboutus.com/api/v1/widget/type?store_id=123" \
--header 'Authorization: Bearer <bearer-token>' \
--header 'Accept: application/json'Updated 9 days ago
Did this page help you?
