Worlds CLI Reference
Command-line argument dictionaries, flags, and environment variables.
Base URL
All API requests should be made to:Authentication
All requests require a Bearer token in theAuthorization header. For more
details, see the Authentication section below.
Resources
The API is organized around the following core resources:- Worlds: Create, list, update, and delete world instances.
- SPARQL: Execute queries and updates against a world’s graph.
- Search: Perform semantic and keyword searches.
- Logs: Monitor events and history.
Authentication
The Worlds API requires Bearer Token authentication. Include your API key in theAuthorization header of every request.
Generate key
You must provide a valid API key to interact with the API.- Cloud
- Self-hosted
Generate an API key in the dashboard.
Unprotected mode
For rapid prototyping and local development, theWORLDS_API_KEY is optional.
Authenticate
Set the header
Configure theAuthorization header with your API key:
Use the SDK
The SDK handles authentication automatically when you initialize the client:Admin access
Certain endpoints, such as listing all worlds for an account, require an admin API key. In self-hosted environments, use yourWORLDS_API_KEY.
Worlds enforces rate limits to ensure system stability and fair usage across the
platform.
Principles
- Exemptions: Administrative requests and internal system operations are exempt from standard rate limits.
- Fair Usage: Limits are applied per-client to prevent resource exhaustion and ensure high availability for all users.
- Standard Responses: When a rate limit is exceeded, the server returns a
429 Too Many Requestsstatus code with a standardized JSON error response.