Source maps
Upload, list and delete source maps and minified files for a release.
Upload the source maps from each build so minified JavaScript stack traces show your real files, functions and
lines. Each frame keeps its original location in minified and gets mapped: true. Events received before a map
was uploaded stay in the same issue.
The release in the path must equal the release your SDK sends.
The CLI uploads a whole build directory: every .map file and, by default, the .js, .mjs and .cjs files.
Pass --url on the cloud; it defaults to http://localhost:8000.
mendloop sourcemaps upload ./dist --release web@1.8.2 \
--org ORG_ID --project PROJECT_ID --key sk_live_… \
--url https://app.getmendloop.com --url-prefix ~/assets--org, --project, --key and --url also read MENDLOOP_ORG_ID, MENDLOOP_PROJECT_ID,
MENDLOOP_API_KEY and MENDLOOP_API_URL.
Upload a file#
/api/v1/orgs/{org_id}/projects/{project_id}/releases/{release}/filesUploads one source map or minified file. Uploading a file with a name that already exists for the release replaces it. Audit logged.
Auth: secret key with the sourcemaps:write scope, or a session. Either way the role behind it needs sourcemaps.upload.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
org_id |
uuid | required | Organization id |
project_id |
uuid | required | Project id |
release |
string | required | Release, e.g. web@1.8.2. No slashes, up to 200 characters. URL-encode @ if your client needs it. |
Body (multipart/form-data)
| Parameter | Type | Required | Description |
|---|---|---|---|
file |
file | required | The file, up to 50 MB |
name |
string | required | The URL it is served under, with ~ for the origin, e.g. ~/assets/app.4f2a.js.map. 1 to 500 printable characters. |
Response
| Field | Type | Description |
|---|---|---|
id |
uuid | File id |
name |
string | Name |
size |
integer | Bytes |
sha1 |
string | SHA-1 of the content |
uploaded_at |
datetime | When it was uploaded |
Errors
| Status | Code | When |
|---|---|---|
| 404 | project_not_found |
No such project in this mode |
| 422 | invalid_input |
Empty file, file over 50 MB, or an invalid name or release |
curl -X POST "https://app.getmendloop.com/api/v1/orgs/ORG_ID/projects/PROJECT_ID/releases/web@1.8.2/files" \
-H "Authorization: Bearer sk_test_…" \
-F "name=~/assets/app.4f2a.js.map" \
-F "file=@dist/assets/app.4f2a.js.map"import { readFile } from "node:fs/promises";
const form = new FormData();
form.append("name", "~/assets/app.4f2a.js.map");
form.append("file", new Blob([await readFile("dist/assets/app.4f2a.js.map")]), "app.4f2a.js.map");
const res = await fetch("https://app.getmendloop.com/api/v1/orgs/ORG_ID/projects/PROJECT_ID/releases/web@1.8.2/files", {
method: "POST",
headers: { Authorization: "Bearer sk_test_…" },
body: form,
});
if (!res.ok) throw new Error((await res.json()).error.message);
const data = await res.json();import requests
resp = requests.post(
"https://app.getmendloop.com/api/v1/orgs/ORG_ID/projects/PROJECT_ID/releases/web@1.8.2/files",
headers={"Authorization": "Bearer sk_test_…"},
data={
"name": "~/assets/app.4f2a.js.map"
},
files={"file": open("dist/assets/app.4f2a.js.map", "rb")},
timeout=30,
)
resp.raise_for_status()
data = resp.json(){
"id": "0193c2f0-8d9e-7a1b-bc2d-3e4f5a6b7c8d",
"name": "~/assets/app.4f2a.js.map",
"size": 482113,
"sha1": "2fd4e1c67a2d28fced849ee1bb76e7391b93eb12",
"uploaded_at": "2026-11-04T07:58:30Z"
}List files#
/api/v1/orgs/{org_id}/projects/{project_id}/releases/{release}/filesFiles uploaded for a release.
Auth: secret key with the issues:read scope, or a session. Either way the role behind it needs issues.view.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
org_id |
uuid | required | Organization id |
project_id |
uuid | required | Project id |
release |
string | required | Release, e.g. web@1.8.2. No slashes, up to 200 characters. URL-encode @ if your client needs it. |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit |
integer | optional | 1 to 200, default 50 |
cursor |
string | optional | next_cursor from the previous page |
Response
A page of file objects (id, name, size, sha1, uploaded_at).
Errors
| Status | Code | When |
|---|---|---|
| 404 | project_not_found |
No such project in this mode |
curl "https://app.getmendloop.com/api/v1/orgs/ORG_ID/projects/PROJECT_ID/releases/web@1.8.2/files" \
-H "Authorization: Bearer sk_test_…"const res = await fetch("https://app.getmendloop.com/api/v1/orgs/ORG_ID/projects/PROJECT_ID/releases/web@1.8.2/files", {
headers: { Authorization: "Bearer sk_test_…" },
});
if (!res.ok) throw new Error((await res.json()).error.message);
const data = await res.json();import requests
resp = requests.get(
"https://app.getmendloop.com/api/v1/orgs/ORG_ID/projects/PROJECT_ID/releases/web@1.8.2/files",
headers={"Authorization": "Bearer sk_test_…"},
timeout=30,
)
resp.raise_for_status()
data = resp.json(){
"items": [
{
"id": "0193c2f0-8d9e-7a1b-bc2d-3e4f5a6b7c8d",
"name": "~/assets/app.4f2a.js.map",
"size": 482113,
"sha1": "2fd4e1c67a2d28fced849ee1bb76e7391b93eb12",
"uploaded_at": "2026-11-04T07:58:30Z"
}
],
"next_cursor": null
}Delete a file#
/api/v1/orgs/{org_id}/projects/{project_id}/releases/{release}/files/{file_id}Deletes an uploaded file. Audit logged.
Auth: secret key with the sourcemaps:write scope, or a session. Either way the role behind it needs sourcemaps.upload.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
org_id |
uuid | required | Organization id |
project_id |
uuid | required | Project id |
release |
string | required | Release, e.g. web@1.8.2. No slashes, up to 200 characters. URL-encode @ if your client needs it. |
file_id |
uuid | required | File id |
Errors
| Status | Code | When |
|---|---|---|
| 404 | release_file_not_found |
No such file for this release |
curl -X DELETE "https://app.getmendloop.com/api/v1/orgs/ORG_ID/projects/PROJECT_ID/releases/web@1.8.2/files/FILE_ID" \
-H "Authorization: Bearer sk_test_…"const res = await fetch("https://app.getmendloop.com/api/v1/orgs/ORG_ID/projects/PROJECT_ID/releases/web@1.8.2/files/FILE_ID", {
method: "DELETE",
headers: { Authorization: "Bearer sk_test_…" },
});
if (!res.ok) throw new Error((await res.json()).error.message);import requests
resp = requests.delete(
"https://app.getmendloop.com/api/v1/orgs/ORG_ID/projects/PROJECT_ID/releases/web@1.8.2/files/FILE_ID",
headers={"Authorization": "Bearer sk_test_…"},
timeout=30,
)
resp.raise_for_status()(empty body)