> For the complete documentation index, see [llms.txt](https://docs.autocontentapi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.autocontentapi.com/code-samples/data-tables/from-text-4.md).

# Python

```python
import os
import requests

token = os.getenv("AUTOCONTENT_TOKEN", "YOUR_API_TOKEN")
endpoint = "https://api.autocontentapi.com/content/Create"

payload = {
    "outputType": "datatable",
    "resources": [
        {
            "type": "text",
            "content": "Company A raised $12M in Series A funding in Spain. Company B raised $35M in Series B funding in France."
        }
    ],
    "text": "Create columns for company, country, funding stage, funding amount, and positioning notes."
}

response = requests.post(
    endpoint,
    headers={
        "Authorization": f"Bearer {token}",
        "Content-Type": "application/json"
    },
    json=payload,
    timeout=60
)
response.raise_for_status()
print(response.json())
```
