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_IDThe 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:
- The splat document is removed from the database.
- All
SplatViewrecords for the splat are removed. - The external user's
usedBytesstorage quota is decremented byfileSizeBytes. - S3 assets are deleted — either the LOD folder (for
splatType: "lod") or the single splat file plus thumbnails. - Cache tags
splat-{id},splat-meta-{id},home-portfolioare revalidated.
Error responses
| Status | Cause |
|---|---|
| 401 | Missing or invalid Bearer / public-key combination |
| 404 | Scene not found OR not owned by the supplied external user |
What's next
- PATCH /v1/splats/{splatId} — update splat metadata instead of deleting.
- GET /v1/splats — list the user's remaining splats after a delete.