Unathorized: Generating Embed URL

Hello, I have a Self-hosted retool on the Business plan.

I'm trying to execute this CURL request to get an embed URL.

curl -i -v -X POST "https://mydomain.com/api/embed-url/external-user" \
  -H "Authorization: Bearer XXXXX" \
  -H "Content-Type: application/json" \
  -d '{ "landingPageUuid": XXXX, "groupIds": [X], "externalIdentifier": XXXX }'

I've copied the App UID

I created an API key as seen below

I'm trying to authenticate this user that has access to the page we see

I'm not reusing the URL. This is a fresh request for a new Embed URL.

But I'm getting a 401 Unathorized

{"error":true,"message":"Unauthorized"}

Please help!

Hi @abdul_Amoud, I've sent you a DM with next steps. Since we need to verify some actual values let's continue the conversation there to protect your privacy.

This issue was fixed by creating a new access token with the embed apps scope.