Creates a new property record in the system. This endpoint requires authentication via an API key and must include a valid team ID.
Requires an API key passed in the header:
Field | Type | Required | Description |
---|---|---|---|
team_id | string | Yes | Valid team identifier |
address | string | No | Property street address |
city | string | No | Property city |
askingPrice | number | No | Property asking price |
curl -X POST https://brickbear.ai/access/records/new/ \ -H "Content-Type: application/json" \ -H "x-api-key: your-api-key" \ -d '{ "team_id": "12", "address": "123 Main St", "city": "Example City", "state": "CA", "zipcode": "12345", "askingPrice": 250000, "beds": 3, "baths": 2, "sqft": 1500, "yearBuilt": 1990 }'
{ "success": true, "record": { "id": "550e8400-e29b-41d4-a716-446655440000", "record_id": "123", "team_id": "12", "address": "123 Main St", "city": "Example City", "state": "CA", "zipcode": "12345", "askingPrice": 250000 } }
{"error": "Invalid or missing API key"}
{"error": "team_id is required"}
{"error": "Internal Server Error"}