> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oyester.metaphy.live/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication

> Authentication and authorization for the Blue Oyster API

# Authentication

## Overview

<Note>
  **Status:** No authentication required by default

  All endpoints are publicly accessible. Consider implementing authentication for production use based on blueoyester's auth requirements.
</Note>

## User Identification

While authentication is not required, user identification is handled via the `resourceId` parameter:

* **Purpose**: Associates conversations with specific users for persistence
* **Format**: String identifier (e.g., "user123", "anonymous")
* **Scope**: Conversation threads and memory management

## Security Considerations

For production deployments, consider implementing:

* **API Key Authentication**: Bearer token in Authorization header
* **OAuth 2.0**: Third-party authentication integration
* **JWT Tokens**: Stateless authentication with claims
* **Rate Limiting**: Per-user request limits

## Request Headers

```typescript theme={null}
// Optional authentication headers for future implementation
{
  "Authorization": "Bearer your-api-key",
  "X-API-Key": "your-api-key"
}
```

## User Context

User identification in API requests:

```typescript theme={null}
{
  "resourceId": "user-123",  // User identifier
  "runtimeContext": {
    "metadata": {
      "userId": "user-123"  // Alternative user specification
    }
  }
}
```
