Skip to main content
API Keys are the foundation of your SpatialReal integration. They allow you to authenticate your applications and securely access SpatialReal services. In this guide, you’ll learn how to create API Keys in SpatialReal Studio and best practices for managing them.

Creating an API Key

1

Open API Keys page

2

Click Create API Key

On the API key page, click Create API Key.
API Keys page
3

Enter application name

Type your Application Name and click Create.
Click Create API Key
4

Copy App ID and API Key

In the popup, copy both App ID and API Key.
Create app and view popup

Manage your API Key

Your API Key is used to authenticate server-side requests to SpatialReal services.
Important: Keep your API Key secure and never expose it in client-side code or commit it to version control. Treat it like a password to prevent unauthorized access to your SpatialReal account.
Best Practices:
  • Store your API Key in environment variables or a secrets manager
  • Never expose your API Key in client-side code
  • Never commit your API Key to version control

Temporary Session Token

For quick testing and development, you can generate a Temporary Session Token directly in SpatialReal Studio.
Temporary Session Tokens are valid for 24 hours only. They are intended for testing purposes and should not be used in production.
1

Open Your Application

Navigate to API keys page in SpatialReal Studio, then click the details button of your application.
Token Step 1
2

Generate Token

Click Generate Temporary Token to create a new temporary session token.
Token Step 2
3

Use for Testing

Use this token in your client SDK to test avatar rendering without setting up server-side authentication.

Production Authentication

In production, you should generate session tokens from your backend server using the API Key. See the Authentication Guide for implementation details.

Authentication Guide

Learn how to implement secure server-side authentication