GitHub user dosubot[bot] added a comment to the discussion: 404 Not Found When 
Calling `/api/v1/dashboard/:id/embedded` Despite Valid Login + CSRF

<!-- Answer -->
The endpoint you’re calling, `/api/v1/dashboard/:id/embedded`, is not the 
correct or supported API for retrieving embedded dashboard metadata in 
Superset. The actual API for this is `/api/v1/embedded_dashboard/:uuid`, where 
`:uuid` is the embedded dashboard’s unique identifier—not the dashboard’s 
numeric ID or slug. 

A 404 from the embedded dashboard API usually means either the embedded 
dashboard record for that UUID doesn’t exist, or the `EMBEDDED_SUPERSET` 
feature flag isn’t enabled in your Superset config. Embedded dashboards are 
managed as separate resources from regular dashboards and must be 
created/upserted before you can retrieve their UUID or metadata. You also need 
the right permissions and the dashboard must be published, not in edit mode. 

To enable embedding, set in your config:
```python
FEATURE_FLAGS = {
    'EMBEDDED_SUPERSET': True,
    'EMBEDDABLE_CHARTS': True
}
```
and ensure your user has the `can_set_embedded` permission. 

To get the embedded dashboard UUID, you typically need to create or upsert an 
embedded dashboard resource for your dashboard first. Once you have the UUID, 
use `/api/v1/embedded_dashboard/:uuid` to fetch its metadata. If you use the 
dashboard ID or slug with this endpoint, you’ll always get a 404—even if the 
dashboard exists and you’re authenticated. 

References:  
- [Embedded dashboard API expects UUID, not dashboard 
ID](https://github.com/apache/superset/blob/master/tests/integration_tests/embedded/api_tests.py)
  
- [Feature flag and permission 
requirements](https://github.com/apache/superset/issues/33702)  
- [Embedded dashboard model and UUID 
generation](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/models/embedded_dashboard.py#L27-L52)


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/4689fe26-992a-46df-8fc0-c2eea88259b8?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/4689fe26-992a-46df-8fc0-c2eea88259b8?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/4689fe26-992a-46df-8fc0-c2eea88259b8?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/4689fe26-992a-46df-8fc0-c2eea88259b8?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/4689fe26-992a-46df-8fc0-c2eea88259b8?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/4689fe26-992a-46df-8fc0-c2eea88259b8?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/4689fe26-992a-46df-8fc0-c2eea88259b8?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
 nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/35997)

GitHub link: 
https://github.com/apache/superset/discussions/35997#discussioncomment-14879230

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to