# Create a Quiz from Text

Generate a quiz by combining a text resource with explicit instructions.

```bash
curl -X POST "https://api.autocontentapi.com/content/Create" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "outputType": "quiz",
    "resources": [
      { "type": "text", "content": "Key takeaways from our 2024 SaaS pricing study." }
    ],
    "text": "Create an 8-question multiple-choice quiz with 4 options each.",
    "quizDifficulty": "medium"
  }'
```

**Tips**

* Use `quizDifficulty` (`easy`, `medium`, `hard`) to control how challenging the questions feel.
* Keep `text` short and directive to steer question style and count.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.autocontentapi.com/quick-start/quizzes/from-text.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
