Mendloop Docs Request access

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.

Tip:

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.

Shell
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#

POST/api/v1/orgs/{org_id}/projects/{project_id}/releases/{release}/files

Uploads 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
Shell
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"
Response 201JSON
{
  "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#

GET/api/v1/orgs/{org_id}/projects/{project_id}/releases/{release}/files

Files 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
Shell
curl "https://app.getmendloop.com/api/v1/orgs/ORG_ID/projects/PROJECT_ID/releases/web@1.8.2/files" \
  -H "Authorization: Bearer sk_test_…"
Response 200JSON
{
  "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#

DELETE/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
Shell
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_…"
Response 204Text
(empty body)