AgriWebb API
API Reference

List Reports

GET
/v2/report

List generated reports and their metadata. Results are paginated, with links to the first, next, previous and last pages.

Query Parameters

cursor?string

An opaque pagination cursor.

page?integer

The page number, starting at 1.

Range1 <= value <= 9007199254740991
perPage?integer

The number of reports per page.

Range1 <= value <= 1000
Default100

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.

Response Body

A page of the reports the credential can access, newest first. links.next is the next page, and null on the last page.

application/json
  1. response
data*array<|||||||||>
meta*
links*
curl -X GET "https://example.com/v2/report"
{  "data": [    {      "type": "animal-load-by-paddock.v1",      "tenantType": "farm",      "tenantId": "string",      "reportingPeriodStart": 0,      "reportingPeriodEnd": 0,      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "status": "pending",      "creationDate": 0,      "lastModifiedDate": 0    }  ],  "meta": {    "total": 0,    "currentPage": 0,    "perPage": 0,    "totalPages": 0,    "cursor": "string"  },  "links": {    "first": "https://api.agriwebb.com/v2/report?cursor={cursor}",    "next": "https://api.agriwebb.com/v2/report?cursor={cursor}&page={page}",    "prev": null,    "last": "https://api.agriwebb.com/v2/report?cursor={cursor}&page={totalPages}",    "download": "https://api.agriwebb.com/v2/report/{id}"  }}