API Documentation

Complete guide to integrating with TellsTree's powerful storytelling API.

Quick Start

Get up and running with the TellsTree API in minutes

1
Get JWT Token
2
Make API Calls
3
Start Building

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

✓
RESTful API
CRUD operations & consistent JSON responses
✓
No Complex Setup
Get JWT Token → Make API Calls → Start Building
✓
Copy & Paste Examples
Working code for JavaScript, Python, PHP, cURL
✓
Clear Error Messages
HTTP status codes and RFC 7807 compliant error messages
✓
Generous Limits
60 api calls per minute

Resources

Projects /api/projects
Nodes /api/nodes
Edges /api/edges
Media /api/media
Comments /api/comments
Themes /api/themes
Designs /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 window
  • X-RateLimit-RemainingRemaining requests in the current window
  • Retry-AfterSeconds to wait before retry (429 responses only)
API 300 requests/minute General API limit (optimized for graph editor)
AUTH 5 attempts/minute Login attempts
REFRESH 30 requests/minute Token refresh
REG 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).

2xx 200, 201, 204 Success responses
4xx 400, 401, 403, 404, 422, 429 Client errors
5xx 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.

POST /api/auth/login Login / Obtain token
GET /api/auth/me Get current user info
POST /api/auth/refresh Refresh token
POST /api/auth/logout Logout / Invalidate token
GET /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 email
  • password - Your account password

Response

200 Success / Login successful
401 Authentication failed / Invalid credentials
422 Validation failed / Missing fields
429 Too Many Requests / Rate limited
POSThttps://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

200 Success / Token refreshed
401 Unauthorized / Invalid refresh token
403 Forbidden / Token expired
POSThttps://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

200 Success / User information
401 Unauthorized / Missing or invalid token
GEThttps://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

204 No Content / Logout successful
401 Unauthorized / Invalid token
POSThttps://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

200 Success / Public keys
GEThttps://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/projects
Authorization: Bearer eyJ0eXAiOiJKV1Q...
Accept: application/json
GEThttps://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).

GET /api/projects List all projects
POST /api/projects Create project
Identifiers. The path segment takes the 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.
GET /api/projects/{public_id} Get project
PUT /api/projects/{public_id} Update project
DELETE /api/projects/{public_id} Delete project
GET /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

200 Success, Returns paginated list of public projects
GEThttps://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

200 Success, Returns paginated list of user's projects
401 Unauthorized, Invalid or missing token
GEThttps://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

201 Created, data.project{} (Complete Project object with theme, design, nodes, edges, members, capabilities, comments)
422 Invalid data, Validation errors in data.errors{}
401 Unauthorized, Invalid token
POSThttps://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

200 Success, Returns complete project details
404 Project not found
403 Forbidden, No access
GEThttps://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

200 Success, Project updated successfully
422 Invalid data, Validation errors
404 Project not found
403 Forbidden, No permission
PUThttps://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

204 No Content, Project deleted successfully
404 Project not found
403 Forbidden, No permission
DELETEhttps://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

200 Success, Returns activity updates since timestamp
401 Unauthorized, Invalid or missing token
403 Forbidden, User is not a project member
GEThttps://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.

GET /api/nodes List all nodes
POST /api/nodes Create new node
GET /api/nodes?query[include]=ids Get specific nodes (lazy loading)
GET /api/nodes/{node} Get node details
PUT /api/nodes/{node} Update node
DELETE /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

200 Success / Nodes list
400 Missing project_id parameter
401 Unauthorized / Invalid token
GEThttps://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 ID
  • query[include] - Comma-separated node IDs
  • • Returns canvas-ready node data
  • • Optimized for editor performance

Response

200 Success / Nodes loaded
400 Missing project_id
GEThttps://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 project
  • content - Node content/text
  • type - Node type
  • position_x - X coordinate
  • position_y - Y coordinate
  • properties - Custom properties

Response

201 Created / Node created
422 Invalid data / Validation failed
401 Unauthorized / Invalid token
POSThttps://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 ID
  • node - Node ID

