API Reference
/
PATCH /v1/splats/{id}
PATCH /api/v1/splats/{splatId}
Update the title, description, or visibility of a splat owned by the supplied external user — or toggle the integration-level featured flag on any splat of the integration.
PATCH
https://moshpit.studio/api/v1/splats/{splatId}
Auth
For metadata updates (title, description, author, visibility) all three headers are required — those fields only mutate splats owned by the external user identified in the request:
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 same embedIntegrationId as the keys, and its externalUserId must match the header value. Otherwise the response is 404 (we never reveal whether a splat exists outside of the caller's scope).
featured is different: it is a curation act by the integration, not the splat owner, so it authenticates with the key pair alone (the external-user header is optional and ignored for scoping) and works on any splat of the integration — including splats owned by your end users. See Featuring a splat.
REST API access
REST API access is included on Free, Pro, and Enterprise. Storage, Scene counts, and integration limits still apply.
Body
JSON
{
"title": "Updated title",
"description": "Optional new description",
"visibility": "public"
}| Field | Type | Description |
|---|---|---|
title | string | Trimmed; 1–200 characters. Optional. |
description | string | Up to 2000 characters. Pass `""` to clear. Optional. |
visibility | "private" | "public" | "unlisted" | Optional. Public Scenes appear in discovery; unlisted Scenes are accessible by link; private Scenes require owner or authorized session access. |
featured | boolean | Integration-level curation flag. Must be the ONLY field in the request body. Optional. |
At least one field must be present. Omitted fields are left untouched. featured cannot be combined with the other fields in one request — they use different authority scopes.
Example request
Bash
curl -X PATCH "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" \
-H "Content-Type: application/json" \
-d '{"title":"Living room — final","visibility":"public"}'Success response — 200 OK
Returns the updated splat in the same shape as a list-splats item:
JSON
{
"status": "success",
"splat": {
"id": "65f1a2b3c4d5e6f7a8b9c0d1",
"title": "Living room — final",
"description": "Optional new description",
"imageUrl": "https://...",
"splatUrl": "https://...",
"visibility": "public",
"allowEmbed": true,
"allowComments": true,
"allowReactions": true,
"allowClone": false,
"remixedFrom": null,
"splatType": "lod",
"externalUserId": "host_user_123",
"productSlug": "moshpit.studio",
"isOwner": true,
"viewCount": 42,
"likeCount": 3,
"fileSizeBytes": 17825792,
"createdAt": "2026-04-12T18:30:00.000Z",
"updatedAt": "2026-05-19T11:02:14.000Z"
}
}Featuring a splat
Mark a splat for your product's curated surfaces (for example a gallery's
Featured rail). Send featured as the sole body field; the external-user
header is not required:
Bash
curl -X PATCH "https://moshpit.studio/api/v1/splats/65f1a2b3c4d5e6f7a8b9c0d1" \
-H "Authorization: Bearer msk_YOUR_SECRET_KEY" \
-H "X-Moshpit-Public-Key: mpk_YOUR_PUBLIC_KEY" \
-H "Content-Type: application/json" \
-d '{"featured":true}'Rules:
- Only
publicsplats withallowEmbed: truecan be featured — otherwise the response is409. - Featuring is idempotent: re-featuring an already-featured splat keeps its original
featuredAt, so curation order is stable. {"featured":false}clears the flag at any time.- Fetch the curated set with GET /v1/splats?featured=true&sort=featuredAt&dir=desc.
Error responses
| Status | Cause |
|---|---|
| 400 | Invalid JSON body, no updatable fields supplied, validation failure, or featured combined with other fields |
| 401 | Missing or invalid Bearer / public-key combination |
| 403 | Scene quota exceeded when a legacy exempt copy becomes public or unlisted (plan_limit) |
| 403 | visibility: "public" while the customer is at maxPublicSplats (PUBLIC_SPLAT_LIMIT_REACHED) |
| 404 | Scene not found OR not owned by the supplied external user (metadata updates) / not in the integration (featured) |
| 409 | featured: true on a Scene that is not public or has embedding disabled |
Making a legacy exempt copy public or unlisted checks Scene quota
New Duplicate and Remix results are unlisted and count against Scene limits at
creation. Existing private, quota-exempt copies keep their exemption until
first made public or unlisted. That update checks the account's maxSplats
and the external user's per-customer cap, and can return 403 plan_limit
with dimension: "splatCount". Once counted, making the Scene private again
does not release its slot.
Public scene cap
If you set maxPublicSplats on the external user, changing a non-public Scene
to visibility: "public" fails with 403 once the customer already has that
many public Scenes. The body carries code: "PUBLIC_SPLAT_LIMIT_REACHED",
limit, current and a message. Make another Scene private first, or raise
the cap with PUT /v1/external-user.
Scenes that are already public, and private or unlisted targets, are never
blocked.
What's next
- DELETE /v1/splats/{splatId} — permanently delete an owned splat.
- POST /v1/splats/batch-delete — delete up to 50 selected scenes in one request.
- GET /v1/splats — list the user's full library.
- POST /v1/splats/{splatId}/clone — duplicate or remix a scene.
Scene author
Scenes may include optional author credit, separate from the account or external user that owns the Scene:
JSON
{
"author": {
"name": "Leartes Studios",
"iconUrl": "https://example.com/author-icon.png",
"sourceUrl": "https://www.fab.com/listings/84e0fd02-9c0a-468b-9c3b-f454d4326f4e"
}
}Replace the example icon URL with the author's image URL. name is required when supplying an author and must contain 1–200 characters after trimming. iconUrl and sourceUrl are optional HTTP or HTTPS URLs, each up to 2048 characters.
Pass author when creating a Scene or updating it with PATCH /api/v1/splats/{splatId}. An update replaces the whole author object. Omit author to keep existing credit, or send "author": null to remove it. Author updates use the same external-user ownership checks as title updates and cannot be combined with featured.
Create, list, detail, and update responses return author, or null when no author is set. The Scene's author credit is available to Viewer Embeds. In Studio and Editor Embeds, open Project Settings → Author, fill in the fields, and select Save author. Clear all three fields and save to remove the credit. No author is required to save or publish a Scene.