Start a chunked dataset upload (init)
Bring your own LeRobot dataset from disk, resumably. Declare a manifest of files (relative path, size, sha256 id) plus a chunk_size (max 64 MB); the server validates paths and caps (50 GB total, 5000 files) and returns an upload_id. Then PUT each chunk and POST …/complete. Upload state survives dropped connections, other clients, and server restarts. NOTE the file sha256 is a CHUNK-LIST ROOT, the SHA-256 over the ordered raw 32-byte per-chunk digests , not a plain whole-file hash (browsers cannot stream-hash large files).
curl --request POST \
--url https://forge.alakazam.gg/api/workbench/uploads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filename_manifest": [
{
"path": "<string>",
"size": 123,
"sha256": "<string>"
}
],
"chunk_size": 123
}
'import requests
url = "https://forge.alakazam.gg/api/workbench/uploads"
payload = {
"filename_manifest": [
{
"path": "<string>",
"size": 123,
"sha256": "<string>"
}
],
"chunk_size": 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({
filename_manifest: [{path: '<string>', size: 123, sha256: '<string>'}],
chunk_size: 123
})
};
fetch('https://forge.alakazam.gg/api/workbench/uploads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://forge.alakazam.gg/api/workbench/uploads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filename_manifest' => [
[
'path' => '<string>',
'size' => 123,
'sha256' => '<string>'
]
],
'chunk_size' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://forge.alakazam.gg/api/workbench/uploads"
payload := strings.NewReader("{\n \"filename_manifest\": [\n {\n \"path\": \"<string>\",\n \"size\": 123,\n \"sha256\": \"<string>\"\n }\n ],\n \"chunk_size\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://forge.alakazam.gg/api/workbench/uploads")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"filename_manifest\": [\n {\n \"path\": \"<string>\",\n \"size\": 123,\n \"sha256\": \"<string>\"\n }\n ],\n \"chunk_size\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://forge.alakazam.gg/api/workbench/uploads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filename_manifest\": [\n {\n \"path\": \"<string>\",\n \"size\": 123,\n \"sha256\": \"<string>\"\n }\n ],\n \"chunk_size\": 123\n}"
response = http.request(request)
puts response.read_body{
"upload_id": "up_0a1b2c3d4e5f6a7b"
}{
"detail": "<string>",
"errors": [
"<string>"
],
"schemaVersion": "<string>"
}{
"detail": "<string>",
"errors": [
"<string>"
],
"schemaVersion": "<string>"
}Authorizations
Either a Supabase user access token (from a password login, or the passwordless magic-link flow) or a long-lived forge_sk_… API key. Both are sent as Authorization: Bearer <value> and resolve to the same owner, so every endpoint accepts either. Session tokens expire in ~1h; API keys do not expire and are the credential for MCP clients, CI, and partner integrations.
Body
Response
Upload created
"up_0a1b2c3d4e5f6a7b"
curl --request POST \
--url https://forge.alakazam.gg/api/workbench/uploads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filename_manifest": [
{
"path": "<string>",
"size": 123,
"sha256": "<string>"
}
],
"chunk_size": 123
}
'import requests
url = "https://forge.alakazam.gg/api/workbench/uploads"
payload = {
"filename_manifest": [
{
"path": "<string>",
"size": 123,
"sha256": "<string>"
}
],
"chunk_size": 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({
filename_manifest: [{path: '<string>', size: 123, sha256: '<string>'}],
chunk_size: 123
})
};
fetch('https://forge.alakazam.gg/api/workbench/uploads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://forge.alakazam.gg/api/workbench/uploads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filename_manifest' => [
[
'path' => '<string>',
'size' => 123,
'sha256' => '<string>'
]
],
'chunk_size' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://forge.alakazam.gg/api/workbench/uploads"
payload := strings.NewReader("{\n \"filename_manifest\": [\n {\n \"path\": \"<string>\",\n \"size\": 123,\n \"sha256\": \"<string>\"\n }\n ],\n \"chunk_size\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://forge.alakazam.gg/api/workbench/uploads")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"filename_manifest\": [\n {\n \"path\": \"<string>\",\n \"size\": 123,\n \"sha256\": \"<string>\"\n }\n ],\n \"chunk_size\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://forge.alakazam.gg/api/workbench/uploads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filename_manifest\": [\n {\n \"path\": \"<string>\",\n \"size\": 123,\n \"sha256\": \"<string>\"\n }\n ],\n \"chunk_size\": 123\n}"
response = http.request(request)
puts response.read_body{
"upload_id": "up_0a1b2c3d4e5f6a7b"
}{
"detail": "<string>",
"errors": [
"<string>"
],
"schemaVersion": "<string>"
}{
"detail": "<string>",
"errors": [
"<string>"
],
"schemaVersion": "<string>"
}
