How to show a static overlay with scenes
Arrange images into a scene, publish it, and apply it to a project, a program, or a single stream
To put static graphics — a logo, a sponsor bar, a lower-third image — on top of a live stream, you arrange them into a scene, publish it, and assign it to the streams that should show it. This guide drives the whole flow from the Program API. For a live, data-driven overlay rendered from a web page, add a live web URL to a scene in the dashboard — see Overlay Scenes (Dashboard).
Three objects work together:
- Scene — your saved arrangement of image assets. Native Frame stores the arrangement but never renders it: you flatten it into one image and publish that image. Viewers only ever see the published image.
- Overlay config — a named, ordered stack of up to four entries. Each entry is a published scene or an image asset. Entry 0 is the bottom layer.
- Assignment — which config a project, program, or stream shows. The most specific level wins.
What the dashboard calls a scene is an overlay config in the API. The ID in a dashboard scene's URL is a config ID: use it with the /overlay-configs endpoints, not /overlay-scenes. Sending it to an /overlay-scenes endpoint returns 404 overlay_scene_not_found.
Prerequisites
- A service-account JWT. In the dashboard, open your project, select API Keys, and under JSON Web Key Sets (JWKS) click Generate JWT on the Service Account JWK. To mint one from your backend instead, see JWT-based authentication. Send it on every request as
Authorization: Bearer <token>. Every endpoint below is scoped to the token's project, and paths that name aprojectIDmust use that project. - Storage for assets. The project's
assetscontent type must be routed to managed storage or your own bucket — see Storage (Dashboard) or Storage Profiles. - A way to flatten your arrangement into a single PNG — your own editor or renderer. Native Frame does not composite scenes.
Send every request to https://platform.nativeframe.com. All paths below start with /program/api/v2, so the full address of the first call is https://platform.nativeframe.com/program/api/v2/projects/{projectID}/assets.
Procedure
-
Upload your images as
imageassets.POST /projects/{projectID}/assetstakes amultipart/form-databody with ametadatapart (JSON) and afilepart (the image):curl -X POST "https://platform.nativeframe.com/program/api/v2/projects/<projectID>/assets" \-H "Authorization: Bearer <token>" \-F 'metadata={"id":"sponsor-logo","storageMode":"managed","type":"image"}' \-F 'file=@sponsor-logo.png;type=image/png'idis the asset ID, and you choose it: 1–128 characters froma-z A-Z 0-9 . _ -, unique in the project. It is the value every later step callsassetId. Reusing an ID returns409.storageModeismanagedwhen the project's assets go to managed storage, orbyowhen they go to your own bucket.typemust beimage. HTML assets cannot be scene sources.
The response is
201with{ "asset": { "id": "sponsor-logo", ... } }.To find the ID of an image already in the project — including one uploaded on the dashboard's Media page — list them with
GET /projects/{projectID}/assets?type=imageand readassets[].id. -
Create the scene.
POST /projects/{projectID}/overlay-scenes{"name": "Sponsor bar","sourceAssetIds": ["sponsor-logo", "sponsor-bar-bg"],"layout": { "items": [{ "assetId": "sponsor-logo", "x": 0, "y": 980 }] },"layoutVersion": 1}layoutis yours: any JSON object up to 64 KiB, returned exactly as you sent it. Store placement there, not image data.layoutVersionround-trips unchanged, so a later version of your editor can recognize an older arrangement.- Scene names are unique within the project.
The response is
201with{ "overlayScene": { "id": "<scene-id>", ... } }. Until you publish, the scene shows nothing. -
Publish it. Flatten the arrangement into one PNG, upload it as an
imageasset (step 1), then callPOST /projects/{projectID}/overlay-scenes/{sceneID}/publish:{ "assetId": "sponsor-bar-flat-v1" }The response is
200with the scene, itspublishedAssetIdnow set:{"overlayScene": {"id": "<scene-id>","projectId": "<project-id>","name": "Sponsor bar","sourceAssetIds": ["sponsor-logo", "sponsor-bar-bg"],"layout": { "items": [{ "assetId": "sponsor-logo", "x": 0, "y": 980 }] },"layoutVersion": 1,"publishedAssetId": "sponsor-bar-flat-v1","createdOn": "2026-11-17T18:02:11Z","updatedOn": "2026-11-17T18:05:40Z"}}Every stream whose config names this scene picks up the new image on its next update — no config change, no stream restart. Publishing the same image again leaves what viewers see unchanged, though the scene's
updatedOnmoves. Earlier published images are kept, because a broadcast in progress may still be showing one.Editing the scene later (
PATCH .../overlay-scenes/{sceneID}) does not change what viewers see. They keep the last published image until you publish again, so you can save work in progress freely. -
Create an overlay config that uses it.
POST /projects/{projectID}/overlay-configs{"name": "Sponsor bar config","entries": [{ "sceneId": "<scene-id>" }]}Each entry names exactly one of
sceneIdorassetId; an entry naming both returns400withinvalid_field. Up to four entries stack in order, entry 0 at the bottom. A scene must be published before a config can use it.The response is
201with{ "overlayConfig": { "id": "<config-id>", ... } }. -
Assign the config. Pick the level that matches how widely it should apply:
Level Request Applies to Project PUT /projects/{projectID}/overlay-configEvery stream in the project, unless a program or stream says otherwise Program PUT /programs/{programID}/overlay-configEvery stream in the program, including streams created later Stream PUT /streams/{streamID}/overlay-configThat stream only The body is
{ "configId": "<config-id>" }, and the response is200with the same shape. A stream resolves stream → program → project and uses the first level that has an assignment.- To show nothing at a level, even when a broader level assigns something, send
{ "configId": null }. - To inherit again from the level above,
DELETEthe assignment. The response is204.
Send JSONnull, not an empty string{ "configId": "" }is accepted without an error and turns the overlay off at that level, the same asnull. It does not clear the assignment. To go back to inheriting,DELETEthe assignment.To apply one config to several places in a single call, send the full set to
PUT /projects/{projectID}/overlay-configs/{configID}/assignments:{ "project": false, "programIds": ["<program-id>"], "streamIds": [] }All three fields are required. Targets that named this config and are not listed go back to inheriting.
To add or remove a few targets without sending the whole set, use
PATCHon the same path. Each side,addandremove, takes the same three fields, and each must carry all three — leaving one out returns400:{"add": { "project": false, "programIds": [], "streamIds": ["<stream-id>"] },"remove": { "project": false, "programIds": ["<program-id>"], "streamIds": [] }}The same target in both lists returns
400, and nothing is written. BothPUTandPATCHrespond200with every place the config is now assigned:{"assignments": {"configId": "<config-id>","assignments": [{ "level": "program", "programId": "<program-id>", "programName": "Main stage" },{ "level": "stream", "programId": "<program-id>", "programName": "Main stage", "streamId": "<stream-id>", "streamName": "Camera 2" }]}} - To show nothing at a level, even when a broader level assigns something, send
Result
Check what a stream resolves to with GET /streams/{streamID}/overlay-config:
{
"streamId": "<stream-id>",
"projectId": "<project-id>",
"resolution": "resolved",
"level": "program",
"config": {
"id": "<config-id>",
"projectId": "<project-id>",
"name": "Sponsor bar config",
"entries": [{ "sceneId": "<scene-id>" }]
}
}
resolution is one of:
resolved— a config applies, andlevelsays which assignment decided it.explicitly_none— a level assigned{ "configId": null }, so nothing is shown.unassigned— no level assigns anything.
Viewers see the overlay on the stream's overlay output: a separate stream with kind: "filtergraph" whose derivedFromId is the source stream. Native Frame creates the output stream for you once a config applies to a source stream; you do not create it yourself. To find it, call GET /streams?derivedFromId={sourceStreamID} and pick the entry whose kind is "filtergraph". The source stream itself is unchanged.
To see which configs are in use across the project, list them with GET /projects/{projectID}/overlay-configs?assigned=true: a config counts as assigned when the project, any program, or any stream names it. Use assigned=false for configs applied nowhere. The filter combines with q (a case-insensitive name match) and with paging. The response is { "overlayConfigs": [ ... ], "totalCount": 8, "nextCursor": "<cursor>" }:
totalCountis how many configs match across every page, not just this one.- To page, send
limit(1–200). PassnextCursorback ascursorfor the next page, with the sameqandassigned.nextCursoris absent on the last page, and always absent when you send nolimit, which returns every config at once.
Errors
Every error body has a message. The machine-readable code is in one of these places, so check both:
| Where the code is | Example |
|---|---|
Top-level errorCode | { "message": "...", "errorCode": "overlay_scene_not_found" } |
invalidFields[].errorCode | { "message": "...", "invalidFields": [{ "name": "...", "reason": "...", "errorCode": "invalid_field" }] } |
| Both | A top-level errorCode plus invalidFields naming the fields at fault |
| Neither | { "message": "..." } only — act on the status code |
Read the top-level errorCode first; if it is absent, read errorCode from each invalidFields entry; if neither is present, use the HTTP status and message.
Troubleshooting
Creating a config fails with 400 scene_not_published
The scene has never been published. Publish it (step 3), then create the config.
Publishing fails with asset_not_published
The image you named is still a draft asset. Finish the upload so the asset is published, then publish the scene again.
Creating a scene fails with 400 scene_source_not_image
A source is an HTML asset, does not exist, or belongs to another project. Scene sources must be image assets in the same project.
An /overlay-scenes call returns 404 for an ID copied from the dashboard
The ID in a dashboard scene's URL is an overlay config ID. Use it with /overlay-configs/{configID}.
A scene or image cannot be deleted
Deleting returns 409 while something still depends on it: scene_used_by_overlay_configs for a scene that a config uses, and asset_used_by_scenes for an image a scene is built from or publishes. The error names what to change first. Likewise, a config that is still assigned cannot be deleted (overlay_config_in_use). Remove its assignments first. A successful delete of a scene, config, or assignment returns 204.
The stream shows no overlay
Read GET /streams/{streamID}/overlay-config. If resolution is explicitly_none, a level assigned null (or an empty string). Delete that assignment to inherit again. If it is unassigned, nothing applies at any level yet.
Other errors
| Status | Code | Meaning |
|---|---|---|
400 | invalid_field | A config entry names both sceneId and assetId |
400 | too_many_overlay_entries | More than four entries in one config |
400 | overlay_entry_not_found | An entry names an asset or scene outside the project |
404 | overlay_scene_not_found | No scene with that ID in the project |
409 | overlay_scene_name_in_use | Another scene in the project has that name |
413 | layout_too_large | layout is over 64 KiB |
Related
- Overlay Scenes (Dashboard) — build and apply scenes on a visual canvas, including live web URLs
- JWT-based authentication — create the service-account token these calls use
- Media — upload and browse the project's graphics in the dashboard
- RTMP Push — restream the overlay output to YouTube or another RTMP server
- Program API reference — every overlay scene, config, and assignment endpoint