Response

200 Success / Node details
404 Node not found
403 Forbidden / No access
GEThttps://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 title
  • content - Node content
  • type - Node type
  • position_x - X coordinate
  • position_y - Y coordinate
  • properties - Custom properties
  • locked_by - Lock status (user_id or null)

Response

200 Success / Node updated
422 Invalid data / Validation failed
404 Node not found
403 Forbidden / No permission
PUThttps://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

204 Success / No Content
404 Node not found
403 Forbidden / No permission
DELETEhttps://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.

GET /api/edges List all edges
POST /api/edges Create new edge
GET /api/edges/{edge} Get edge details
PUT /api/edges/{edge} Update edge
DELETE /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 node
  • target_node_id - ID of target node

Optional Fields

  • label - Display text for edge
  • condition - Edge activation condition

Response

201 Created / Edge created
422 Invalid data / Validation failed
404 Source/target node not found
POSThttps://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 ID
  • edge - Edge ID

Response

200 Success / Edge details
404 Edge not found
403 Forbidden / No access
GEThttps://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 ID
  • target_node_id - Target node ID
  • label - Edge display label
  • condition - Edge condition
  • locked_by - Lock status (internal use only)

Response

200 Success / Edge updated
422 Invalid data / Validation failed
404 Edge not found
403 Forbidden / No permission
PUThttps://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

204 Success / No Content
404 Edge not found
403 Forbidden / No permission
DELETEhttps://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.

GET /api/media List all media
POST /api/media Upload new media
GET /api/media/{media} Get media details
PUT /api/media/{media} Update media metadata
PATCH /api/media/{media}/visibility Update visibility
DELETE /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

200 Success / Media list
401 Unauthorized / Invalid token
403 Forbidden / No access
GEThttps://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 project
  • node_id - Attach to node
  • edge_id - Attach to edge
  • alt_text - Alternative text
  • description - Media description
  • visibility - public/private

Response

201 Created / Media uploaded
422 Invalid file / Validation failed
413 Payload Too Large / File too big
415 Unsupported Media Type
POSThttps://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"
    }
}

💬 Comments

Comments enable collaborative feedback and discussion within projects. Team members can leave notes, suggestions, and feedback to improve the narrative experience.

GET /api/comments List all comments
POST /api/comments Create new comment
GET /api/comments/{comment} Get comment details
PUT /api/comments/{comment} Update comment
DELETE /api/comments/{comment} Delete comment

List 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

200 Success / Comments list
401 Unauthorized / Invalid token
403 Forbidden / No access
GEThttps://tellstree.com/api/comments
{
    "data": {
        "comments": [
            {
                "id": "***ULID***",
                "project_id": "***ULID***",
                "user_id": "***ULID***",
                "content": "API Test Comment content with enough length",
                "rating": 4,
                "created_at": "***TIMESTAMP***"
            }
        ]
    }
}

Create Comment

Add a new comment or feedback to a project for collaborative discussion.

Required Fields

  • content - Comment text
  • project_id - Project to attach comment to

Optional Fields

  • priority - low/medium/high
  • node_id - Related node ID
  • position - UI position data
  • tags - Array of tags

Response

201 Created / Comment created
422 Invalid data / Validation failed
404 Project not found
403 Forbidden / No access
POSThttps://tellstree.com/api/comments
{
    "data": {
        "comment": {
            "id": "***ULID***",
            "project_id": "***ULID***",
            "user_id": "***ULID***",
            "content": "API Test Comment content with enough length",
            "rating": 4,
            "created_at": "***TIMESTAMP***"
        }
    }
}

Themes

Themes define the visual styling and appearance of your storytelling projects. Each theme contains color schemes, fonts, and layout configurations.

GET /api/themes List all themes
GET /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

200 Success / Themes list
GEThttps://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

200 Success / Theme details
404 Theme not found
GEThttps://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.

GET /api/designs List all designs
GET /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

200 Success / Designs list
GEThttps://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

200 Success / Design details
404 Design not found
GEThttps://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***"
    }
}