Skip to main content
The Worlds API Server is built on Deno for secure, edge-ready execution with web-standard APIs.

Request lifecycle

Every request to the Worlds API passes through a standardized lifecycle to ensure security, consistency, and efficient graph operations.
1

Routing

The server matches the incoming request URL and method to the appropriate handler.
2

Authorization

For secured endpoints, the server verifies the Authorization: Bearer token. See the Authentication guide for details.
3

Validation

Input data, including body and query parameters, is validated against strict schemas to ensure type-safety and data integrity.
4

Execution

The server performs the requested operation. For world-specific requests, it automatically resolves and interacts with the correct knowledge graph instance.
5

Response

The system returns a serialized JSON response or a standardized error message.