API Playground
Test API endpoints interactively using the tools below. The full OpenAPI specification is available for download and can be imported into your preferred API client.
Download the Spec
Section titled “Download the Spec”The OpenAPI 3.1 specification describes every public endpoint, including request/response schemas, parameters, and authentication requirements.
OpenAPI Spec (JSON) Download the public API specification for use with Swagger UI, Postman, or any OpenAPI-compatible tool.
Use with Swagger Editor
Section titled “Use with Swagger Editor”Open the Swagger Editor and paste the contents of the spec file. The editor provides an interactive “Try It Out” feature for every endpoint.
- Open editor.swagger.io.
- Click File > Import URL.
- Enter:
https://docs.spatial.properties/openapi/public.json - Browse endpoints in the right panel and use Try it out to send requests.
Use with Postman
Section titled “Use with Postman”- Open Postman and click Import.
- Select Link and paste:
https://docs.spatial.properties/openapi/public.json - Postman creates a collection with all endpoints pre-configured.
- Set the
Authorizationheader toBearer YOUR_ACCESS_TOKENin the collection variables.
Use with Insomnia
Section titled “Use with Insomnia”- Open Insomnia and click Import.
- Select the downloaded
public.jsonfile. - All endpoints appear in the sidebar with parameters pre-filled.
Authentication for Testing
Section titled “Authentication for Testing”Most endpoints require a Bearer token. Before testing:
- Obtain an access token following the Authentication guide.
- Set the
Authorizationheader toBearer YOUR_ACCESS_TOKENin your API client. - Verify connectivity with
GET /health(no auth required).
Streaming Endpoints
Section titled “Streaming Endpoints”Three endpoints use Server-Sent Events (SSE) and cannot be tested with standard REST clients:
| Endpoint | Description |
|---|---|
POST /chat | Chat with the spatial analysis agent |
POST /batch/upload | Upload and process batch assessments |
POST /report/generate | Generate PDF reports |
For these endpoints, use a dedicated SSE client or the curl examples from the endpoint documentation.