AgriWebb API
API Reference

Get Report

GET
/v2/report/{id}

Download a report. Poll this endpoint while the report is generating: once the report is ready, it redirects to the CSV. The Accept header is required, and chooses the CSV format.

Path Parameters

id*string
Formatuuid

Header Parameters

authorization?string

An OAuth 2.0 access token, as Bearer {access token}. Send this or x-api-key.

x-api-key?string

An API key issued by AgriWebb. Send this or authorization.

accept*string

The CSV format to download. text/csv is the current version of the format and application/vnd.agriwebb.csv+v1 is version 1.

Value in"text/csv""application/vnd.agriwebb.csv+v1"

Response Body

The CSV, served by the URL in the Location header of the 302 response.

text/csv
  1. response
[index: integer]?
curl -X GET "https://example.com/v2/report/{id}" \  -H "accept: text/csv"
[  {    "Row Type": "string",    "Area": 0,    "Avg Stocking Rate": 0,    "Closing Load": 0,    "Closing Stocking Rate": 0,    "Cumulative Load": 0,    "Land Use": "string",    "Paddock": "string",    "Paddock Description": "string",    "Starting Load": 0,    "Starting Stocking Rate": 0  }]