# Set Document Format and Language

Use `format` to control the returned artifact and `language` to control the writing language.

```bash
curl -X POST "https://api.autocontentapi.com/content/Create" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "outputType": "briefing_doc",
    "topic": "State of AI procurement in healthcare",
    "text": "Keep it suitable for hospital executives and procurement teams.",
    "format": "html",
    "language": "español"
  }'
```

## Format Behavior

* `pdf`: returns `briefing_doc_url` and `document_url` when complete
* `html`: returns HTML in `document_content`
* `text`: returns plain text in `document_content`

## Tips

* Choose `pdf` for handoffs and direct downloads.
* Choose `html` when you plan to render the result in a browser or CMS.
* Choose `text` when you want the cleanest format for downstream automation.
* `language` applies to the generated briefing content, not just the title.

## Try it in code

* [C#](https://docs.autocontentapi.com/code-samples/documents/csharp/set-format-and-language)
* [Node.js](https://docs.autocontentapi.com/code-samples/documents/nodejs/set-format-and-language)
* [Java](https://docs.autocontentapi.com/code-samples/documents/java/set-format-and-language)
* [PHP](https://docs.autocontentapi.com/code-samples/documents/php/set-format-and-language)
* [Python](https://docs.autocontentapi.com/code-samples/documents/python/set-format-and-language)
