๐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())Last updated