Create file upload slot
curl --request POST \
--url https://api.aireserve.com/v1/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content_type": "<string>",
"size_bytes": 123
}
'import requests
url = "https://api.aireserve.com/v1/files"
payload = {
"content_type": "<string>",
"size_bytes": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({content_type: '<string>', size_bytes: 123})
};
fetch('https://api.aireserve.com/v1/files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Files
Create file upload slot
Create a presigned upload slot for a video file
POST
/
v1
/
files
Create file upload slot
curl --request POST \
--url https://api.aireserve.com/v1/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content_type": "<string>",
"size_bytes": 123
}
'import requests
url = "https://api.aireserve.com/v1/files"
payload = {
"content_type": "<string>",
"size_bytes": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({content_type: '<string>', size_bytes: 123})
};
fetch('https://api.aireserve.com/v1/files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
Your AI Reserve API key (aireserve_api_…) from the API Keys page in the portal (https://portal.aireserve.com/keys).
Response
200
Default Response