Confirm file upload
import requests
url = "https://api.memic.ai/api/v1/files/{file_id}/confirm"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)curl --request POST \
--url https://api.memic.ai/api/v1/files/{file_id}/confirm \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.memic.ai/api/v1/files/{file_id}/confirm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "<string>",
"original_filename": "<string>",
"size": 123,
"mime_type": "<string>",
"project_id": "<string>",
"status": "uploading",
"blob_storage_path": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"reference_id": "<string>",
"environment_id": "<string>",
"environment_slug": "<string>",
"folder_id": "<string>",
"folder_name": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Endpoints
Confirm file upload
Signal that the file has been uploaded to the presigned URL returned by /files/init. Memic queues the file for chunking, embedding, and indexing.
POST
/
api
/
v1
/
files
/
{file_id}
/
confirm
Confirm file upload
import requests
url = "https://api.memic.ai/api/v1/files/{file_id}/confirm"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)curl --request POST \
--url https://api.memic.ai/api/v1/files/{file_id}/confirm \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.memic.ai/api/v1/files/{file_id}/confirm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "<string>",
"original_filename": "<string>",
"size": 123,
"mime_type": "<string>",
"project_id": "<string>",
"status": "uploading",
"blob_storage_path": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"reference_id": "<string>",
"environment_id": "<string>",
"environment_slug": "<string>",
"folder_id": "<string>",
"folder_name": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Memic API key. Every key is bound to exactly one environment — get one from the Memic dashboard under API Keys.
Path Parameters
Response
Successful Response
Response DTO for file upload.
Enum for file processing status.
Available options:
uploading, uploaded, upload_failed, conversion_started, conversion_complete, conversion_failed, parsing_started, parsing_complete, parsing_failed, chunking_started, chunking_complete, chunking_failed, embedding_started, embedding_complete, embedding_failed, ready