Widget editor URL
Endpoint GET /widgets/:id/editor
Retrieve a widget's editor URL.
Path Parameters
Required
id
- The widget's id.
Example Request:
- curl
- Node.js
curl -H "Authorization: Bearer ACCESS_TOKEN" "https://api.commoninja.com/platform/api/v1/widgets/894f5aed-29f5-46c5-9f26-022bfccc5292/editor"
const axios = require('axios');
async function getData() {
const response = await axios.get('https://api.commoninja.com/platform/api/v1/widgets/894f5aed-29f5-46c5-9f26-022bfccc5292/editor', {
headers: {
'Authorization': 'Bearer ACCESS_TOKEN'
}
});
return response.data;
}
getData();
Example Response:
{
"url": "https://www.commoninja.com/comparison-tables/editor/view/894f5aed-29f5-46c5-9f26-022bfccc5292"
}
Tip
You can use the editor URL to embed the widget's editor in an iframe.