Skip to main content
GET
/
api
/
v1
/
files
/
{file_id_or_hashid}
/
confirm
Confirm Upload
import requests

url = "https://www.datalab.to/api/v1/files/{file_id_or_hashid}/confirm"

headers = {"X-API-Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
curl --request GET \
--url https://www.datalab.to/api/v1/files/{file_id_or_hashid}/confirm \
--header 'X-API-Key: <api-key>'
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};

fetch('https://www.datalab.to/api/v1/files/{file_id_or_hashid}/confirm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://www.datalab.to/api/v1/files/{file_id_or_hashid}/confirm"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-API-Key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
{
  "file_id": 123,
  "reference": "<string>",
  "message": "<string>",
  "success": true
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

Authorizations

X-API-Key
string
header
required

Path Parameters

file_id_or_hashid
string
required

Cookies

wos-session
string
datalab_active_team
string

Response

Successful Response

Response after confirming upload.

file_id
integer
required

File ID

reference
string
required

File reference in datalab://file-{id} format

message
string
required

Confirmation message

success
boolean
default:true

Whether the confirmation was successful