GitHub user rohitm-espl created a discussion: 404 Not Found When Calling 
`/api/v1/dashboard/:id/embedded` Despite Valid Login + CSRF

I'm trying to programmatically retrieve the **embedded dashboard ID** using the 
Superset API, but the `/api/v1/dashboard/:id/embedded` endpoint always returns:

```json
{
  "message": "Not found"
}
```

Here is my authentication flow:

1. `POST /api/v1/security/login`
   → I successfully obtain a valid **access token**.

2. `GET /api/v1/security/csrf_token/`
   → I receive a **csrf token** and **session cookie**.

3. `GET /api/v1/dashboard/:id/embedded`
   → I include:

   * `Authorization: Bearer <access_token>`
   * `x-csrftoken: <csrf_token>`
   * `Cookie: session=<session_cookie_from_csrf_call>`

But the endpoint still returns **404 Not Found**.

**Expected:**
Fetch the embedded dashboard metadata (including `result.uuid`).

**Actual:**
Response:

```json
{
  "message": "Not found"
}
```

---

**Notes / What I Checked:**

* Other API endpoints (e.g., `/api/v1/dashboard/:id`) work fine using the same 
token + cookie.
* The dashboard exists and is accessible via UI.
* The slug/ID I’m using is correct.


GitHub link: https://github.com/apache/superset/discussions/35997

----
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