Scenes API
Scene templates, marketplace, apply, node configuration, Advanced options, and deploy URLs.
A Scene is a Pipeline template; applying it creates a copy of the Scene in the repository. The endpoints fall into four groups:
- Scene marketplace: browse, create, update, and apply templates
- Repository Scenes: list, details, create, update, and delete
- Nodes and Advanced options: engines, Skills, and secret fields
- Deploy URLs and audit
Most Scene management endpoints are user_only. GET /api/scenes/{scene_id} and the Skill scope audit are dual; tk_ can read the current Scene.
Endpoints
Scene marketplace
| Method | Path | Purpose |
|---|---|---|
GET |
/api/scenes/market |
List marketplace Scenes |
POST |
/api/scenes/market |
Create marketplace Scene |
POST |
/api/scenes/engine-selector-preview |
Preview engine selector matches |
POST |
/api/scenes/{scene_id}/pin |
Pin a Scene |
POST |
/api/scenes/{scene_id}/copy |
Copy a Scene |
GET |
/api/scenes/market/{market_id} |
Marketplace Scene details |
PUT |
/api/scenes/market/{market_id} |
Update marketplace Scene |
DELETE |
/api/scenes/market/{market_id} |
Delete marketplace Scene |
GET |
/api/scenes/market/{market_id}/applied |
Whether applied |
POST |
/api/scenes/market/{market_id}/apply |
Apply marketplace Scene |
POST |
/api/scenes/market/{market_id}/experience |
Try marketplace Scene |
GET |
/api/scenes/market/{market_id}/experience-check |
Pre-try check |
POST |
/api/scenes/market/{market_id}/like |
Like |
POST |
/api/scenes/market/icon-upload |
Upload Scene icon |
Repository Scenes
| Method | Path | Purpose |
|---|---|---|
GET |
/api/scenes |
List Scenes |
POST |
/api/scenes |
Create Scene |
GET |
/api/scenes/{scene_id} |
Scene details |
PUT |
/api/scenes/{scene_id} |
Update Scene |
DELETE |
/api/scenes/{scene_id} |
Delete Scene |
GET |
/api/scenes/with-pipeline |
List Scenes with Pipeline |
POST |
/api/scenes/apply/{owner}/{repo} |
Apply Scene to repository |
GET |
/api/scenes/check-name |
Validate Scene name |
Nodes and options
| Method | Path | Purpose |
|---|---|---|
GET |
/api/scenes/{scene_id}/engine-status |
Engine online status |
GET |
/api/scenes/skills/{agent_type} |
Skills available to an Agent |
GET |
/api/scenes/{scene_id}/advanced-options |
Advanced options |
PUT |
/api/scenes/{scene_id}/advanced-options |
Save Advanced options |
POST |
/api/scenes/{scene_id}/advanced-options/reveal |
Retrieve secret plaintext once |
GET |
/api/scenes/{scene_id}/deploy-url |
Get deploy URL |
PUT |
/api/scenes/{scene_id}/deploy-url |
Set deploy URL |
PATCH |
/api/scenes/{scene_id}/nodes/{node_id}/skill |
Set a node Skill (apply the Scene afterwards) |
Categories, branches, and audit
| Method | Path | Purpose |
|---|---|---|
GET |
/api/categories/tree |
Unified category tree |
GET |
/api/scenes/market/categories |
Marketplace categories |
GET |
/api/scenes/tag-suggest |
Tag suggestions |
GET |
/api/scenes/branches/{owner}/{repo} |
List branches |
POST |
/api/scenes/branches/{owner}/{repo} |
Create branch |
GET |
/api/scenes/skill-scope-audit |
Skill scope audit |
Applying a Scene
POST /api/scenes/market/{market_id}/apply
Applying copies the marketplace template into a Scene owned by the current repository. Applying is not referencing: later changes to nodes, Skills, or engines in the repository do not modify the marketplace template.
Before applying, confirm:
- A target repository is selected
- The Scene name does not conflict with existing Scenes in that repository
- The Skills referenced by the Scene still exist
- The target node has an available engine
After the apply succeeds, return to Project scenes and confirm the status is Applied, then create an Issue to verify.
Scene details
GET /api/scenes/{scene_id}
An Agent can also use tk_ to read the current Scene details to confirm nodes, Skills, and engines; the current Scene id is injected through GRAPE_SCENE_ID, so there is no need to call the list endpoint first.
Advanced options and secrets
advanced-options may contain secret fields:
- Reads return only a masked value
revealretrieves the plaintext once; do not write it to logs after calling- On save,
keep_value=truekeeps the existing value in the database - An empty value or the
"********"mask echoed back is also treated as keep
Common errors
| Status | Cause |
|---|---|
| 400 | No repository selected, Scene references a deleted Skill, or invalid parameter |
| 403 | tk_ used to call a management endpoint, or repository mismatch |
| 404 | Scene does not exist |
| 409 | Conflicting Scene with the same name |
Related
Scene Center | Scenes and engine configuration | Authentication and credentials