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

# Postman Collection Info

## Postman Collection

### Import Collection

1. Open Postman
2. Click Import
3. Paste or upload `spacio-api-collection.json`
4. Collection appears in sidebar

### Setup Environment

Create Postman environment with variables:

**Variables:**
- `base_url` = https://ws.spac.io/api/v1
- `api_key` = your-api-key-here
- `agent_key` = your-agent-id
- `property_id` = test-property-id
- `brokerage_id` = your-brokerage-id

### Using Variables

In request URLs:
```
{{base_url}}/getProperties
```

In headers:
```
Header: apikey: {{api_key}}
```

In body:
```
agent_key={{agent_key}}&page=1
```

### Pre-request Scripts

Automatically set timestamps:
```javascript
pm.environment.set('timestamp', new Date().toISOString());
```

### Test Scripts

Validate responses:
```javascript
pm.test('Status code is 200', function() {
  pm.response.to.have.status(200);
});

pm.test('Response has success', function() {
  var json = pm.response.json();
  pm.expect(json.success).to.be.true;
});
```

### Running Collections

Use Collection Runner:
1. Select collection
2. Set iteration count
3. Set delays between requests
4. Click Run

### Monitoring

Setup monitoring to run collection on schedule:
1. Select collection
2. Click Monitors
3. Create new monitor
4. Set frequency (hourly/daily)

### Export Results

Generate reports:
- Execution summary
- Pass/fail statistics
- Response times
- Error logs

