This guide walks you through making your first request to the Vangrid Enterprise Spatial API. By the end, you’ll have queried real-time spatial data and seen a live response with ground truth and provenance information.Documentation Index
Fetch the complete documentation index at: https://docs.vangrid.io/llms.txt
Use this file to discover all available pages before exploring further.
Request access and get your API key
Vangrid is available through an enterprise account. To get started, email hello@vangrid.io with a brief description of your use case and the team or organization you’re building for.Once your account is provisioned, you’ll receive an invitation to the Vangrid dashboard where you can generate and manage API keys.
Authenticate your requests
Every request to the Vangrid API must include your API key as a Bearer token in the Here’s a minimal authenticated request to confirm your credentials are working:A successful response returns
Authorization header.200 OK. If you receive a 401, double-check that your key is correct and has not expired. See Authentication for details on handling credential errors.Make your first spatial query
The A successful response looks like this:Key response fields:
/v1/spatial/query endpoint returns real-time ground truth for a geographic area of interest. You define the area using a GeoJSON polygon and specify the data resolution you need.node_count— Number of edge nodes that contributed data to this query.ground_truth_score— Confidence in the spatial data, from 0 to 1. Scores above 0.9 indicate high-fidelity ground truth.provenance_hash— A cryptographic hash covering the entire response. Use this to verify data integrity.data_points— Individual observations from contributing edge nodes, each with its own confidence score and provenance hash.
Stream live spatial data
For applications that need continuous updates — such as tracking moving objects or monitoring dynamic environments — the Vangrid Streaming API delivers ground truth in real time over a persistent connection.The stream emits Server-Sent Events (SSE). Each event contains a JSON payload in the same format as the spatial query response above, updated as new observations arrive from edge nodes in your area of interest.
Streaming connections are subject to rate limits based on your account tier. Contact hello@vangrid.io if you need higher throughput for production workloads.
Next steps
Now that you’ve made your first request, explore the full API surface:Authentication
Learn about credential management, auth errors, and security best practices.
API reference
Browse every endpoint, parameter, and response schema in the Enterprise Spatial API.