Widget type
Endpoint GET /widget-types/:id
Retrieve a widget type's data by id.
Path Parameters
Required
id
- The widget type's id.
Example Request:
- curl
- Node.js
curl -H "Authorization: Bearer ACCESS_TOKEN" "https://api.commoninja.com/platform/api/v1/widget-types/countdown"
const axios = require('axios');
async function getData() {
const response = await axios.get('https://api.commoninja.com/platform/api/v1/widget-types/countdown', {
headers: {
'Authorization': 'Bearer ACCESS_TOKEN'
}
});
return response.data;
}
getData();
Example Response:
{
"id": "countdown",
"name": "Countdown",
"slug": "countdown",
"buttonText": "Create a Countdown",
"teaser": "Boost engagement, increase conversions, and captivate visitors",
"logo": "https://website-assets.commoninja.com/distribution/1681118357912_countdown-icon.png",
"promotionImage": "https://website-assets.commoninja.com/distribution/1681118373386_countdown-promotion.png",
"categories": ["Engagement", "Conversion"]
}