Quick Start
Get up and running with the TellsTree API in minutes
Required headers
Send Accept: application/json with every request. Validation failures come back as
422 with a readable message for callers that ask for JSON.
Without the header the request is treated as a browser form post and is answered with a
302 redirect instead, and no message reaches the caller.
The application's own interface always sends the header. This note matters for scripts and third-party clients.
Features
Resources
/api/projects
/api/nodes
/api/edges
/api/media
/api/comments
/api/themes
/api/designs
Rate Limits
API rate limiting prevents abuse and ensures fair usage. Limits are enforced per IP address and vary by endpoint type.
All API responses include rate limit information in the headers. When limits are exceeded, a 429 status is returned.
Header Fields
X-RateLimit-LimitMaximum requests allowed in the current windowX-RateLimit-RemainingRemaining requests in the current windowRetry-AfterSeconds to wait before retry (429 responses only)
300 requests/minute
General API limit (optimized for graph editor)
5 attempts/minute
Login attempts
30 requests/minute
Token refresh
3 attempts/10 minutes
User registration
Error Handling
The API uses conventional HTTP response codes to indicate success or failure. All error responses follow a consistent JSON format with RFC 7807 Problem Details.
Error responses include a `type` (URL to error documentation), `title` (human-readable summary), `detail` (explanation), and `status` (HTTP code).
200, 201, 204
Success responses
400, 401, 403, 404, 422, 429
Client errors
500, 503
Server errors
Authentication
The TellsTree API uses JWT (JSON Web Token) based authentication. You need to obtain a token by logging in with valid credentials.
/api/auth/login
Login / Obtain token
/api/auth/me
Get current user info
/api/auth/refresh
Refresh token
/api/auth/logout
Logout / Invalidate token
/api/.well-known/jwks.json
Public keys (JWKS)
Login
Most API endpoints require authentication. Get your JWT token through the authentication endpoint.
Required Credentials
email- Your account emailpassword- Your account password
Response
https://tellstree.com/api/auth/login{
"data": {
"user": {
"id": "***ULID***",
"name": "Owner",
"email": "***REDACTED***",
"created_at": "***TIMESTAMP***"
},
"token": {
"access_token": "***REDACTED***",
"token_type": "Bearer",
"expires_in": "***EXPIRES_IN***",
"expires_at": "***TIMESTAMP***"
}
}
}
Refresh Token
Tokens expire after 1 hour. Use the refresh endpoint to get a new access token without re-authentication.
Token Refresh
- • Refresh token is stored as HttpOnly cookie
- • No request body required
- • Returns new access token
- • Include cookies with request
Response
https://tellstree.com/api/auth/refresh{
"data": {
"token": {
"access_token": "***REDACTED***",
"token_type": "bearer",
"expires_in": "***EXPIRES_IN***",
"expires_at": "***TIMESTAMP***"
}
}
}
Get Current User
Get information about the currently authenticated user and token details.
Authentication Required
- • Include JWT token in Authorization header
- • Returns user profile and token information
- • Useful for validating token status
Response
https://tellstree.com/api/auth/me{
"data": {
"user": {
"id": "***ULID***",
"name": "Owner",
"email": "***REDACTED***",
"created_at": "***TIMESTAMP***",
"last_api_access": "***TIMESTAMP***"
},
"token": {
"token_type": "Bearer",
"expires_in": "***EXPIRES_IN***",
"expires_at": "***TIMESTAMP***",
"issued_at": "***TIMESTAMP***"
}
}
}
Logout
Logout and invalidate all tokens for the current user. This prevents further API access with existing tokens.
Token Invalidation
- • Invalidates current access token
- • Invalidates refresh token
- • Increments user token version
- • Clears authentication cookies
Response
https://tellstree.com/api/auth/logout
JSON Web Key Set (JWKS)
Public cryptographic keys for verifying JWT tokens issued by TellsTree. Required for external systems that need to validate TellsTree tokens independently.
Use Cases
- • Microservices: Verify TellsTree tokens without API calls
- • API Gateways: Validate tokens at gateway level
- • Single Sign-On (SSO): Enable SSO integrations
- • Third-party Apps: Verify token authenticity offline
Technical Details
- • Standard RFC 7517 compliant endpoint
- • RSA-256 public keys included
- • Key rotation support via 'kid' field
- • No authentication required (public endpoint)
Response
https://tellstree.com/api/.well-known/jwks.json{
"data": {
"keys": [
{
"kty": "RSA",
"use": "sig",
"alg": "RS256",
"kid": "***SCHLUESSEL***",
"n": "***SCHLUESSEL***",
"e": "***SCHLUESSEL***"
}
]
}
}
Using Tokens for API Access
Once you have an access token, include it in the Authorization header for all API requests.
Authorization Header
Authorization: Bearer YOUR_TOKEN- • Required for all protected endpoints
- • Token expires after 1 hour
- • Use refresh endpoint to get new tokens
Example API Call
GET /api/projectsAuthorization: Bearer eyJ0eXAiOiJKV1Q...Accept: application/json
https://tellstree.com/api/projects{
"method": "GET",
"url": "/api/projects",
"headers": {
"Authorization": [
"***REDACTED***"
]
},
"payload": null,
"recorded_at": "***TIMESTAMP***"
}
?? Projects
Projects are the top-level containers for your storytelling content. Each project can contain multiple nodes (story elements) and edges (connections).
/api/projects
List all projects
/api/projects
Create project
public_id of the project — a 26-character identifier
(ULID, Crockford base32), not the internal
counter value. Shape: 26 characters from 0-9A-Z, without
I, L, O, U,
in practice starting with 01M. An unknown
value answers like somebody else's project, so the identifier does not
become a lead.
/api/projects/{public_id}
Get project
/api/projects/{public_id}
Update project
/api/projects/{public_id}
Delete project
/api/projects/{public_id}/activity
Poll for activity updates
List Public Projects
Retrieve all publicly available projects. No authentication required.
Query Parameters
query[is_public]
Set to true to get public projects
query[page]
Page number (default: 1)
query[per_page]
Items per page (default: 15)
Response
https://tellstree.com/api/projects{
"data": {
"projects": [
{
"title": "About Apples",
"description": "A poetic journey through orchards, legends, and the symbolism of apples across history and myth.",
"media": null,
"is_public": true,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"project_id": "***ULID***",
"is_locked": false,
"locked_by": null,
"locked_at": null,
"nodes": {
"nodes_count": 7
},
"edges": {
"edges_count": 4
},
"members": {
"members_count": 1,
"owner": {
"user_id": "***ULID***",
"user_name": "Owner"
}
},
"theme": {
"theme_id": "***ULID***",
"name": "Story Theme",
"domain": "story"
},
"design": {
"design_id": "***ULID***",
"name": "Original",
"domain": "original"
},
"capabilities": {
"userCanDelete": false
},
"comments": {
"comments_count": 2,
"comments_rating": 4.5
}
},
{
"title": "Mystery Novel",
"description": "Ein klassischer Whodunit: Ein Mord in einem abgelegenen Leuchtturm w\u00e4hrend eines Sturms. Sechs Verd\u00e4chtige, dunkle Geheimnisse und nur Sie k\u00f6nnen den wahren T\u00e4ter entlarven. Sammeln Sie Hinweise und treffen Sie Entscheidungen, die zum M\u00f6rder f\u00fchren.",
"media": null,
"is_public": true,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"project_id": "***ULID***",
"is_locked": false,
"locked_by": null,
"locked_at": null,
"nodes": {
"nodes_count": 8
},
"edges": {
"edges_count": 4
},
"members": {
"members_count": 1,
"owner": {
"user_id": "***ULID***",
"user_name": "Editor"
}
},
"theme": {
"theme_id": "***ULID***",
"name": "Story Theme",
"domain": "story"
},
"design": {
"design_id": "***ULID***",
"name": "Original",
"domain": "original"
},
"capabilities": {
"userCanDelete": false
},
"comments": {
"comments_count": 3,
"comments_rating": 4.3
}
},
{
"title": "Kaffeehaus-Gespr\u00e4ch",
"description": "Eine Demonstration des Dialog-Theme Systems mit Charakteren und Gespr\u00e4chsverl\u00e4ufen",
"media": null,
"is_public": true,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"project_id": "***ULID***",
"is_locked": false,
"locked_by": null,
"locked_at": null,
"nodes": {
"nodes_count": 8
},
"edges": {
"edges_count": 5
},
"members": {
"members_count": 1,
"owner": {
"user_id": "***ULID***",
"user_name": "Owner"
}
},
"theme": {
"theme_id": "***ULID***",
"name": "Story Theme",
"domain": "story"
},
"design": {
"design_id": "***ULID***",
"name": "Original",
"domain": "original"
},
"capabilities": {
"userCanDelete": false
},
"comments": {
"comments_count": 3,
"comments_rating": 4.3
}
},
{
"title": "Galactic Romance",
"description": "Love among the stars in this sci-fi romance adventure across the galaxy and beyond.",
"media": null,
"is_public": true,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"project_id": "***ULID***",
"is_locked": false,
"locked_by": null,
"locked_at": null,
"nodes": {
"nodes_count": 7
},
"edges": {
"edges_count": 4
},
"members": {
"members_count": 1,
"owner": {
"user_id": "***ULID***",
"user_name": "Owner"
}
},
"theme": {
"theme_id": "***ULID***",
"name": "Story Theme",
"domain": "story"
},
"design": {
"design_id": "***ULID***",
"name": "Original",
"domain": "original"
},
"capabilities": {
"userCanDelete": false
},
"comments": {
"comments_count": 3,
"comments_rating": 4.7
}
},
{
"title": "Mystery at Moonlight Manor",
"description": "A thrilling mystery with multiple endings. Solve the case and uncover the dark secrets of the manor.",
"media": null,
"is_public": true,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"project_id": "***ULID***",
"is_locked": false,
"locked_by": null,
"locked_at": null,
"nodes": {
"nodes_count": 34
},
"edges": {
"edges_count": 39
},
"members": {
"members_count": 1,
"owner": {
"user_id": "***ULID***",
"user_name": "Owner"
}
},
"theme": {
"theme_id": "***ULID***",
"name": "Story Theme",
"domain": "story"
},
"design": {
"design_id": "***ULID***",
"name": "Original",
"domain": "original"
},
"capabilities": {
"userCanDelete": false
},
"comments": {
"comments_count": 3,
"comments_rating": 4.3
}
}
],
"pagination": {
"page": 1,
"per_page": 5,
"total": 7
}
}
}
List Private Projects
Retrieve all projects that the authenticated user has access to. Authentication required.
Headers
Authorization
Bearer {your_jwt_token}
Query Parameters
query[page]
Page number (optional)
query[per_page]
Items per page (optional)
Response
https://tellstree.com/api/projects{
"data": {
"projects": [
{
"title": "About Apples",
"description": "A poetic journey through orchards, legends, and the symbolism of apples across history and myth.",
"media": null,
"is_public": true,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"project_id": "***ULID***",
"is_locked": false,
"locked_by": null,
"locked_at": null,
"nodes": {
"nodes_count": 7
},
"edges": {
"edges_count": 4
},
"members": {
"members_count": 2,
"owner": {
"user_id": "***ULID***",
"user_name": "Owner"
}
},
"theme": {
"theme_id": "***ULID***",
"name": "Story Theme",
"domain": "story"
},
"design": {
"design_id": "***ULID***",
"name": "Original",
"domain": "original"
},
"capabilities": {
"userCanDelete": true
},
"comments": {
"comments_count": 2,
"comments_rating": 4.5
}
},
{
"title": "Science Fiction Epic",
"description": "Im Jahr 2087 verschwimmen die Grenzen zwischen Realit\u00e4t und virtueller Welt. Ein Hacker entdeckt eine Verschw\u00f6rung, die die Menschheit bedroht. Eine interaktive Geschichte \u00fcber Technologie, Bewusstsein und die Frage: Was macht uns menschlich?",
"media": null,
"is_public": false,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"project_id": "***ULID***",
"is_locked": false,
"locked_by": null,
"locked_at": null,
"nodes": {
"nodes_count": 9
},
"edges": {
"edges_count": 5
},
"members": {
"members_count": 3,
"owner": {
"user_id": "***ULID***",
"user_name": "Viewer"
}
},
"theme": {
"theme_id": "***ULID***",
"name": "Story Theme",
"domain": "story"
},
"design": {
"design_id": "***ULID***",
"name": "Original",
"domain": "original"
},
"capabilities": {
"userCanDelete": false
},
"comments": {
"comments_count": 3,
"comments_rating": 4.7
}
},
{
"title": "Mystery Novel",
"description": "Ein klassischer Whodunit: Ein Mord in einem abgelegenen Leuchtturm w\u00e4hrend eines Sturms. Sechs Verd\u00e4chtige, dunkle Geheimnisse und nur Sie k\u00f6nnen den wahren T\u00e4ter entlarven. Sammeln Sie Hinweise und treffen Sie Entscheidungen, die zum M\u00f6rder f\u00fchren.",
"media": null,
"is_public": true,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"project_id": "***ULID***",
"is_locked": false,
"locked_by": null,
"locked_at": null,
"nodes": {
"nodes_count": 8
},
"edges": {
"edges_count": 4
},
"members": {
"members_count": 3,
"owner": {
"user_id": "***ULID***",
"user_name": "Editor"
}
},
"theme": {
"theme_id": "***ULID***",
"name": "Story Theme",
"domain": "story"
},
"design": {
"design_id": "***ULID***",
"name": "Original",
"domain": "original"
},
"capabilities": {
"userCanDelete": false
},
"comments": {
"comments_count": 3,
"comments_rating": 4.3
}
},
{
"title": "Collaborative Story",
"description": "Ein episches Fantasy-Abenteuer \u00fcber einen jungen Helden, der sich auf eine gef\u00e4hrliche Reise begibt, um das K\u00f6nigreich vor einem uralten Drachen zu retten. Mit magischen Kreaturen, mystischen Artefakten und schwierigen moralischen Entscheidungen.",
"media": null,
"is_public": false,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"project_id": "***ULID***",
"is_locked": false,
"locked_by": null,
"locked_at": null,
"nodes": {
"nodes_count": 8
},
"edges": {
"edges_count": 4
},
"members": {
"members_count": 3,
"owner": {
"user_id": "***ULID***",
"user_name": "Owner"
}
},
"theme": {
"theme_id": "***ULID***",
"name": "Story Theme",
"domain": "story"
},
"design": {
"design_id": "***ULID***",
"name": "Original",
"domain": "original"
},
"capabilities": {
"userCanDelete": true
},
"comments": {
"comments_count": 3,
"comments_rating": 4.7
}
},
{
"title": "Kaffeehaus-Gespr\u00e4ch",
"description": "Eine Demonstration des Dialog-Theme Systems mit Charakteren und Gespr\u00e4chsverl\u00e4ufen",
"media": null,
"is_public": true,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"project_id": "***ULID***",
"is_locked": false,
"locked_by": null,
"locked_at": null,
"nodes": {
"nodes_count": 8
},
"edges": {
"edges_count": 5
},
"members": {
"members_count": 3,
"owner": {
"user_id": "***ULID***",
"user_name": "Owner"
}
},
"theme": {
"theme_id": "***ULID***",
"name": "Story Theme",
"domain": "story"
},
"design": {
"design_id": "***ULID***",
"name": "Original",
"domain": "original"
},
"capabilities": {
"userCanDelete": true
},
"comments": {
"comments_count": 3,
"comments_rating": 4.3
}
},
{
"title": "Galactic Romance",
"description": "Love among the stars in this sci-fi romance adventure across the galaxy and beyond.",
"media": null,
"is_public": true,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"project_id": "***ULID***",
"is_locked": false,
"locked_by": null,
"locked_at": null,
"nodes": {
"nodes_count": 7
},
"edges": {
"edges_count": 4
},
"members": {
"members_count": 3,
"owner": {
"user_id": "***ULID***",
"user_name": "Owner"
}
},
"theme": {
"theme_id": "***ULID***",
"name": "Story Theme",
"domain": "story"
},
"design": {
"design_id": "***ULID***",
"name": "Original",
"domain": "original"
},
"capabilities": {
"userCanDelete": true
},
"comments": {
"comments_count": 3,
"comments_rating": 4.7
}
},
{
"title": "Mystery at Moonlight Manor",
"description": "A thrilling mystery with multiple endings. Solve the case and uncover the dark secrets of the manor.",
"media": null,
"is_public": true,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"project_id": "***ULID***",
"is_locked": false,
"locked_by": null,
"locked_at": null,
"nodes": {
"nodes_count": 34
},
"edges": {
"edges_count": 39
},
"members": {
"members_count": 3,
"owner": {
"user_id": "***ULID***",
"user_name": "Owner"
}
},
"theme": {
"theme_id": "***ULID***",
"name": "Story Theme",
"domain": "story"
},
"design": {
"design_id": "***ULID***",
"name": "Original",
"domain": "original"
},
"capabilities": {
"userCanDelete": true
},
"comments": {
"comments_count": 3,
"comments_rating": 4.3
}
},
{
"title": "The Dragon's Quest",
"description": "An epic adventure story where choices matter and every decision shapes your destiny through mystical lands.",
"media": null,
"is_public": true,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"project_id": "***ULID***",
"is_locked": false,
"locked_by": null,
"locked_at": null,
"nodes": {
"nodes_count": 7
},
"edges": {
"edges_count": 4
},
"members": {
"members_count": 3,
"owner": {
"user_id": "***ULID***",
"user_name": "Owner"
}
},
"theme": {
"theme_id": "***ULID***",
"name": "Game Theme",
"domain": "game"
},
"design": {
"design_id": "***ULID***",
"name": "Original",
"domain": "original"
},
"capabilities": {
"userCanDelete": true
},
"comments": {
"comments_count": 3,
"comments_rating": 4
}
},
{
"title": "Tells Adventure",
"description": "An interactive tale of courage and consequence - guide your choices through arrows, words and fate.",
"media": null,
"is_public": true,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"project_id": "***ULID***",
"is_locked": false,
"locked_by": null,
"locked_at": null,
"nodes": {
"nodes_count": 9
},
"edges": {
"edges_count": 8
},
"members": {
"members_count": 3,
"owner": {
"user_id": "***ULID***",
"user_name": "Owner"
}
},
"theme": {
"theme_id": "***ULID***",
"name": "Game Theme",
"domain": "game"
},
"design": {
"design_id": "***ULID***",
"name": "Original",
"domain": "original"
},
"capabilities": {
"userCanDelete": true
},
"comments": {
"comments_count": 3,
"comments_rating": 4.7
}
}
],
"pagination": {
"page": 1,
"per_page": 5,
"total": 9
}
}
}
Create New Project
Create a new storytelling project with a theme and design.
Response
data.project{} (Complete Project object with theme, design, nodes, edges, members, capabilities, comments)
data.errors{}
https://tellstree.com/api/projects{
"data": {
"project": {
"title": "API Test Project ***TIMESTAMP***",
"description": "Created by automated test",
"is_public": false,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"project_id": "***ULID***",
"is_locked": false,
"locked_by": null,
"locked_at": null,
"nodes": {
"nodes_count": 2
},
"edges": {
"edges_count": 0
},
"members": {
"members_count": 1,
"owner": {
"user_id": "***ULID***",
"user_name": "Owner"
}
},
"theme": {
"theme_id": "***ULID***",
"name": "Game Theme",
"domain": "game"
},
"design": {
"design_id": "***ULID***",
"name": "Foundation",
"domain": "foundation"
},
"capabilities": {
"userCanDelete": true
},
"comments": {
"comments_count": 0,
"comments_rating": 0
}
}
}
}
Get Single Project
Retrieve detailed information about a specific project.
Response
https://tellstree.com/api/projects/{public_id}{
"data": {
"project": {
"title": "API Test Project ***TIMESTAMP***",
"description": "Created by automated test",
"media": null,
"is_public": false,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"project_id": "***ULID***",
"is_locked": false,
"locked_by": null,
"locked_at": null,
"nodes": {
"nodes_count": 2
},
"edges": {
"edges_count": 0
},
"members": {
"members_count": 1,
"owner": {
"user_id": "***ULID***",
"user_name": "Owner"
}
},
"theme": {
"theme_id": "***ULID***",
"name": "Game Theme",
"domain": "game"
},
"design": {
"design_id": "***ULID***",
"name": "Foundation",
"domain": "foundation"
},
"capabilities": {
"userCanDelete": true
},
"comments": {
"comments_count": 0,
"comments_rating": 0
}
}
}
}
Update Project
Update an existing project's properties, theme, or design.
🔒 Lock Management
Lock/unlock functionality is integrated into the update endpoint:
- •
is_locked: true- Lock project for current user - •
is_locked: false- Unlock project (only by lock owner) - • Response includes
is_locked: true/false - • Auto-unlock: Locks expire automatically after 300 seconds when project is accessed
Response
https://tellstree.com/api/projects/{public_id}{
"data": {
"project": {
"title": "API Test Project ***TIMESTAMP*** updated",
"description": "Created by automated test",
"media": null,
"is_public": false,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"project_id": "***ULID***",
"is_locked": true,
"locked_by": "***ULID***",
"locked_at": "***TIMESTAMP***",
"nodes": {
"nodes_count": 2
},
"edges": {
"edges_count": 0
},
"members": {
"members_count": 1,
"owner": {
"user_id": "***ULID***",
"user_name": "Owner"
}
},
"theme": {
"theme_id": "***ULID***",
"name": "Game Theme",
"domain": "game"
},
"design": {
"design_id": "***ULID***",
"name": "Foundation",
"domain": "foundation"
},
"capabilities": {
"userCanDelete": true
},
"comments": {
"comments_count": 0,
"comments_rating": 0
}
}
}
}
Delete Project
Permanently delete a project and all its content.
Response
https://tellstree.com/api/projects/{public_id}
Poll for Activity Updates
Retrieve IDs of resources that have been modified since a given timestamp. Enables real-time collaborative editing. Authentication required.
Headers
Authorization
Bearer {your_jwt_token}
Query Parameters
since
Unix timestamp - only return activities after this time (optional)
Response
https://tellstree.com/api/projects/{public_id}/activity{
"nodes": [
"***ULID***"
],
"edges": [],
"users": [],
"timestamp": "***TIMESTAMP***"
}
📋 Nodes
Nodes are the building blocks of your story. Each node represents a narrative element like a scene, chapter or character. A Node can contain text, media, and interactive elements.
/api/nodes
List all nodes
/api/nodes
Create new node
/api/nodes?query[include]=ids
Get specific nodes (lazy loading)
/api/nodes/{node}
Get node details
/api/nodes/{node}
Update node
/api/nodes/{node}
Delete node
List Nodes
Retrieve all nodes or filter by project, including their content, position, and metadata.
Query Parameters
query[project_id]- Filter by project ID (required)query[page]- Page number (optional, default: 1)query[per_page]- Items per page (optional, default: 20)
Response
https://tellstree.com/api/nodes{
"data": {
"nodes": [
{
"node_id": "***ULID***",
"project_id": "***ULID***",
"type": "start",
"label": "Start",
"content": {
"speaker_label": "",
"role_label": ""
},
"media": [],
"x_position": null,
"y_position": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"outgoing_edges_count": 1,
"incoming_edges_count": 0,
"is_locked": false,
"locked_by": null,
"locked_at": null
},
{
"node_id": "***ULID***",
"project_id": "***ULID***",
"type": "end",
"label": "End",
"content": {
"speaker_label": "",
"role_label": ""
},
"media": [],
"x_position": null,
"y_position": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"outgoing_edges_count": 0,
"incoming_edges_count": 3,
"is_locked": false,
"locked_by": null,
"locked_at": null
},
{
"node_id": "***ULID***",
"project_id": "***ULID***",
"type": "character",
"label": "Wilhelm Tell",
"content": {
"name": "Wilhelm Tell",
"description": "A silent hero of justice - a man of few words, but unshakable principles. He values freedom over obedience, and would rather risk death than bow to a tyrant.",
"speaker_label": "",
"role_label": ""
},
"media": [],
"x_position": null,
"y_position": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"outgoing_edges_count": 0,
"incoming_edges_count": 0,
"is_locked": false,
"locked_by": null,
"locked_at": null
},
{
"node_id": "***ULID***",
"project_id": "***ULID***",
"type": "character",
"label": "Walter Tell",
"content": {
"name": "Walter Tell",
"description": "Wilhelm Tells son.",
"speaker_label": "",
"role_label": ""
},
"media": [],
"x_position": null,
"y_position": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"outgoing_edges_count": 0,
"incoming_edges_count": 0,
"is_locked": false,
"locked_by": null,
"locked_at": null
},
{
"node_id": "***ULID***",
"project_id": "***ULID***",
"type": "dialog-entry",
"label": "Trust me!",
"content": {
"message": "Trust me!",
"speaker": 3,
"speaker_unresolved": true,
"speaker_label": "Unknown speaker",
"speaker_unresolved_reason": "the referenced node does not exist",
"role_label": ""
},
"media": [],
"x_position": null,
"y_position": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"outgoing_edges_count": 1,
"incoming_edges_count": 1,
"is_locked": false,
"locked_by": null,
"locked_at": null
},
{
"node_id": "***ULID***",
"project_id": "***ULID***",
"type": "dialog-entry",
"label": "Are you sure you won\u00b4t kill me?",
"content": {
"message": "Are you sure you won\u00b4t kill me?",
"speaker": 4,
"speaker_unresolved": true,
"speaker_label": "Unknown speaker",
"speaker_unresolved_reason": "the referenced node does not exist",
"role_label": ""
},
"media": [],
"x_position": null,
"y_position": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"outgoing_edges_count": 3,
"incoming_edges_count": 1,
"is_locked": false,
"locked_by": null,
"locked_at": null
},
{
"node_id": "***ULID***",
"project_id": "***ULID***",
"type": "dialog-entry",
"label": "You are right. I can't do that.",
"content": {
"message": "You are right. I can't do that.",
"speaker": 3,
"speaker_unresolved": true,
"speaker_label": "Unknown speaker",
"speaker_unresolved_reason": "the referenced node does not exist",
"role_label": ""
},
"media": [],
"x_position": null,
"y_position": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"outgoing_edges_count": 1,
"incoming_edges_count": 1,
"is_locked": false,
"locked_by": null,
"locked_at": null
},
{
"node_id": "***ULID***",
"project_id": "***ULID***",
"type": "dialog-entry",
"label": "Trust me son!",
"content": {
"message": "Trust me son!",
"speaker": 3,
"speaker_unresolved": true,
"speaker_label": "Unknown speaker",
"speaker_unresolved_reason": "the referenced node does not exist",
"role_label": ""
},
"media": [],
"x_position": null,
"y_position": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"outgoing_edges_count": 1,
"incoming_edges_count": 1,
"is_locked": false,
"locked_by": null,
"locked_at": null
},
{
"node_id": "***ULID***",
"project_id": "***ULID***",
"type": "dialog-entry",
"label": "Son just stop shaking!",
"content": {
"message": "Son just stop shaking!",
"speaker": 3,
"speaker_unresolved": true,
"speaker_label": "Unknown speaker",
"speaker_unresolved_reason": "the referenced node does not exist",
"role_label": ""
},
"media": [],
"x_position": null,
"y_position": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"outgoing_edges_count": 1,
"incoming_edges_count": 1,
"is_locked": false,
"locked_by": null,
"locked_at": null
}
],
"pagination": {
"current_page": 1,
"total_pages": 1,
"per_page": 20,
"total_items": 9
}
}
}
Load Specific Nodes
Get specific nodes by IDs for lazy loading in the TellsTreeGraph editor. Used for performance optimization when working with large projects.
Query Parameters
query[project_id]- Required project IDquery[include]- Comma-separated node IDs- • Returns canvas-ready node data
- • Optimized for editor performance
Response
https://tellstree.com/api/nodes{
"data": {
"nodes": [
{
"node_id": "***ULID***",
"type": "start",
"label": "Start",
"content": {
"speaker_label": "",
"role_label": ""
},
"media": [],
"compactView": null,
"detailView": null,
"resolvedProps": []
},
{
"node_id": "***ULID***",
"type": "end",
"label": "End",
"content": {
"speaker_label": "",
"role_label": ""
},
"media": [],
"compactView": null,
"detailView": null,
"resolvedProps": []
},
{
"node_id": "***ULID***",
"type": "character",
"label": "Wilhelm Tell",
"content": {
"name": "Wilhelm Tell",
"description": "A silent hero of justice - a man of few words, but unshakable principles. He values freedom over obedience, and would rather risk death than bow to a tyrant.",
"speaker_label": "",
"role_label": ""
},
"media": [],
"compactView": null,
"detailView": null,
"resolvedProps": {
"header": "Wilhelm Tell",
"content": "A silent hero of justice - a man of few words, but unshakable principles. He values freedom over obedience, and would rather risk death than bow to a tyrant.",
"image": "",
"imageAlign": "top"
}
}
]
}
}
Create Node
Create a new node. Nodes can exist independently or be associated with a project via project_id.
Required Fields
title- Node title
Optional Fields
project_id- Associate with projectcontent- Node content/texttype- Node typeposition_x- X coordinateposition_y- Y coordinateproperties- Custom properties
Response
https://tellstree.com/api/nodes{
"data": {
"node": {
"node_id": "***ULID***",
"project_id": "***ULID***",
"type": "character",
"label": "API Test Character ***TIMESTAMP***",
"content": {
"name": "API Test Character ***TIMESTAMP***",
"description": "Node created by automated API test",
"speaker_label": "",
"role_label": ""
},
"media": [],
"x_position": null,
"y_position": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"outgoing_edges_count": 0,
"incoming_edges_count": 0,
"is_locked": false,
"locked_by": null,
"locked_at": null
},
"ignored_fields": []
}
}
Get Node
Retrieve detailed information about a specific node, including all its properties and metadata.
URL Parameters
project- Project IDnode- Node ID
Response
https://tellstree.com/api/nodes/{node}{
"data": {
"nodes": [
{
"node_id": "***ULID***",
"project_id": "***ULID***",
"type": "start",
"label": "Start",
"content": {
"speaker_label": "",
"role_label": ""
},
"media": [],
"x_position": null,
"y_position": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"outgoing_edges_count": 1,
"incoming_edges_count": 0,
"is_locked": false,
"locked_by": null,
"locked_at": null
},
{
"node_id": "***ULID***",
"project_id": "***ULID***",
"type": "end",
"label": "End",
"content": {
"speaker_label": "",
"role_label": ""
},
"media": [],
"x_position": null,
"y_position": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"outgoing_edges_count": 0,
"incoming_edges_count": 3,
"is_locked": false,
"locked_by": null,
"locked_at": null
},
{
"node_id": "***ULID***",
"project_id": "***ULID***",
"type": "character",
"label": "Wilhelm Tell",
"content": {
"name": "Wilhelm Tell",
"description": "A silent hero of justice - a man of few words, but unshakable principles. He values freedom over obedience, and would rather risk death than bow to a tyrant.",
"speaker_label": "",
"role_label": ""
},
"media": [],
"x_position": null,
"y_position": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"outgoing_edges_count": 0,
"incoming_edges_count": 0,
"is_locked": false,
"locked_by": null,
"locked_at": null
},
{
"node_id": "***ULID***",
"project_id": "***ULID***",
"type": "character",
"label": "Walter Tell",
"content": {
"name": "Walter Tell",
"description": "Wilhelm Tells son.",
"speaker_label": "",
"role_label": ""
},
"media": [],
"x_position": null,
"y_position": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"outgoing_edges_count": 0,
"incoming_edges_count": 0,
"is_locked": false,
"locked_by": null,
"locked_at": null
},
{
"node_id": "***ULID***",
"project_id": "***ULID***",
"type": "dialog-entry",
"label": "Trust me!",
"content": {
"message": "Trust me!",
"speaker": 3,
"speaker_unresolved": true,
"speaker_label": "Unknown speaker",
"speaker_unresolved_reason": "the referenced node does not exist",
"role_label": ""
},
"media": [],
"x_position": null,
"y_position": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"outgoing_edges_count": 1,
"incoming_edges_count": 1,
"is_locked": false,
"locked_by": null,
"locked_at": null
},
{
"node_id": "***ULID***",
"project_id": "***ULID***",
"type": "dialog-entry",
"label": "Are you sure you won\u00b4t kill me?",
"content": {
"message": "Are you sure you won\u00b4t kill me?",
"speaker": 4,
"speaker_unresolved": true,
"speaker_label": "Unknown speaker",
"speaker_unresolved_reason": "the referenced node does not exist",
"role_label": ""
},
"media": [],
"x_position": null,
"y_position": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"outgoing_edges_count": 3,
"incoming_edges_count": 1,
"is_locked": false,
"locked_by": null,
"locked_at": null
},
{
"node_id": "***ULID***",
"project_id": "***ULID***",
"type": "dialog-entry",
"label": "You are right. I can't do that.",
"content": {
"message": "You are right. I can't do that.",
"speaker": 3,
"speaker_unresolved": true,
"speaker_label": "Unknown speaker",
"speaker_unresolved_reason": "the referenced node does not exist",
"role_label": ""
},
"media": [],
"x_position": null,
"y_position": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"outgoing_edges_count": 1,
"incoming_edges_count": 1,
"is_locked": false,
"locked_by": null,
"locked_at": null
},
{
"node_id": "***ULID***",
"project_id": "***ULID***",
"type": "dialog-entry",
"label": "Trust me son!",
"content": {
"message": "Trust me son!",
"speaker": 3,
"speaker_unresolved": true,
"speaker_label": "Unknown speaker",
"speaker_unresolved_reason": "the referenced node does not exist",
"role_label": ""
},
"media": [],
"x_position": null,
"y_position": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"outgoing_edges_count": 1,
"incoming_edges_count": 1,
"is_locked": false,
"locked_by": null,
"locked_at": null
},
{
"node_id": "***ULID***",
"project_id": "***ULID***",
"type": "dialog-entry",
"label": "Son just stop shaking!",
"content": {
"message": "Son just stop shaking!",
"speaker": 3,
"speaker_unresolved": true,
"speaker_label": "Unknown speaker",
"speaker_unresolved_reason": "the referenced node does not exist",
"role_label": ""
},
"media": [],
"x_position": null,
"y_position": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"outgoing_edges_count": 1,
"incoming_edges_count": 1,
"is_locked": false,
"locked_by": null,
"locked_at": null
}
],
"pagination": {
"current_page": 1,
"total_pages": 1,
"per_page": 20,
"total_items": 9
}
}
}
Update Node
Update an existing node's content, position, properties, or other attributes.
🔒 Lock Management
Lock/unlock functionality is integrated into the update endpoint:
- •
is_locked: true- Lock node for current user - •
is_locked: false- Unlock node (only by lock owner) - • Response includes
is_locked: true/false - • Auto-unlock: Locks expire automatically after 300 seconds when node is accessed
Updatable Fields
title- Node titlecontent- Node contenttype- Node typeposition_x- X coordinateposition_y- Y coordinateproperties- Custom propertieslocked_by- Lock status (user_id or null)
Response
https://tellstree.com/api/nodes/{node}{
"data": {
"node": {
"node_id": "***ULID***",
"project_id": "***ULID***",
"type": "character",
"label": "Updated API Test Character",
"content": {
"name": "Updated API Test Character",
"description": "Node created by automated API test",
"speaker_label": "",
"role_label": ""
},
"media": [],
"x_position": null,
"y_position": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"outgoing_edges_count": 0,
"incoming_edges_count": 0,
"is_locked": true,
"locked_by": "***ULID***",
"locked_at": "***TIMESTAMP***"
}
}
}
Delete Node
Permanently delete a node from the project. This will also remove all connected edges.
Response
https://tellstree.com/api/nodes/{node}
?? Edges
Edges create connections between nodes, defining the flow and relationships in your interactive stories. They represent transitions, choices, and narrative pathways.
/api/edges
List all edges
/api/edges
Create new edge
/api/edges/{edge}
Get edge details
/api/edges/{edge}
Update edge
/api/edges/{edge}
Delete edge
Create Edge
Create a new edge connection between two nodes in a project.
Required Fields
source_node_id- ID of source nodetarget_node_id- ID of target node
Optional Fields
label- Display text for edgecondition- Edge activation condition
Response
https://tellstree.com/api/edges{
"data": {
"edge": {
"edge_id": "***ULID***",
"project_id": "***ULID***",
"from_node_id": "***ULID***",
"to_node_id": "***ULID***",
"type": "flow",
"label": null,
"description": null,
"condition": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"from_node": {
"node_id": "***ULID***",
"type": "character",
"label": "Edge API Node ***TIMESTAMP***"
},
"to_node": {
"node_id": "***ULID***",
"type": "character",
"label": "Edge API Node 2 ***TIMESTAMP***"
},
"is_locked": false,
"locked_by": null,
"locked_at": null
}
}
}
Get Edge
Retrieve detailed information about a specific edge, including source and target node details.
URL Parameters
project- Project IDedge- Edge ID
Response
https://tellstree.com/api/edges/{edge}{
"data": {
"edge": {
"edge_id": "***ULID***",
"project_id": "***ULID***",
"from_node_id": "***ULID***",
"to_node_id": "***ULID***",
"type": "flow",
"label": null,
"description": null,
"condition": null,
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"from_node": {
"node_id": "***ULID***",
"type": "character",
"label": "Edge API Node ***TIMESTAMP***"
},
"to_node": {
"node_id": "***ULID***",
"type": "character",
"label": "Edge API Node 2 ***TIMESTAMP***"
},
"is_locked": false,
"locked_by": null,
"locked_at": null
}
}
}
Update Edge
Update properties of an existing edge. You can modify the label, condition, and connection endpoints.
🔒 Lock Management
Lock/unlock functionality is integrated into the update endpoint:
- •
is_locked: true- Lock edge for current user - •
is_locked: false- Unlock edge (only by lock owner) - • Response includes
is_locked: true/false - • Auto-unlock: Locks expire automatically after 300 seconds when edge is accessed
Request Body
source_node_id- Source node IDtarget_node_id- Target node IDlabel- Edge display labelcondition- Edge conditionlocked_by- Lock status (internal use only)
Response
https://tellstree.com/api/edges/{edge}{
"data": {
"edge": {
"edge_id": "***ULID***",
"project_id": "***ULID***",
"from_node_id": "***ULID***",
"to_node_id": "***ULID***",
"type": "flow",
"label": "updated condition",
"description": null,
"condition": "updated condition",
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"from_node": {
"node_id": "***ULID***",
"type": "character",
"label": "Edge API Node ***TIMESTAMP***"
},
"to_node": {
"node_id": "***ULID***",
"type": "character",
"label": "Edge API Node 2 ***TIMESTAMP***"
},
"is_locked": true,
"locked_by": "***ULID***",
"locked_at": "***TIMESTAMP***"
}
}
}
Delete Edge
Permanently delete an edge connection. This action cannot be undone and will break the connection between nodes.
Response
https://tellstree.com/api/edges/{edge}
🎬 Media
Media files can be attached to projects, nodes, or edges. Support for images, videos, audio, and documents to enrich your interactive stories with multimedia content.
/api/media
List all media
/api/media
Upload new media
/api/media/{media}
Get media details
/api/media/{media}
Update media metadata
/api/media/{media}/visibility
Update visibility
/api/media/{media}
Delete media
List Media
Retrieve all media files or filter by project, node, or edge.
Query Parameters
project_id- Filter by project ID (optional)node_id- Filter by node ID (optional)edge_id- Filter by edge ID (optional)type- Filter by media type (optional)page- Page number (optional)per_page- Items per page (optional)
Response
https://tellstree.com/api/media{
"data": {
"media": [
{
"media_id": 1,
"filename": "hero-image.jpg",
"original_name": "Hero Image.jpg",
"mime_type": "image/jpeg",
"size": 1048576,
"path": "/storage/media/hero-image.jpg",
"url": "{{ rtrim(config('app.url'), '/') }}/storage/media/hero-image.jpg",
"project_id": 42,
"node_id": null,
"edge_id": null,
"visibility": "public",
"alt_text": "Hero image for opening scene",
"description": "Main visual for the story introduction",
"metadata": {
"width": 1920,
"height": 1080,
"aspect_ratio": "16:9"
},
"created_at": "2024-01-15T10:00:00.000000Z",
"updated_at": "2024-01-15T10:00:00.000000Z"
}
],
"pagination": {
"current_page": 1,
"total_pages": 3,
"per_page": 10,
"total_items": 25
}
},
"meta": {
"request_id": "req_67890",
"timestamp": "2024-01-15T10:00:00.000000Z"
}
}
Upload Media
Upload a new media file and attach it to a project, node, or edge.
Required Fields
file- Media file to upload
Optional Fields
project_id- Attach to projectnode_id- Attach to nodeedge_id- Attach to edgealt_text- Alternative textdescription- Media descriptionvisibility- public/private
Response
https://tellstree.com/api/media{
"data": {
"media_id": 123,
"filename": "uploaded-image.jpg",
"original_name": "My Image.jpg",
"mime_type": "image/jpeg",
"size": 2097152,
"path": "/storage/media/uploaded-image.jpg",
"url": "{{ rtrim(config('app.url'), '/') }}/storage/media/uploaded-image.jpg",
"project_id": 42,
"node_id": null,
"edge_id": null,
"visibility": "public",
"alt_text": "Uploaded image",
"description": "User uploaded media file",
"metadata": {
"width": 1600,
"height": 900,
"aspect_ratio": "16:9"
},
"created_at": "2024-01-15T10:30:00.000000Z",
"updated_at": "2024-01-15T10:30:00.000000Z"
},
"meta": {
"request_id": "req_12345",
"timestamp": "2024-01-15T10:30:00.000000Z"
}
}
Themes
Themes define the visual styling and appearance of your storytelling projects. Each theme contains color schemes, fonts, and layout configurations.
/api/themes
List all themes
/api/themes/{theme}
Get theme by domain
List All Themes
Retrieve a paginated list of all available themes. This is a public endpoint and does not require authentication.
Query Parameters
page- Page number (optional, default: 1)per_page- Items per page (optional, default: 15)
Response
https://tellstree.com/api/themes{
"data": {
"themes": [
{
"theme_id": "***ULID***",
"name": "Game Theme",
"domain": "game",
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"statistics": {
"projects_count": 2,
"projects_count_scope": "All projects carrying this theme, across every account - including private ones you cannot see. Your own project list may show fewer.",
"is_default": false
},
"badge": [
"Game",
"Adventure",
"Interactive"
],
"version": "1.0.0",
"description": "Create an immersive game with scenes, characters, items and dialog.",
"nodes": {
"start": {
"name": "Start",
"description": "The origin of the narrative - the beginning of all paths",
"forms": {
"label": {
"form": "input",
"label": "Label",
"placeholder": "Start",
"required": false,
"isLabel": true
}
},
"graph": {
"component": "StartNode",
"props": []
}
},
"end": {
"name": "End",
"description": "The conclusion of the narrative - where all paths converge",
"forms": {
"label": {
"form": "input",
"label": "Label",
"placeholder": "End",
"required": false,
"isLabel": true
}
},
"graph": {
"component": "EndNode",
"props": []
}
},
"audio-segment": {
"name": "Audio Segment",
"description": "Background music or sound effect segment",
"forms": {
"title": {
"form": "input",
"type": "string",
"required": true,
"label": "Title",
"isLabel": true,
"placeholder": "Audio segment title"
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 2,
"placeholder": "Describe the audio mood..."
}
},
"media": {
"audio": {
"form": "upload",
"type": "file",
"label": "Audio File",
"formats": [
"mp3",
"wav",
"ogg"
],
"maxSize": "5MB"
}
},
"graph": {
"component": "Card",
"props": {
"header": "Audio: {{self.content.title}}",
"content": "{{self.content.description}}"
}
}
},
"chapter": {
"name": "Chapter",
"description": "A chapter of the game",
"forms": {
"title": {
"label": "Title",
"form": "input",
"type": "string",
"required": true,
"isLabel": true,
"placeholder": "The title of the chapter."
},
"summary": {
"label": "Summary",
"form": "textarea",
"type": "string",
"required": false,
"rows": 4,
"placeholder": "Brief summary of the chapter."
}
},
"graph": {
"component": "Card",
"props": {
"header": "Chapter: {{self.content.title}}",
"content": "{{self.content.summary}}"
}
}
},
"character": {
"name": "Character",
"description": "Character with properties and profile",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Character Name",
"isLabel": true,
"placeholder": "The name of the character."
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 4,
"placeholder": "The description of the character."
},
"traits": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Traits",
"rows": 3,
"placeholder": "Character traits (e.g. brave, shy...)"
}
},
"media": {
"image": {
"form": "upload",
"type": "file",
"label": "Character Image",
"formats": [
"jpg",
"jpeg",
"png",
"gif"
],
"maxSize": "2MB"
},
"avatar": {
"form": "upload",
"type": "file",
"label": "Avatar/Portrait",
"formats": [
"jpg",
"jpeg",
"png",
"gif"
],
"maxSize": "1MB"
}
},
"graph": {
"component": "MediaCard",
"props": {
"header": "{{self.content.name}}",
"content": "{{self.content.description}}",
"image": "{{self.media.image}}",
"imageAlign": "top"
}
}
},
"checkpoint": {
"name": "Checkpoint",
"description": "A save point or checkpoint in the game",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Checkpoint Name",
"isLabel": true,
"placeholder": "Name of the checkpoint"
},
"note": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Note",
"rows": 2,
"placeholder": "Optional note about this checkpoint"
}
},
"graph": {
"component": "Card",
"props": {
"header": "Checkpoint: {{self.content.name}}",
"content": "{{self.content.note}}"
}
}
},
"dialog": {
"name": "Dialog",
"description": "Start of a conversation between characters",
"forms": {
"title": {
"form": "input",
"type": "string",
"required": true,
"label": "Dialog Title",
"isLabel": true,
"placeholder": "What is the dialog about?"
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 4,
"placeholder": "Dialog description..."
}
},
"graph": {
"component": "Card",
"props": {
"header": "Dialog Start",
"content": "{{self.content.title}}: {{self.content.description}}"
}
}
},
"dialog-entry": {
"name": "Dialog Entry",
"description": "Individual speech contribution of a character",
"forms": {
"speaker": {
"form": "select",
"type": "string",
"required": false,
"label": "Speaker",
"options": [
{
"label": "{{node[{{character}}].content.name}}",
"value": "{{node[{{character}}].public_id}}"
}
],
"placeholder": "Select character..."
},
"message": {
"form": "contentarea",
"type": "string",
"required": true,
"label": "Message",
"isLabel": true,
"rows": 4,
"placeholder": "What does the character say?"
}
},
"graph": {
"component": "MediaCard",
"props": {
"header": "{{self.content.speaker_label}}:",
"content": "\"{{self.content.message}}\"",
"image": "{{self.media.image}}",
"imageAlign": "left"
}
}
},
"effect": {
"name": "Effect",
"description": "A visual or gameplay effect",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Effect Name",
"isLabel": true,
"placeholder": "Name of the effect"
},
"type": {
"form": "select",
"type": "string",
"required": true,
"label": "Effect Type",
"options": [
{
"label": "Visual",
"value": "visual"
},
{
"label": "Audio",
"value": "audio"
},
{
"label": "Gameplay",
"value": "gameplay"
},
{
"label": "Status",
"value": "status"
}
]
},
"description": {
"form": "textarea",
"type": "string",
"required": true,
"label": "Description",
"rows": 3,
"placeholder": "Describe the effect..."
},
"duration": {
"form": "input",
"type": "string",
"required": false,
"label": "Duration",
"placeholder": "Effect duration (optional)"
}
},
"graph": {
"component": "Card",
"props": {
"header": "Effect: {{self.content.name}}",
"content": "{{self.content.description}}"
}
}
},
"environment-segment": {
"name": "Environment Segment",
"description": "Environmental narrative or atmosphere description",
"forms": {
"title": {
"form": "input",
"type": "string",
"required": true,
"label": "Title",
"isLabel": true,
"placeholder": "Environment segment title"
},
"content": {
"form": "textarea",
"type": "string",
"required": true,
"label": "Content",
"rows": 6,
"placeholder": "Describe the environment, atmosphere, sounds..."
}
},
"graph": {
"component": "Card",
"props": {
"header": "Environment",
"content": "{{self.content.content}}"
}
}
},
"event": {
"name": "Event",
"description": "A triggered event in the game",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Event Name",
"isLabel": true,
"placeholder": "Name of the event"
},
"trigger": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Trigger Condition",
"rows": 2,
"placeholder": "What triggers this event?"
},
"description": {
"form": "textarea",
"type": "string",
"required": true,
"label": "Description",
"rows": 4,
"placeholder": "What happens when this event is triggered?"
}
},
"graph": {
"component": "Card",
"props": {
"header": "Event: {{self.content.name}}",
"content": "{{self.content.description}}"
}
}
},
"gameplay-segment": {
"name": "Gameplay Segment",
"description": "A segment of gameplay mechanics or instructions",
"forms": {
"title": {
"form": "input",
"type": "string",
"required": true,
"label": "Title",
"isLabel": true,
"placeholder": "Gameplay segment title"
},
"mechanics": {
"form": "textarea",
"type": "string",
"required": true,
"label": "Mechanics",
"rows": 5,
"placeholder": "Describe the gameplay mechanics..."
}
},
"graph": {
"component": "Card",
"props": {
"header": "Gameplay",
"content": "{{self.content.mechanics}}"
}
}
},
"inventory": {
"name": "Inventory",
"description": "An inventory container or system",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Inventory Name",
"isLabel": true,
"placeholder": "Name of the inventory"
},
"capacity": {
"form": "input",
"type": "string",
"required": false,
"label": "Capacity",
"placeholder": "Maximum capacity (optional)"
},
"note": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Note",
"rows": 2,
"placeholder": "Additional notes..."
}
},
"graph": {
"component": "Card",
"props": {
"header": "Inventory: {{self.content.name}}",
"content": "Capacity: {{self.content.capacity}}"
}
}
},
"item": {
"name": "Item",
"description": "An item that can be collected or used",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Item Name",
"isLabel": true,
"placeholder": "Name of the item"
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 3,
"placeholder": "What is this item?"
},
"usage": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Usage",
"rows": 2,
"placeholder": "How can it be used?"
}
},
"media": {
"image": {
"form": "upload",
"type": "file",
"label": "Item Image",
"formats": [
"jpg",
"jpeg",
"png",
"gif"
],
"maxSize": "1MB"
}
},
"graph": {
"component": "MediaCard",
"props": {
"header": "{{self.content.name}}",
"content": "{{self.content.description}}",
"image": "{{self.media.image}}"
}
}
},
"location": {
"name": "Location",
"description": "A physical location in the game world",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Location Name",
"isLabel": true,
"placeholder": "Name of the location"
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 4,
"placeholder": "Describe the location..."
}
},
"media": {
"image": {
"form": "upload",
"type": "file",
"label": "Location Image",
"formats": [
"jpg",
"jpeg",
"png",
"gif"
],
"maxSize": "2MB"
}
},
"graph": {
"component": "MediaCard",
"props": {
"header": "{{self.content.name}}",
"content": "{{self.content.description}}",
"image": "{{self.media.image}}"
}
}
},
"object": {
"name": "Object",
"description": "An interactive object in the game",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Object Name",
"isLabel": true,
"placeholder": "Name of the object"
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 3,
"placeholder": "What does it look like?"
},
"interaction": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Interaction",
"rows": 3,
"placeholder": "What happens when interacting with it?"
}
},
"media": {
"image": {
"form": "upload",
"type": "file",
"label": "Object Image",
"formats": [
"jpg",
"jpeg",
"png",
"gif"
],
"maxSize": "1MB"
}
},
"graph": {
"component": "MediaCard",
"props": {
"header": "{{self.content.name}}",
"content": "{{self.content.description}}",
"image": "{{self.media.image}}"
}
}
},
"quest": {
"name": "Quest",
"description": "A quest or mission for the player",
"forms": {
"title": {
"form": "input",
"type": "string",
"required": true,
"label": "Quest Title",
"isLabel": true,
"placeholder": "Name of the quest"
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 4,
"placeholder": "What is the quest about?"
},
"objective": {
"form": "textarea",
"type": "string",
"required": true,
"label": "Objective",
"rows": 3,
"placeholder": "What must be accomplished?"
},
"reward": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Reward",
"rows": 2,
"placeholder": "What reward does the player receive?"
}
},
"graph": {
"component": "Card",
"props": {
"header": "Quest: {{self.content.title}}",
"content": "{{self.content.objective}}"
}
}
},
"scene": {
"name": "Scene",
"description": "A scene within a chapter",
"forms": {
"title": {
"form": "input",
"type": "string",
"required": true,
"label": "Scene Title",
"isLabel": true,
"placeholder": "Name of the scene"
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 4,
"placeholder": "What happens in this scene?"
}
},
"graph": {
"component": "Card",
"props": {
"header": "Scene: {{self.content.title}}",
"content": "{{self.content.description}}"
}
}
},
"stage": {
"name": "Stage",
"description": "A stage or phase within gameplay",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Stage Name",
"isLabel": true,
"placeholder": "Name of the stage"
},
"objective": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Objective",
"rows": 3,
"placeholder": "What must the player accomplish?"
}
},
"graph": {
"component": "Card",
"props": {
"header": "Stage: {{self.content.name}}",
"content": "{{self.content.objective}}"
}
}
},
"story-segment": {
"name": "Story Segment",
"description": "A segment of a story",
"forms": {
"title": {
"form": "input",
"type": "string",
"required": true,
"label": "Segment Title",
"isLabel": true,
"placeholder": "What is the segment about?"
},
"content": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Content",
"rows": 4,
"placeholder": "Content of the story segment."
}
},
"graph": {
"component": "Card",
"props": {
"header": "Story Segment",
"content": "{{self.content.title}}: {{self.content.content}}"
}
}
},
"task": {
"name": "Task",
"description": "A specific task within a quest or objective",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Task Name",
"isLabel": true,
"placeholder": "Name of the task"
},
"description": {
"form": "textarea",
"type": "string",
"required": true,
"label": "Description",
"rows": 3,
"placeholder": "What needs to be done?"
},
"optional": {
"form": "select",
"type": "string",
"required": false,
"label": "Optional",
"options": [
{
"label": "Required",
"value": "false"
},
{
"label": "Optional",
"value": "true"
}
]
}
},
"graph": {
"component": "Card",
"props": {
"header": "Task: {{self.content.name}}",
"content": "{{self.content.description}}"
}
}
},
"trait": {
"name": "Trait",
"description": "A character trait or attribute",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Trait Name",
"isLabel": true,
"placeholder": "Name of the trait"
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 3,
"placeholder": "Describe the trait..."
},
"effect": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Effect",
"rows": 2,
"placeholder": "What effect does this trait have?"
}
},
"graph": {
"component": "Card",
"props": {
"header": "Trait: {{self.content.name}}",
"content": "{{self.content.description}}"
}
}
}
},
"node_types": [
"start",
"end",
"audio-segment",
"chapter",
"character",
"checkpoint",
"dialog",
"dialog-entry",
"effect",
"environment-segment",
"event",
"gameplay-segment",
"inventory",
"item",
"location",
"object",
"quest",
"scene",
"stage",
"story-segment",
"task",
"trait"
],
"edges": [
"flow",
"contains",
"link"
],
"startNode": "start",
"endNode": "end",
"graph": {
"nodes": [
"start",
"end",
"audio-segment",
"chapter",
"character",
"checkpoint",
"dialog",
"dialog-entry",
"effect",
"environment-segment",
"event",
"gameplay-segment",
"inventory",
"item",
"location",
"object",
"quest",
"scene",
"stage",
"story-segment",
"task",
"trait"
],
"edges": [
"flow",
"contains",
"link"
]
}
},
{
"theme_id": "***ULID***",
"name": "Story Theme",
"domain": "story",
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"statistics": {
"projects_count": 7,
"projects_count_scope": "All projects carrying this theme, across every account - including private ones you cannot see. Your own project list may show fewer.",
"is_default": true
},
"badge": "Story",
"version": "1.0.0",
"description": "Interactive stories with characters, dialogs, chapters and scenes",
"nodes": {
"start": {
"name": "Start",
"description": "The origin of the narrative - the beginning of all paths",
"forms": {
"label": {
"form": "input",
"label": "Label",
"placeholder": "Start",
"required": false,
"isLabel": true
}
},
"graph": {
"component": "StartNode",
"props": []
}
},
"end": {
"name": "End",
"description": "The conclusion of the narrative - where all paths converge",
"forms": {
"label": {
"form": "input",
"label": "Label",
"placeholder": "End",
"required": false,
"isLabel": true
}
},
"graph": {
"component": "EndNode",
"props": []
}
},
"character": {
"name": "Character",
"description": "Character with properties and profile",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Character Name",
"isLabel": true,
"placeholder": "Enter character name..."
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 4,
"placeholder": "Character description..."
},
"traits": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Traits",
"rows": 3,
"placeholder": "Character traits (e.g. brave, shy...)"
}
},
"media": {
"image": {
"form": "upload",
"type": "file",
"label": "Character Image",
"formats": [
"jpg",
"jpeg",
"png",
"gif"
],
"maxSize": "2MB"
},
"avatar": {
"form": "upload",
"type": "file",
"label": "Avatar/Portrait",
"formats": [
"jpg",
"jpeg",
"png",
"gif"
],
"maxSize": "1MB"
}
},
"graph": {
"component": "MediaCard",
"props": {
"header": "{{self.content.name}}",
"content": "{{self.content.description}}",
"image": "{{self.media.image}}",
"imageAlign": "top"
}
}
},
"dialog": {
"name": "Dialog",
"description": "Start of a conversation between characters",
"forms": {
"title": {
"form": "input",
"type": "string",
"required": true,
"label": "Dialog Title",
"isLabel": true,
"placeholder": "What is the dialog about?"
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 4,
"placeholder": "Dialog description..."
}
},
"graph": {
"component": "Card",
"props": {
"header": "Dialog Start",
"content": "{{self.content.title}}: {{self.content.description}}"
}
}
},
"dialog-entry": {
"name": "Dialog Entry",
"description": "Individual speech contribution of a character",
"forms": {
"speaker": {
"form": "select",
"type": "string",
"required": false,
"label": "Speaker",
"options": [
{
"label": "{{node[{{character}}].content.name}}",
"value": "{{node[{{character}}].public_id}}"
}
],
"placeholder": "Select character..."
},
"message": {
"form": "contentarea",
"type": "string",
"required": true,
"label": "Message",
"isLabel": true,
"rows": 4,
"placeholder": "What does the character say?"
}
},
"graph": {
"component": "MediaCard",
"props": {
"header": "{{self.content.speaker_label}}:",
"content": "\"{{self.content.message}}\"",
"image": "{{self.media.image}}",
"imageAlign": "left"
}
}
},
"chapter": {
"name": "Chapter",
"description": "A chapter of the game",
"forms": {
"title": {
"label": "Title",
"form": "input",
"type": "string",
"required": true,
"isLabel": true,
"placeholder": "The title of the chapter."
},
"summary": {
"label": "Summary",
"form": "textarea",
"type": "string",
"required": false,
"rows": 4,
"placeholder": "Brief summary of the chapter."
}
},
"graph": {
"component": "Card",
"props": {
"header": "Chapter: {{self.content.title}}",
"content": "{{self.content.summary}}"
}
}
},
"scene": {
"name": "Scene",
"description": "A scene within a chapter",
"forms": {
"title": {
"form": "input",
"type": "string",
"required": true,
"label": "Scene Title",
"isLabel": true,
"placeholder": "Name of the scene"
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 4,
"placeholder": "What happens in this scene?"
}
},
"graph": {
"component": "Card",
"props": {
"header": "Scene: {{self.content.title}}",
"content": "{{self.content.description}}"
}
}
},
"story-segment": {
"name": "Story Segment",
"description": "A segment of a story",
"forms": {
"title": {
"form": "input",
"type": "string",
"required": true,
"label": "Segment Title",
"isLabel": true,
"placeholder": "What is the segment about?"
},
"content": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Content",
"rows": 4,
"placeholder": "Content of the story segment."
}
},
"graph": {
"component": "Card",
"props": {
"header": "Story Segment",
"content": "{{self.content.title}}: {{self.content.content}}"
}
}
}
},
"node_types": [
"start",
"end",
"character",
"dialog",
"dialog-entry",
"chapter",
"scene",
"story-segment"
],
"edges": [
"flow",
"contains",
"link"
],
"startNode": "start",
"endNode": "end",
"graph": {
"nodes": [
"start",
"end",
"character",
"dialog",
"dialog-entry",
"chapter",
"scene",
"story-segment"
],
"edges": [
"flow",
"contains",
"link"
]
}
},
{
"theme_id": "***ULID***",
"name": "Workflow Theme",
"domain": "workflow",
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"statistics": {
"projects_count": 0,
"projects_count_scope": "All projects carrying this theme, across every account - including private ones you cannot see. Your own project list may show fewer.",
"is_default": false
},
"badge": "Workflow",
"version": "1.1.0",
"description": "Workflows: roles that carry instructions and decisions, results as artifacts",
"nodes": {
"start": {
"name": "Start",
"description": "The origin of the workflow - the beginning of all work",
"forms": {
"label": {
"form": "input",
"label": "Label",
"placeholder": "Start",
"required": false,
"isLabel": true
}
},
"graph": {
"component": "StartNode",
"props": []
}
},
"end": {
"name": "End",
"description": "The end of the workflow - where all work is done",
"forms": {
"label": {
"form": "input",
"label": "Label",
"placeholder": "End",
"required": false,
"isLabel": true
}
},
"graph": {
"component": "EndNode",
"props": []
}
},
"role": {
"name": "Role",
"description": "Role in a workflow - with name and description",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Name",
"isLabel": true,
"placeholder": "e.g. QA Engineer"
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 4,
"placeholder": "e.g. Owns quality assurance of the product"
},
"color": {
"form": "color",
"type": "string",
"required": false,
"label": "Colour",
"placeholder": "#4a9eff"
}
},
"graph": {
"component": "Card",
"props": {
"header": "{{self.content.name}}",
"content": "{{self.content.description}}",
"headerColor": "{{self.content.color}}"
}
}
},
"instruction": {
"name": "Instruction",
"description": "Instruction in a workflow - what to do",
"forms": {
"role": {
"form": "select",
"type": "string",
"required": false,
"label": "Role",
"options": [
{
"label": "{{node[{{role}}].content.name}}",
"value": "{{node[{{role}}].public_id}}"
}
],
"placeholder": "Select role..."
},
"instruction": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Instruction",
"isLabel": true,
"rows": 4,
"placeholder": "e.g. Check the sign-in on the test environment and report the result"
}
},
"graph": {
"component": "Card",
"props": {
"header": "{{self.content.role_label}}",
"headerColor": "{{self.content.role_color}}",
"content": "{{self.content.instruction}}"
}
}
},
"decision": {
"name": "Decision",
"description": "Decision in a workflow - a question with outcomes",
"forms": {
"role": {
"form": "select",
"type": "string",
"required": false,
"label": "Role",
"options": [
{
"label": "{{node[{{role}}].content.name}}",
"value": "{{node[{{role}}].public_id}}"
}
],
"placeholder": "Select role..."
},
"question": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Question",
"isLabel": true,
"rows": 3,
"placeholder": "e.g. Does the result meet the acceptance criteria?"
}
},
"graph": {
"component": "Card",
"props": {
"header": "{{self.content.role_label}}",
"headerColor": "{{self.content.role_color}}",
"content": "{{self.content.question}}",
"shape": "diamond"
}
}
},
"artifact": {
"name": "Artifact",
"description": "Artifact in a workflow - the result of the work",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Name",
"isLabel": true,
"placeholder": "e.g. Test report"
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 4,
"placeholder": "e.g. Result of the check with date, scope and findings"
}
},
"graph": {
"component": "Card",
"props": {
"header": "{{self.content.name}}",
"content": "{{self.content.description}}"
}
}
},
"trigger": {
"name": "Trigger",
"description": "What sets a workflow in motion - described in words, shown without a header",
"forms": {
"description": {
"form": "textarea",
"type": "string",
"label": "Description",
"isLabel": true,
"required": false,
"rows": 3,
"placeholder": "e.g. A customer writes in"
}
},
"graph": {
"component": "Card",
"props": {
"content": "{{self.content.description}}"
}
}
}
},
"node_types": [
"start",
"end",
"role",
"instruction",
"decision",
"artifact",
"trigger"
],
"edges": [
"flow",
"link",
"contains"
],
"startNode": "start",
"endNode": "end",
"graph": {
"nodes": [
"start",
"end",
"role",
"instruction",
"decision",
"artifact",
"trigger"
],
"edges": [
"flow",
"link",
"contains"
]
}
}
]
},
"meta": {
"total_count": 3,
"timestamp": "***TIMESTAMP***"
}
}
Get Specific Theme
Retrieve detailed information about a specific theme by its domain. This is a public endpoint and does not require authentication.
URL Parameters
theme- The unique domain identifier of the theme (e.g., "dialog")
Response
https://tellstree.com/api/themes/{slug}{
"data": {
"theme": {
"theme_id": "***ULID***",
"name": "Game Theme",
"domain": "game",
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"statistics": {
"projects_count": 2,
"projects_count_scope": "All projects carrying this theme, across every account - including private ones you cannot see. Your own project list may show fewer.",
"is_default": false
},
"badge": [
"Game",
"Adventure",
"Interactive"
],
"version": "1.0.0",
"description": "Create an immersive game with scenes, characters, items and dialog.",
"nodes": {
"start": {
"name": "Start",
"description": "The origin of the narrative - the beginning of all paths",
"forms": {
"label": {
"form": "input",
"label": "Label",
"placeholder": "Start",
"required": false,
"isLabel": true
}
},
"graph": {
"component": "StartNode",
"props": []
}
},
"end": {
"name": "End",
"description": "The conclusion of the narrative - where all paths converge",
"forms": {
"label": {
"form": "input",
"label": "Label",
"placeholder": "End",
"required": false,
"isLabel": true
}
},
"graph": {
"component": "EndNode",
"props": []
}
},
"audio-segment": {
"name": "Audio Segment",
"description": "Background music or sound effect segment",
"forms": {
"title": {
"form": "input",
"type": "string",
"required": true,
"label": "Title",
"isLabel": true,
"placeholder": "Audio segment title"
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 2,
"placeholder": "Describe the audio mood..."
}
},
"media": {
"audio": {
"form": "upload",
"type": "file",
"label": "Audio File",
"formats": [
"mp3",
"wav",
"ogg"
],
"maxSize": "5MB"
}
},
"graph": {
"component": "Card",
"props": {
"header": "Audio: {{self.content.title}}",
"content": "{{self.content.description}}"
}
}
},
"chapter": {
"name": "Chapter",
"description": "A chapter of the game",
"forms": {
"title": {
"label": "Title",
"form": "input",
"type": "string",
"required": true,
"isLabel": true,
"placeholder": "The title of the chapter."
},
"summary": {
"label": "Summary",
"form": "textarea",
"type": "string",
"required": false,
"rows": 4,
"placeholder": "Brief summary of the chapter."
}
},
"graph": {
"component": "Card",
"props": {
"header": "Chapter: {{self.content.title}}",
"content": "{{self.content.summary}}"
}
}
},
"character": {
"name": "Character",
"description": "Character with properties and profile",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Character Name",
"isLabel": true,
"placeholder": "The name of the character."
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 4,
"placeholder": "The description of the character."
},
"traits": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Traits",
"rows": 3,
"placeholder": "Character traits (e.g. brave, shy...)"
}
},
"media": {
"image": {
"form": "upload",
"type": "file",
"label": "Character Image",
"formats": [
"jpg",
"jpeg",
"png",
"gif"
],
"maxSize": "2MB"
},
"avatar": {
"form": "upload",
"type": "file",
"label": "Avatar/Portrait",
"formats": [
"jpg",
"jpeg",
"png",
"gif"
],
"maxSize": "1MB"
}
},
"graph": {
"component": "MediaCard",
"props": {
"header": "{{self.content.name}}",
"content": "{{self.content.description}}",
"image": "{{self.media.image}}",
"imageAlign": "top"
}
}
},
"checkpoint": {
"name": "Checkpoint",
"description": "A save point or checkpoint in the game",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Checkpoint Name",
"isLabel": true,
"placeholder": "Name of the checkpoint"
},
"note": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Note",
"rows": 2,
"placeholder": "Optional note about this checkpoint"
}
},
"graph": {
"component": "Card",
"props": {
"header": "Checkpoint: {{self.content.name}}",
"content": "{{self.content.note}}"
}
}
},
"dialog": {
"name": "Dialog",
"description": "Start of a conversation between characters",
"forms": {
"title": {
"form": "input",
"type": "string",
"required": true,
"label": "Dialog Title",
"isLabel": true,
"placeholder": "What is the dialog about?"
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 4,
"placeholder": "Dialog description..."
}
},
"graph": {
"component": "Card",
"props": {
"header": "Dialog Start",
"content": "{{self.content.title}}: {{self.content.description}}"
}
}
},
"dialog-entry": {
"name": "Dialog Entry",
"description": "Individual speech contribution of a character",
"forms": {
"speaker": {
"form": "select",
"type": "string",
"required": false,
"label": "Speaker",
"options": [
{
"label": "{{node[{{character}}].content.name}}",
"value": "{{node[{{character}}].public_id}}"
}
],
"placeholder": "Select character..."
},
"message": {
"form": "contentarea",
"type": "string",
"required": true,
"label": "Message",
"isLabel": true,
"rows": 4,
"placeholder": "What does the character say?"
}
},
"graph": {
"component": "MediaCard",
"props": {
"header": "{{self.content.speaker_label}}:",
"content": "\"{{self.content.message}}\"",
"image": "{{self.media.image}}",
"imageAlign": "left"
}
}
},
"effect": {
"name": "Effect",
"description": "A visual or gameplay effect",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Effect Name",
"isLabel": true,
"placeholder": "Name of the effect"
},
"type": {
"form": "select",
"type": "string",
"required": true,
"label": "Effect Type",
"options": [
{
"label": "Visual",
"value": "visual"
},
{
"label": "Audio",
"value": "audio"
},
{
"label": "Gameplay",
"value": "gameplay"
},
{
"label": "Status",
"value": "status"
}
]
},
"description": {
"form": "textarea",
"type": "string",
"required": true,
"label": "Description",
"rows": 3,
"placeholder": "Describe the effect..."
},
"duration": {
"form": "input",
"type": "string",
"required": false,
"label": "Duration",
"placeholder": "Effect duration (optional)"
}
},
"graph": {
"component": "Card",
"props": {
"header": "Effect: {{self.content.name}}",
"content": "{{self.content.description}}"
}
}
},
"environment-segment": {
"name": "Environment Segment",
"description": "Environmental narrative or atmosphere description",
"forms": {
"title": {
"form": "input",
"type": "string",
"required": true,
"label": "Title",
"isLabel": true,
"placeholder": "Environment segment title"
},
"content": {
"form": "textarea",
"type": "string",
"required": true,
"label": "Content",
"rows": 6,
"placeholder": "Describe the environment, atmosphere, sounds..."
}
},
"graph": {
"component": "Card",
"props": {
"header": "Environment",
"content": "{{self.content.content}}"
}
}
},
"event": {
"name": "Event",
"description": "A triggered event in the game",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Event Name",
"isLabel": true,
"placeholder": "Name of the event"
},
"trigger": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Trigger Condition",
"rows": 2,
"placeholder": "What triggers this event?"
},
"description": {
"form": "textarea",
"type": "string",
"required": true,
"label": "Description",
"rows": 4,
"placeholder": "What happens when this event is triggered?"
}
},
"graph": {
"component": "Card",
"props": {
"header": "Event: {{self.content.name}}",
"content": "{{self.content.description}}"
}
}
},
"gameplay-segment": {
"name": "Gameplay Segment",
"description": "A segment of gameplay mechanics or instructions",
"forms": {
"title": {
"form": "input",
"type": "string",
"required": true,
"label": "Title",
"isLabel": true,
"placeholder": "Gameplay segment title"
},
"mechanics": {
"form": "textarea",
"type": "string",
"required": true,
"label": "Mechanics",
"rows": 5,
"placeholder": "Describe the gameplay mechanics..."
}
},
"graph": {
"component": "Card",
"props": {
"header": "Gameplay",
"content": "{{self.content.mechanics}}"
}
}
},
"inventory": {
"name": "Inventory",
"description": "An inventory container or system",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Inventory Name",
"isLabel": true,
"placeholder": "Name of the inventory"
},
"capacity": {
"form": "input",
"type": "string",
"required": false,
"label": "Capacity",
"placeholder": "Maximum capacity (optional)"
},
"note": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Note",
"rows": 2,
"placeholder": "Additional notes..."
}
},
"graph": {
"component": "Card",
"props": {
"header": "Inventory: {{self.content.name}}",
"content": "Capacity: {{self.content.capacity}}"
}
}
},
"item": {
"name": "Item",
"description": "An item that can be collected or used",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Item Name",
"isLabel": true,
"placeholder": "Name of the item"
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 3,
"placeholder": "What is this item?"
},
"usage": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Usage",
"rows": 2,
"placeholder": "How can it be used?"
}
},
"media": {
"image": {
"form": "upload",
"type": "file",
"label": "Item Image",
"formats": [
"jpg",
"jpeg",
"png",
"gif"
],
"maxSize": "1MB"
}
},
"graph": {
"component": "MediaCard",
"props": {
"header": "{{self.content.name}}",
"content": "{{self.content.description}}",
"image": "{{self.media.image}}"
}
}
},
"location": {
"name": "Location",
"description": "A physical location in the game world",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Location Name",
"isLabel": true,
"placeholder": "Name of the location"
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 4,
"placeholder": "Describe the location..."
}
},
"media": {
"image": {
"form": "upload",
"type": "file",
"label": "Location Image",
"formats": [
"jpg",
"jpeg",
"png",
"gif"
],
"maxSize": "2MB"
}
},
"graph": {
"component": "MediaCard",
"props": {
"header": "{{self.content.name}}",
"content": "{{self.content.description}}",
"image": "{{self.media.image}}"
}
}
},
"object": {
"name": "Object",
"description": "An interactive object in the game",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Object Name",
"isLabel": true,
"placeholder": "Name of the object"
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 3,
"placeholder": "What does it look like?"
},
"interaction": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Interaction",
"rows": 3,
"placeholder": "What happens when interacting with it?"
}
},
"media": {
"image": {
"form": "upload",
"type": "file",
"label": "Object Image",
"formats": [
"jpg",
"jpeg",
"png",
"gif"
],
"maxSize": "1MB"
}
},
"graph": {
"component": "MediaCard",
"props": {
"header": "{{self.content.name}}",
"content": "{{self.content.description}}",
"image": "{{self.media.image}}"
}
}
},
"quest": {
"name": "Quest",
"description": "A quest or mission for the player",
"forms": {
"title": {
"form": "input",
"type": "string",
"required": true,
"label": "Quest Title",
"isLabel": true,
"placeholder": "Name of the quest"
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 4,
"placeholder": "What is the quest about?"
},
"objective": {
"form": "textarea",
"type": "string",
"required": true,
"label": "Objective",
"rows": 3,
"placeholder": "What must be accomplished?"
},
"reward": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Reward",
"rows": 2,
"placeholder": "What reward does the player receive?"
}
},
"graph": {
"component": "Card",
"props": {
"header": "Quest: {{self.content.title}}",
"content": "{{self.content.objective}}"
}
}
},
"scene": {
"name": "Scene",
"description": "A scene within a chapter",
"forms": {
"title": {
"form": "input",
"type": "string",
"required": true,
"label": "Scene Title",
"isLabel": true,
"placeholder": "Name of the scene"
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 4,
"placeholder": "What happens in this scene?"
}
},
"graph": {
"component": "Card",
"props": {
"header": "Scene: {{self.content.title}}",
"content": "{{self.content.description}}"
}
}
},
"stage": {
"name": "Stage",
"description": "A stage or phase within gameplay",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Stage Name",
"isLabel": true,
"placeholder": "Name of the stage"
},
"objective": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Objective",
"rows": 3,
"placeholder": "What must the player accomplish?"
}
},
"graph": {
"component": "Card",
"props": {
"header": "Stage: {{self.content.name}}",
"content": "{{self.content.objective}}"
}
}
},
"story-segment": {
"name": "Story Segment",
"description": "A segment of a story",
"forms": {
"title": {
"form": "input",
"type": "string",
"required": true,
"label": "Segment Title",
"isLabel": true,
"placeholder": "What is the segment about?"
},
"content": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Content",
"rows": 4,
"placeholder": "Content of the story segment."
}
},
"graph": {
"component": "Card",
"props": {
"header": "Story Segment",
"content": "{{self.content.title}}: {{self.content.content}}"
}
}
},
"task": {
"name": "Task",
"description": "A specific task within a quest or objective",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Task Name",
"isLabel": true,
"placeholder": "Name of the task"
},
"description": {
"form": "textarea",
"type": "string",
"required": true,
"label": "Description",
"rows": 3,
"placeholder": "What needs to be done?"
},
"optional": {
"form": "select",
"type": "string",
"required": false,
"label": "Optional",
"options": [
{
"label": "Required",
"value": "false"
},
{
"label": "Optional",
"value": "true"
}
]
}
},
"graph": {
"component": "Card",
"props": {
"header": "Task: {{self.content.name}}",
"content": "{{self.content.description}}"
}
}
},
"trait": {
"name": "Trait",
"description": "A character trait or attribute",
"forms": {
"name": {
"form": "input",
"type": "string",
"required": true,
"label": "Trait Name",
"isLabel": true,
"placeholder": "Name of the trait"
},
"description": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Description",
"rows": 3,
"placeholder": "Describe the trait..."
},
"effect": {
"form": "textarea",
"type": "string",
"required": false,
"label": "Effect",
"rows": 2,
"placeholder": "What effect does this trait have?"
}
},
"graph": {
"component": "Card",
"props": {
"header": "Trait: {{self.content.name}}",
"content": "{{self.content.description}}"
}
}
}
},
"node_types": [
"start",
"end",
"audio-segment",
"chapter",
"character",
"checkpoint",
"dialog",
"dialog-entry",
"effect",
"environment-segment",
"event",
"gameplay-segment",
"inventory",
"item",
"location",
"object",
"quest",
"scene",
"stage",
"story-segment",
"task",
"trait"
],
"edges": [
"flow",
"contains",
"link"
],
"startNode": "start",
"endNode": "end",
"graph": {
"nodes": [
"start",
"end",
"audio-segment",
"chapter",
"character",
"checkpoint",
"dialog",
"dialog-entry",
"effect",
"environment-segment",
"event",
"gameplay-segment",
"inventory",
"item",
"location",
"object",
"quest",
"scene",
"stage",
"story-segment",
"task",
"trait"
],
"edges": [
"flow",
"contains",
"link"
]
}
}
},
"meta": {
"timestamp": "***TIMESTAMP***"
}
}
✨ Designs
Designs provide specific styling configurations within themes, allowing fine-grained control over the visual presentation of story elements.
/api/designs
List all designs
/api/designs/{design}
Get design by domain
List All Designs
Retrieve a list of all available designs. This is a public endpoint and does not require authentication.
Response
https://tellstree.com/api/designs{
"data": {
"designs": [
{
"design_id": "***ULID***",
"name": "Foundation",
"domain": "foundation",
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"statistics": {
"projects_count": 0,
"is_default": true
},
"version": "1.0.0",
"description": "The foundational design system for TellsTree - clean, professional, and versatile.",
"author": "TellsTree Team",
"category": "professional",
"preview": "foundation-preview.jpg",
"colors": {
"primary": "#3B82F6",
"secondary": "#8B5CF6",
"accent": "#10B981",
"background": "#F8FAFC",
"surface": "#FFFFFF",
"text": {
"primary": "#1F2937",
"secondary": "#6B7280",
"muted": "#9CA3AF"
},
"border": "#E5E7EB",
"shadow": "rgba(0, 0, 0, 0.1)"
},
"typography": {
"fontFamily": {
"primary": "Inter, sans-serif",
"heading": "Inter, sans-serif",
"code": "JetBrains Mono, monospace"
},
"fontSize": {
"xs": "0.75rem",
"sm": "0.875rem",
"base": "1rem",
"lg": "1.125rem",
"xl": "1.25rem",
"2xl": "1.5rem",
"3xl": "1.875rem"
},
"fontWeight": {
"normal": "400",
"medium": "500",
"semibold": "600",
"bold": "700"
},
"lineHeight": {
"tight": "1.25",
"normal": "1.5",
"relaxed": "1.75"
}
},
"spacing": {
"xs": "0.25rem",
"sm": "0.5rem",
"md": "1rem",
"lg": "1.5rem",
"xl": "2rem",
"2xl": "3rem"
},
"borderRadius": {
"sm": "0.25rem",
"md": "0.375rem",
"lg": "0.5rem",
"xl": "0.75rem",
"full": "9999px"
},
"shadows": {
"sm": "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
"md": "0 4px 6px -1px rgba(0, 0, 0, 0.1)",
"lg": "0 10px 15px -3px rgba(0, 0, 0, 0.1)",
"xl": "0 20px 25px -5px rgba(0, 0, 0, 0.1)"
},
"components": [
"Card",
"Circle",
"SpeechBubble",
"CharacterBadge",
"MediaCard",
"StartNode",
"EndNode",
"EdgeLabel"
]
},
{
"design_id": "***ULID***",
"name": "Original",
"domain": "original",
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"statistics": {
"projects_count": 9,
"is_default": false
},
"version": "1.0.0",
"description": "The original design recipe for TellsTree - timeless, refined, and expertly crafted.",
"author": "TellsTree Team",
"category": "classic",
"preview": "foundation-preview.jpg",
"colors": {
"primary": "#3B82F6",
"secondary": "#8B5CF6",
"accent": "#10B981",
"background": "#F8FAFC",
"surface": "#FFFFFF",
"text": {
"primary": "#1F2937",
"secondary": "#6B7280",
"muted": "#9CA3AF"
},
"border": "#E5E7EB",
"shadow": "rgba(0, 0, 0, 0.1)"
},
"typography": {
"fontFamily": {
"primary": "Inter, sans-serif",
"heading": "Inter, sans-serif",
"code": "JetBrains Mono, monospace"
},
"fontSize": {
"xs": "0.75rem",
"sm": "0.875rem",
"base": "1rem",
"lg": "1.125rem",
"xl": "1.25rem",
"2xl": "1.5rem",
"3xl": "1.875rem"
},
"fontWeight": {
"normal": "400",
"medium": "500",
"semibold": "600",
"bold": "700"
},
"lineHeight": {
"tight": "1.25",
"normal": "1.5",
"relaxed": "1.75"
}
},
"spacing": {
"xs": "0.25rem",
"sm": "0.5rem",
"md": "1rem",
"lg": "1.5rem",
"xl": "2rem",
"2xl": "3rem"
},
"borderRadius": {
"sm": "0.25rem",
"md": "0.375rem",
"lg": "0.5rem",
"xl": "0.75rem",
"full": "9999px"
},
"shadows": {
"sm": "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
"md": "0 4px 6px -1px rgba(0, 0, 0, 0.1)",
"lg": "0 10px 15px -3px rgba(0, 0, 0, 0.1)",
"xl": "0 20px 25px -5px rgba(0, 0, 0, 0.1)"
},
"components": [
"Card",
"Circle",
"SpeechBubble",
"CharacterBadge",
"MediaCard",
"StartNode",
"EndNode",
"EdgeLabel"
]
}
]
},
"meta": {
"total_count": 2,
"timestamp": "***TIMESTAMP***"
}
}
Get Specific Design
Retrieve detailed configuration for a specific design by its domain identifier.
URL Parameters
design- The domain identifier of the design
Response
https://tellstree.com/api/designs/{design}{
"data": {
"design": {
"design_id": "***ULID***",
"name": "Foundation",
"domain": "foundation",
"created_at": "***TIMESTAMP***",
"updated_at": "***TIMESTAMP***",
"statistics": {
"projects_count": 0,
"is_default": true
},
"version": "1.0.0",
"description": "The foundational design system for TellsTree - clean, professional, and versatile.",
"author": "TellsTree Team",
"category": "professional",
"preview": "foundation-preview.jpg",
"colors": {
"primary": "#3B82F6",
"secondary": "#8B5CF6",
"accent": "#10B981",
"background": "#F8FAFC",
"surface": "#FFFFFF",
"text": {
"primary": "#1F2937",
"secondary": "#6B7280",
"muted": "#9CA3AF"
},
"border": "#E5E7EB",
"shadow": "rgba(0, 0, 0, 0.1)"
},
"typography": {
"fontFamily": {
"primary": "Inter, sans-serif",
"heading": "Inter, sans-serif",
"code": "JetBrains Mono, monospace"
},
"fontSize": {
"xs": "0.75rem",
"sm": "0.875rem",
"base": "1rem",
"lg": "1.125rem",
"xl": "1.25rem",
"2xl": "1.5rem",
"3xl": "1.875rem"
},
"fontWeight": {
"normal": "400",
"medium": "500",
"semibold": "600",
"bold": "700"
},
"lineHeight": {
"tight": "1.25",
"normal": "1.5",
"relaxed": "1.75"
}
},
"spacing": {
"xs": "0.25rem",
"sm": "0.5rem",
"md": "1rem",
"lg": "1.5rem",
"xl": "2rem",
"2xl": "3rem"
},
"borderRadius": {
"sm": "0.25rem",
"md": "0.375rem",
"lg": "0.5rem",
"xl": "0.75rem",
"full": "9999px"
},
"shadows": {
"sm": "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
"md": "0 4px 6px -1px rgba(0, 0, 0, 0.1)",
"lg": "0 10px 15px -3px rgba(0, 0, 0, 0.1)",
"xl": "0 20px 25px -5px rgba(0, 0, 0, 0.1)"
},
"components": [
"Card",
"Circle",
"SpeechBubble",
"CharacterBadge",
"MediaCard",
"StartNode",
"EndNode",
"EdgeLabel"
]
}
},
"meta": {
"timestamp": "***TIMESTAMP***"
}
}
💬 Comments
Comments enable collaborative feedback and discussion within projects. Team members can leave notes, suggestions, and feedback to improve the narrative experience.
/api/commentsList all comments/api/commentsCreate new comment/api/comments/{comment}Get comment details/api/comments/{comment}Update comment/api/comments/{comment}Delete commentList Comments
Retrieve all comments or filter by project to see discussions and feedback.
Query Parameters
project_id- Filter by project ID (optional)user_id- Filter by author (optional)status- Filter by status (optional)page- Page number (optional)per_page- Items per page (optional)Response
https://tellstree.com/api/commentsCreate Comment
Add a new comment or feedback to a project for collaborative discussion.
Required Fields
content- Comment textproject_id- Project to attach comment toOptional Fields
priority- low/medium/highnode_id- Related node IDposition- UI position datatags- Array of tagsResponse
https://tellstree.com/api/comments