Apply Brand Logo with projectId
# pip install requests
import os
import requests
def main() -> None:
token = os.environ.get("AUTOCONTENT_TOKEN", "YOUR_API_TOKEN")
endpoint = "https://api.autocontentapi.com/content/Create"
payload = {
"outputType": "video",
"projects": ["YOUR_PROJECT_ID"],
"resources": [
{
"type": "text",
"content": "Explain our new platform launch and highlight customer success data.",
}
],
"text": "Keep this to 90 seconds with a product intro, key proof points, and a closing CTA.",
"titlePrompt": "Short, benefit-led launch teaser",
}
response = requests.post(
endpoint,
headers={
"Authorization": f"Bearer {token}",
"Content-Type": "application/json",
"Accept": "application/json",
},
json=payload,
timeout=30,
)
response.raise_for_status()
print("Request accepted:", response.json())
if __name__ == "__main__":
main()Last updated