Trouble sending raw API requests to Discord

  • 27 February 2024
  • 1 reply

I am trying to create a custom action using the Zapier custom actions feature available at

I used the AI-generated API request with the prompt "send a discord embed," which uses the URL "{{interaction_id}}/{{interaction_token}}/callback" for a POST request. It send an application/json body with the contents

{"type": 4, "data": {"embeds": [{"title": "{{title}}", "description": "{{description}}", "color": "{{color}}"}]}}

This is all fine; however, when trying to test it on the "test" tab, I get the following error:

Error: Request to{{interaction_id}}/{{interaction_token}}/callback returned 500. Error during execution: Unhandled variable found in the domain filter {{process.env.BASE_URL}}.

Since I did not provide valid information in the testing area, I expect an HTTP 4xx error, not a 500.

Am I doing something wrong, or is this an issue with Zapier?



1 reply

Userlevel 1

Hi @zapzapzapzapzap ,

I think you might find using in Zapier a breeze for the problem you’re trying to resolve. It's a neat tool that lets you test your code snippets with various scenarios, making life easier.


Please refer to this blog to know more about QuikRun. If you'd like to learn more about the tool, feel free to connect with me at or, will be more than happy to resolve your issue.