API Reference

/

DELETE /v1/splats/{id}

DELETE /api/v1/splats/{splatId}

Permanently delete a splat owned by the supplied external user. This also removes its S3 assets (single file or LOD folder), splat-view records, and releases the external user's storage quota.

DELETE

https://moshpit.studio/api/v1/splats/{splatId}

Auth

All three headers are required:

–

Plain

Authorization: Bearer msk_YOUR_SECRET_KEY
X-Moshpit-Public-Key: mpk_YOUR_PUBLIC_KEY
X-Moshpit-External-User-Id: YOUR_HOST_USER_ID

The splat must belong to the integration tied to the keys, and its externalUserId must match the header value. Otherwise the response is 404.

REST API access

REST API access is included on Free, Pro, and Enterprise. Storage, Scene counts, and integration limits still apply.

Example request

SH

Bash

curl -X DELETE "https://moshpit.studio/api/v1/splats/65f1a2b3c4d5e6f7a8b9c0d1" \
  -H "Authorization: Bearer msk_YOUR_SECRET_KEY" \
  -H "X-Moshpit-Public-Key: mpk_YOUR_PUBLIC_KEY" \
  -H "X-Moshpit-External-User-Id: host_user_123"

Success response — 200 OK

{}

JSON

{ "status": "success" }

Side effects, executed in order:

  1. The splat document is removed from the database.
  2. All SplatView records for the splat are removed.
  3. The external user's usedBytes storage quota is decremented by fileSizeBytes.
  4. S3 assets are deleted — either the LOD folder (for splatType: "lod") or the single splat file plus thumbnails.
  5. Cache tags splat-{id}, splat-meta-{id}, home-portfolio are revalidated.

Error responses

StatusCause
401Missing or invalid Bearer / public-key combination
404Scene not found OR not owned by the supplied external user

What's next