# REST API - Authentication

## Base URL
- `https://api.screenreply.com`

## Authentication Method
- **Bearer Token** via `Authorization` header
- Header format: `Authorization: Bearer YOUR_API_KEY`
- API keys are workspace-scoped

## API Key Management
- Must have **OWNER privileges** for the workspace to generate and manage API keys
- API keys are **perpetual** (never expire) unless an expiration date is specified during creation
- To cancel a key, you must **revoke** it from the dashboard
- If you turn off **API Access** for the entire workspace, all created keys instantly stop working until API access is turned back on

## Steps to Generate API Key
1. Log in to ScreenReply Dashboard
2. Switch to the desired workspace using the workspace selector
3. Navigate to the **API** section
4. Turn on **API Access** for the workspace
5. Click **Create API Key**

## Security
- API Keys grant full access to the workspace, equivalent to Owner permissions
- Do not share API Key publicly
- Do not commit API Key to version control systems