Get an upload
curl --request GET \
--url https://api.solaraai.com/api/v1/projects/uploads/status/{uploadID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/projects/uploads/status/{uploadID}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.solaraai.com/api/v1/projects/uploads/status/{uploadID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "open",
"upload_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"video_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content_type": "<string>",
"duration_ms": 123,
"error": {
"code": "invalid_credentials",
"message": "<string>"
},
"size_bytes": 123,
"used": true
}{
"code": "invalid_credentials",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Upload
Get an upload
Solara AI API: Where an upload stands: fetching while Solara downloads a link, ready once a video can be made from it (with the video’s length when its file says), failed with the reason.
Permission: Edit (edit).
GET
/
api
/
v1
/
projects
/
uploads
/
status
/
{uploadID}
Get an upload
curl --request GET \
--url https://api.solaraai.com/api/v1/projects/uploads/status/{uploadID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/projects/uploads/status/{uploadID}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.solaraai.com/api/v1/projects/uploads/status/{uploadID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "open",
"upload_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"video_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content_type": "<string>",
"duration_ms": 123,
"error": {
"code": "invalid_credentials",
"message": "<string>"
},
"size_bytes": 123,
"used": true
}{
"code": "invalid_credentials",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Authorizations
Response
OK