Project fields
| Field | Description |
|---|---|
id | UUID, auto-generated. Use this as your project_id in API headers. |
name | Human-readable name for the project. |
description | Optional short description. |
domain | The base URL of your service (e.g., https://api.example.com). Used to classify events as in-domain or out-of-domain. |
is_active | Whether the project is active. Inactive projects stop receiving events. |
created_by | The user who created the project. They are automatically assigned the Admin role. |
Project domain and event classification
Thedomain field tells OTAS what your service’s origin URL is. When an agent logs an API call, OTAS compares the event’s path against this domain to determine whether the call was made to your own backend (in-domain) or to an external service such as an LLM provider (out-of-domain). This distinction lets you filter and analyze your agents’ external API usage separately from internal traffic.
Team access and privileges
Project access is controlled through aUserProjectMapping, which links a user to a project with one of two privilege levels:
| Privilege | Value | Capabilities |
|---|---|---|
| Admin | 1 | Create and manage agents, create and revoke SDK keys, view all events and sessions |
| Member | 2 | View agents, sessions, and events; cannot create agents or keys |
Backend SDK keys
Backend SDK keys (BackendAPIKey) let your server-side middleware authenticate with OTAS and log events on behalf of agents without requiring a user JWT. Each key is scoped to a single project.
Key format: otas_<prefix>_<secret>
The full key value is shown only once at creation time. OTAS stores only a hashed version in the database. Copy and store the key immediately.
Key lifecycle
Create a key
Send a
POST request to /api/project/v1/sdk/backend/key/create/ with the validity field (1–300 days) in the body. You must be a project Admin.Use the key
Pass the key in the
X-OTAS-SDK-KEY header when your backend middleware logs events. OTAS resolves the project from the key automatically.Creating a project
You can create a project from the OTAS dashboard or directly via the API. API endpoint:POST /api/project/v1/create/
id, which you’ll use as X-OTAS-PROJECT-ID in subsequent requests.
Only project Admins can create agents and SDK keys. When you create a project, you are automatically assigned the Admin role.