Skip to content

API Guide

This section provides detailed information and examples for using the GeoSight RESTful API. The guide helps developers and data analysts understand how to interact programmatically with the platform and automate common tasks efficiently.

Authentication

All API requests must include an API token in the Authorization header. You can generate or retrieve your token from the GeoSight user profile page.

Authorization: Token <your-api-token>
GeoSight-User-Key: <your-email-address>

Example using curl:

curl -X GET "https://<your-geosight-host>/api/v1/context-layers/" \
  -H "Authorization: Token <your-api-token>" \
  -H "GeoSight-User-Key: <your-email-address>"

Requests made without a valid token will receive an HTTP 401 Unauthorized response.