Hi Typeform Community,
I’m trying to create and apply a custom theme to my Typeform using Zapier. The goal is to set the background to white and use red for the primary color (buttons and other accents). Here’s what I’ve done so far:
-
Set up my Zap with the following steps:
- Step 1: Trigger when a meeting transcript is ready in Tactiq.
- Step 2: Generate quiz questions using ChatGPT.
- Step 3: Run JavaScript to process the questions.
- Step 4: Send an API request to create the Typeform.
- Step 5: Make a custom request in Webhooks by Zapier to create the theme.
-
API Request to Create a Theme:
- Method: POST
- URL:
https://api.typeform.com/themes
- Headers:
- Authorization: Bearer
my_api_key
- Content-Type: application/json
- Authorization: Bearer
- Data:
Copy code
{ "name": "Brand Theme", "colors": { "question": "#FF0000", "answer": "#000000", "button": { "background": "#FF0000", "text": "#FFFFFF" }, "background": "#FFFFFF" } }
However, I keep getting the following error message: "Failed to create a request in Webhooks by Zapier: unmarshal payload (HTTP Status Code: 400)".
I've ensured that the JSON payload is correctly formatted without any comments. Here’s the exact setup I have in Zapier for the Webhooks by Zapier step:
- Method: POST
- URL:
https://api.typeform.com/themes
- Headers:
- Authorization: Bearer
my_api_key
- Content-Type: application/json
- Authorization: Bearer
- Data:
Copy code
{ "name": "Brand Theme", "colors": { "question": "#FF0000", "answer": "#000000", "button": { "background": "#FF0000", "text": "#FFFFFF" }, "background": "#FFFFFF" } }
Can anyone help me understand why this isn’t working and how to resolve the error? Any guidance would be greatly appreciated!
Thank you!