Authorization 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.