The Agdir Satellite API includes an interactive GraphQL sandbox where you can explore the schema, write queries, and test mutations — all from your browser, with no setup required.
Open the sandbox: satellite.agdir.farm/graphql
The sandbox is an Apollo Studio Explorer embedded directly into the API endpoint. It gives you a fully interactive environment to:
Navigate to the GraphQL endpoint in your browser:
The sandbox loads automatically. If it shows an offline message, make sure you have an active internet connection and that JavaScript is enabled in your browser.
Most operations require an API token. To authenticate in the sandbox:
Authorization.Bearer YOUR_API_TOKEN.Need a token? Contact support@agdir.no to request API access credentials.
The sandbox includes a built-in Schema Explorer on the left panel. Use it to:
Query and Mutation fields.processPlantHealth or retrieveVegetationIndices.Try this simple query to verify your connection and token. Paste it into the Operation panel and click the play button:
If authenticated correctly, you will see a list of your registered polygons in the Response panel on the right.
Mutations trigger actions — like registering a polygon or starting an analysis. Here is an example that processes a plant health analysis:
The response includes a requestId that you can use with retrieveRequestDetails() to monitor progress.
For reusable queries, use GraphQL variables instead of inline values. In the sandbox, click the Variables tab at the bottom and add a JSON object:
The Response panel shows the full JSON result. Key things to look for:
true if the operation succeeded.For retrieval queries, the Result object contains S3 URLs for PNG, GeoTIFF, and JSON files that you can download directly.
generatePolygon() to register your field boundaries.polygonId.processPlantHealth() with that polygon ID and a date range.retrieveRequestDetails() with the returned requestId to monitor progress.Success, call retrievePlantHealth() to get the results.retrieveSatelliteDownload() with your polygon ID and date range.amountOfAvailableDates vs amountOfCloudDetectedDates to understand data coverage.Mutation type to see all process* operations.Query type to see all retrieve* operations.| Issue | Solution |
|---|---|
| Sandbox shows "offline" | Check your internet connection and refresh the page. The Apollo sandbox requires an external connection to load. |
| 401 Unauthorized | Your token is missing or invalid. Check the Authorization header is set correctly with the Bearer prefix. |
| 400 Bad Request | Your GraphQL syntax has errors. Check for missing brackets, incorrect field names, or wrong argument types. |
| No data returned | The polygon may not have data for the requested date range. Use retrieveSatelliteDownload() to check availability first. |
| CORS errors in browser console | The sandbox is served from the same origin as the API, so CORS should not be an issue. If you see CORS errors, try clearing your browser cache or disabling browser extensions. |
Ready to integrate? Once you have tested your queries in the sandbox, head to the Getting Started guide to learn how to make the same calls from your own code.