> For the complete documentation index, see [llms.txt](https://apidocs.lwolf.com/doc/spacio-api/llms.txt)

# Getting Started & Authentication

## Getting Started

The Spacio API provides real estate data and lead management capabilities. To begin:

### 1. Obtain API Key
Contact Spacio support to receive your API key. Each brokerage or agent account receives a unique key.

### 2. Authentication
All requests require the API key in the header:
```
Header: apikey: your-api-key
```

### 3. Base URL
Use one of these base URLs:
- v1: `https://ws.spac.io/api/v1/`
- v2: `https://ws.spac.io/api/v2/`

### 4. First Request
Test authentication with:
```bash
curl -X POST 'https://ws.spac.io/api/v1/getProperties' \
  -H 'apikey: your-api-key' \
  -d 'agent_key=your_agent_key'
```

### 5. Response Format
All responses are JSON:
```json
{
  "success": true,
  "data": [...],
  "pagination": {...}
}
```

