How can I properly general create an embed URL from my localhost for testing?

Hi,

I'm running the following curl command:

curl -X POST "https://retool.example.com/api/embed-url/external-user" \
  -H "Authorization: Bearer XXX \
  -H "Content-Type: application/json" \
  -d  '{ "landingPageUuid": APP_UUID, "groupIds": GROUP_IDs, "externalIdentifier": UUID}'

And I'm getting this error:

{"error":true,"message":"You must call this endpoint from a custom domain"}

My question is, how can I properly general create an embed URL from my localhost for testing?

I was able to solve this. Once you configure your custom domain, you can actually call the API and get a valid URL to embed, even if you are making the request from your local environment. I wish the documentation were more clear on this subject.

Thanks for updating this topic with a solution, @luismontoya3141! I can see how that error message is misleading. I'll pass on that feedback internally. :+1:

1 Like