Retrieve automation templates
Query the list of templates used when using Docs To Video / Topic To Video / Url To Video / Scripts To Video
1. API Endpoint
https://app.aistudios.com/api/odin/v3/dropdown/templates_automation
2. Request Parameters
key | desc | type | required | default |
---|---|---|---|---|
category | Template Category Info | String | true | - |
orientation | Template orientation ( web | mobile ) | String | false | web |
fileBackground | Whether to use document content as background use after document upload ( true | false ) | String | false | false |
info
-
Allow per request category
- Docs to video :
business
|education
- [Topic / Url / Scripts] to video :
social
|business
|education
- Docs to video :
-
File Background option is for the Docs to video that uploads the document.
3. Response Parameters
key | desc | type |
---|---|---|
id | Unique ID of the template | String |
name | Name of the template | String |
thumbnailUrl | Template image | String |
4. Sample Request
- cURL
- Node.js
- Python
curl https://app.aistudios.com/api/odin/v3/dropdown/templates_automation \
-H "Authorization: ${API KEY}" \
-H "Content-Type: application/json" \
-X POST \
-G \
-d '{
"category": "social",
"orientation": "web",
"fileBackground": false
}'
import axios from "axios";
const token = ${API KEY};
axios.post('https://app.aistudios.com/api/odin/v3/dropdown/templates_automation',
{
headers: {
'Authorization': ${token},
'Content-Type': 'application/json'
},
params: {
"category": "social",
"orientation": "web",
"fileBackground": false
},
}
)
.then((res) => {
console.log(res.data);
})
.catch((error) => {
console.error(error);
})
import requests
import json
url = "https://app.aistudios.com/api/odin/v3/dropdown/templates_automation"
params = {
"category": "social",
"orientation": "web",
"fileBackground": false
}
headers = {
"Content-Type": "application/json",
"Authorization": ${API TOKEN}
}
r = requests.post(url, data=json.dumps(body), headers=headers)