# Crexi Lease Spaces API Documentation

Returns the spaces offered in one lease property: suite id, name, rate as displayed, rentable square feet, subtype, listing type and description when Crexi shows them. Masked values are omitted. A valid property with no spaces returns total 0 and an empty spaces array, which is a billable success. An unknown id answers a 404 with error.code NOT_FOUND, which is not billable.

- **Documentation:** [https://scrappa.co/docs/crexi-api/crexi_lease_spaces](https://scrappa.co/docs/crexi-api/crexi_lease_spaces)
- **API group:** Crexi API
- **Endpoint:** `GET https://scrappa.co/api/crexi/lease/spaces`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | integer | Yes | Lease asset id from a lease search result, for example 1000123. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/crexi/lease/spaces?id=1000123"
```

## Example response

```json
{
    "success": true,
    "data": {
        "total": 1,
        "spaces": [
            {
                "id": 2271159,
                "name": "9",
                "rate": "$19.39/SF/YR",
                "rentable_sqft": 495,
                "listing_type": "Direct"
            }
        ]
    },
    "meta": {
        "endpoint_family": "lease_spaces",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | No active Crexi record exists for the id (unknown, inactive, or not an auction for the auction endpoint). Not billable. |
| 422 | Validation Error | A parameter is invalid, including a page window beyond what Crexi serves or a filter combination Crexi rejects. Not billable. |
| 503 | Service Unavailable | The service could not obtain a complete result from Crexi. Not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
