Prerequisites
Before you begin, ensure you have:- A Doozy account with API access enabled (see Authentication)
- A Doozy API key
- A Zapier account (Professional plan or higher recommended for Webhooks)
Using Webhooks by Zapier
Since there isn’t a native Doozy app in Zapier, you’ll use Webhooks by Zapier to make API requests.Add a Trigger
Choose any trigger that suits your workflow (e.g., Schedule by Zapier for periodic reports).
Add Webhooks by Zapier Action
Click + to add an action, search for Webhooks by Zapier, and select Custom Request.
Configure the Request
Set up the webhook with the following settings:
| Field | Value |
|---|---|
| Method | GET |
| URL | https://api.doozy.live/v1/quizzes |
| Headers | x-api-key | your-api-key |
In Zapier, headers use the format
Header-Name | Header-Value. Enter your API key as:Example: Fetching a Quiz Report
To fetch detailed results for a specific quiz:| Field | Value |
|---|---|
| Method | GET |
| URL | https://api.doozy.live/v1/quizzes/{quizId}/report |
| Headers | x-api-key | your-api-key |
{quizId} with the actual quiz ID from your Doozy dashboard.
Parsing the Response
The API returns JSON data. To use specific fields in subsequent Zap steps:Handling Pagination
For endpoints returning multiple items:-
Make the initial request with a
limitparameter in the URL: - Use Zapier’s Looping by Zapier or Paths to handle pagination if you need more than 100 items.
Example Workflow: Daily Quiz Summary to Slack
Example Workflow: Export Quiz Results to Google Sheets
Error Handling
Zapier will mark a Zap step as failed if it receives a non-2xx response. Common errors:| Error | Cause | Solution |
|---|---|---|
| 401 Unauthorized | Invalid API key | Verify your API key is correct |
| 404 Not Found | Resource doesn’t exist | Check the quiz ID |
| 429 Too Many Requests | Rate limit exceeded | Reduce frequency or add delays |
Security Best Practices
- Keep your Zaps private
- Regularly rotate your API keys (see Authentication)
- Monitor your Zap history for unexpected errors