Get Project by Name
Import project deals with how to load a pre-existing project by sending api requests in JSON format.
If there are multiple projects with the same name in your account, only the most recent one will be loaded.
1. API endpoint
https://v2.aistudios.com/api/odin/editor/project/name/${project name}
2. Response parameters
key | desc | type |
---|---|---|
success | Success Rate | Boolean |
response | Project data | Json |
response.projectName | Project name | String |
response.scenes | scene data | Array(json) |
msg | Error Message | Boolean |
3. Sample Request
- cURL
- Node.js
- Python
curl https://v2.aistudios.com/api/odin/editor/project/name/${project name} \
-H "Authorization: ${API KEY}" \
-H "Content-Type: application/json" \
-X GET
import axios from "axios"
const token = ${API KEY}
axios.get('https://v2.aistudios.com/api/odin/editor/project/name/${project name}',
{
headers: {
'Authorization': ${token},
'Content-Type': 'application/json'
}
}
)
.then((res) => {
console.log(res.data)
})
.catch((error) => {
console.error(error)
})
import requests
import json
url = "https://v2.aistudios.com/api/odin/editor/project/name/${project name}"
headers = {
"Content-Type": "application/json",
"Authorization": ${API TOKEN}
}
r = requests.get(url, headers=headers)