The Embeddables API gives you a way to programmatically retrieve the Embeddable dashboards that exist in your workspace.
// for security reasons, this must *never* be called from your client-side
fetch('<https://api.embeddable.com/api/v1/embeddables>', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': `Bearer ${apiKey}` /* keep your API Key secure */
}
});
Response:
{ embeddables: [
{ id: '1e01b46f-809c-45d5-8c33-2b5f5d7502bc', name: 'Marketing dash', tags:['Marketing'], lastPublishedAt: { default: "2024-02-11T18:53:03.527633Z"}},
{ id: 'd36785d6-6ef2-4d8a-bfce-ad09fbb97064', name: 'Product KPIs', tags: ['OKRs', 'Product'], lastPublishedAt: {}},
] }