Complete a photo upload
curl --request POST \
--url https://ems-api.aventia.africa/api/public/v1/media/uploads/{uploadID}/complete \
--header 'Authorization: Basic <encoded-value>'const options = {method: 'POST', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://ems-api.aventia.africa/api/public/v1/media/uploads/{uploadID}/complete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://ems-api.aventia.africa/api/public/v1/media/uploads/{uploadID}/complete"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.post(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://ems-api.aventia.africa/api/public/v1/media/uploads/{uploadID}/complete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://ems-api.aventia.africa/api/public/v1/media/uploads/{uploadID}/complete"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "The file's contents don't match its type.",
"id": "019a4f2c-0000-7000-8000-000000000020",
"item": {
"alt_text": "Speaker on stage in front of a full hall",
"content_type": "image/jpeg",
"created_at": "2026-11-02T09:00:00Z",
"filename": "keynote-stage.jpg",
"height": 1080,
"id": "019a4f2c-0000-7000-8000-000000000010",
"size_bytes": 482113,
"thumb_url": "http://localhost:9020/ems-media/orgs/.../media/..._thumb.jpg?X-Amz-Signature=...",
"title": "Keynote stage",
"url": "http://localhost:9020/ems-media/orgs/.../media/....jpg?X-Amz-Signature=...",
"url_expires_at": "2026-11-02T10:00:00Z",
"width": 1920
},
"status": "ready"
}{
"error": "Not Found"
}{
"error": "Not Found"
}{
"error": "Not Found"
}{
"error": "validation failed",
"fields": {}
}{
"error": "Not Found"
}Photos
Complete a photo upload
Step 2 of 3: ask EMS to process the file. Needs media:write.
POST
/
api
/
public
/
v1
/
media
/
uploads
/
{uploadID}
/
complete
Complete a photo upload
curl --request POST \
--url https://ems-api.aventia.africa/api/public/v1/media/uploads/{uploadID}/complete \
--header 'Authorization: Basic <encoded-value>'const options = {method: 'POST', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://ems-api.aventia.africa/api/public/v1/media/uploads/{uploadID}/complete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://ems-api.aventia.africa/api/public/v1/media/uploads/{uploadID}/complete"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.post(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://ems-api.aventia.africa/api/public/v1/media/uploads/{uploadID}/complete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://ems-api.aventia.africa/api/public/v1/media/uploads/{uploadID}/complete"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "The file's contents don't match its type.",
"id": "019a4f2c-0000-7000-8000-000000000020",
"item": {
"alt_text": "Speaker on stage in front of a full hall",
"content_type": "image/jpeg",
"created_at": "2026-11-02T09:00:00Z",
"filename": "keynote-stage.jpg",
"height": 1080,
"id": "019a4f2c-0000-7000-8000-000000000010",
"size_bytes": 482113,
"thumb_url": "http://localhost:9020/ems-media/orgs/.../media/..._thumb.jpg?X-Amz-Signature=...",
"title": "Keynote stage",
"url": "http://localhost:9020/ems-media/orgs/.../media/....jpg?X-Amz-Signature=...",
"url_expires_at": "2026-11-02T10:00:00Z",
"width": 1920
},
"status": "ready"
}{
"error": "Not Found"
}{
"error": "Not Found"
}{
"error": "Not Found"
}{
"error": "validation failed",
"fields": {}
}{
"error": "Not Found"
}Authorizations
Your API key pair from Settings › API keys: public key as the username, secret key as the password.
Path Parameters
Upload ID