> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agribackup.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Verified Polygons | AgriBackup EUDR API

> Retrieve a cursor-paginated list of your organisation's verified farm polygons, filterable by compliance status and last-updated timestamp.

Returns a cursor-paginated list of all farm boundary polygons registered under your organisation. Use query parameters to filter by compliance status (`PENDING`, `COMPLIANT`, `HIGH_RISK`) or to retrieve only records updated after a specific timestamp — useful for incremental sync with your ERP system. Polygons with `eudrStatus: COMPLIANT` are eligible to be referenced in a batch registration.

## Request Headers

| Header      | Required | Description                            |
| ----------- | -------- | -------------------------------------- |
| `X-API-Key` | ✅        | Your live API key, e.g. `sk_live_...`. |

## Query Parameters

| Parameter        | Type              | Default | Description                                                                        |
| ---------------- | ----------------- | ------- | ---------------------------------------------------------------------------------- |
| `starting_after` | string            | —       | Cursor value from the previous page's `nextCursor` field. Omit for the first page. |
| `updated_after`  | string (ISO-8601) | —       | Return only polygons updated after this timestamp, e.g. `2026-01-01T00:00:00Z`.    |
| `limit`          | integer           | `100`   | Maximum records to return per page.                                                |
| `status`         | string            | —       | Filter by compliance status: `PENDING`, `COMPLIANT`, or `HIGH_RISK`.               |

## Response — 200 OK

| Field        | Type           | Description                                                                                          |
| ------------ | -------------- | ---------------------------------------------------------------------------------------------------- |
| `data`       | array          | List of `PolygonStatusResponse` objects (see below).                                                 |
| `hasMore`    | boolean        | `true` if additional records exist beyond this page.                                                 |
| `nextCursor` | string \| null | Pass this value to `starting_after` to retrieve the next page. `null` when no further records exist. |

Each item in `data` contains:

| Field          | Type              | Description                                                |
| -------------- | ----------------- | ---------------------------------------------------------- |
| `polygonId`    | string            | Unique polygon identifier.                                 |
| `commodity`    | string            | Crop commodity produced on the plot (e.g. `Coffee`).       |
| `eudrStatus`   | string            | Compliance status: `PENDING`, `COMPLIANT`, or `HIGH_RISK`. |
| `areaHectares` | number            | Plot area in hectares.                                     |
| `createdAt`    | string (ISO-8601) | Timestamp when the polygon was registered.                 |

```json theme={null}
{
  "data": [
    {
      "polygonId": "uuid-1234",
      "commodity": "Coffee",
      "eudrStatus": "COMPLIANT",
      "areaHectares": 2.5,
      "createdAt": "2026-06-01T08:30:00Z"
    }
  ],
  "hasMore": false,
  "nextCursor": null
}
```

## Code Examples

<CodeGroup>
  ```python Python theme={null}
  import agribackup
  from agribackup.rest import ApiException

  configuration = agribackup.Configuration(host="https://live.agribackup.com/api/v1")
  configuration.api_key['ApiKeyAuth'] = 'sk_live_YOUR_API_KEY'

  with agribackup.ApiClient(configuration) as api_client:
      try:
          api_instance = agribackup.EnterprisePolygonsApi(api_client)

          response = api_instance.get_polygons(
              status='COMPLIANT',
              limit=100
          )

          for polygon in response.data:
              print(polygon.polygon_id, polygon.eudr_status)

          if response.has_more:
              # Fetch next page
              next_page = api_instance.get_polygons(
                  starting_after=response.next_cursor,
                  status='COMPLIANT',
                  limit=100
              )
      except ApiException as e:
          print("Error:", e)
  ```

  ```javascript Node.js theme={null}
  import { AgriBackupClient } from '@agribackup/sdk';

  const client = new AgriBackupClient({
    apiKey: 'sk_live_YOUR_API_KEY',
    baseUrl: 'https://live.agribackup.com/api/v1'
  });

  async function listPolygons() {
    try {
      const response = await client.polygons.getPolygons({
        status: 'COMPLIANT',
        limit: 100
      });

      for (const polygon of response.data) {
        console.log(polygon.polygonId, polygon.eudrStatus);
      }

      if (response.hasMore) {
        const nextPage = await client.polygons.getPolygons({
          startingAfter: response.nextCursor,
          status: 'COMPLIANT',
          limit: 100
        });
      }
    } catch (error) {
      console.error('Error:', error.message);
    }
  }
  ```

  ```bash cURL theme={null}
  curl -G https://live.agribackup.com/api/v1/enterprise/eudr/polygons \
    -H "X-API-Key: sk_live_YOUR_API_KEY" \
    --data-urlencode "status=COMPLIANT" \
    --data-urlencode "limit=100"
  ```
</CodeGroup>


## OpenAPI

````yaml get /api/v1/enterprise/eudr/polygons
openapi: 3.0.1
info:
  title: AgriBackup Enterprise EUDR API
  description: >-
    # Introduction


    AgriBackup is the cryptographic compliance engine for EU-bound commodity
    imports. Built on Deterministic Logic, Immutable Evidence, and
    High-Throughput Ingestion, our API provides Tier-1 enterprise routing for EU
    Deforestation Regulation (EUDR).


    ## The Integration Vector

    To integrate this Digital Trust Layer into your ERP, you must execute the
    following sequence:

    1. **Authentication:** Generate your `X-API-Key` from the client dashboard.

    2. **Telemetry:** Register your webhook URLs via `POST /webhooks`.

    3. **Ingestion:** Push your GeoJSON polygons via `POST /polygons`.

    4. **Logistics:** Lock the batch to a shipment via `POST /shipments/link`.


    ## Asynchronous Architecture

    Because satellite deforestation screening and Hedera DLT anchoring take
    time, ingestion endpoints return a `202 Accepted`. You must listen for the
    corresponding Webhook to confirm cryptographic execution.


    ## Base URLs

    * **Production:** `https://live.agribackup.com`

    * **Sandbox:** `https://sandbox.agribackup.com`
  contact:
    name: AgriBackup Architecture Team
    url: https://agribackup.com
    email: contact@agribackup.com
  license:
    name: Proprietary
    url: https://agribackup.com/terms
  version: v1.0
servers:
  - url: https://live.agribackup.com
    description: Production (Mainnet)
  - url: https://sandbox.agribackup.com
    description: Sandbox (Testnet)
security: []
tags:
  - name: Enterprise Risk Management
  - name: Enterprise Clearance Webhooks
    description: Asynchronous status receivers for TRACES NT
  - name: Enterprise Jobs
    description: Query status and metrics of asynchronous compliance jobs
  - name: Enterprise Suppliers
  - name: Enterprise Diagnostics
    description: Monitor API health, consensus ledger, and satellite systems availability
  - name: Enterprise Suppliers
    description: Map internal ERP vendor IDs to EU Operator UUIDs
  - name: Enterprise Webhooks
    description: Register endpoints for asynchronous compliance events
  - name: Enterprise Archival
    description: Endpoints for bulk compliance archiving and auditor extensibility
  - name: Enterprise Logistics
    description: Smart contract linking of batches to logistics shipments
  - name: Enterprise Declarations
    description: DDS generation with legal land tenure proofs
  - name: Enterprise Batches
  - name: Enterprise API Keys
  - name: Enterprise Diagnostics
  - name: Enterprise Logistics
  - name: Enterprise Jobs
  - name: Enterprise Evidence
    description: Cryptographic evidence ledger anchored on Hedera Hashgraph
  - name: Enterprise Declarations
  - name: Enterprise Credentials
  - name: Enterprise Evidence
  - name: Enterprise Risk Management
    description: Pre-assessment of country risk and satellite deforestation probabilities
  - name: Enterprise Batches
    description: Programmatic batch ingestion and management
  - name: Enterprise Polygons
  - name: Introduction
  - name: Enterprise Polygons
    description: Programmatic polygon ingestion and verification
  - name: Enterprise Archival
  - name: Enterprise Credentials
    description: Programmatic ingestion of vault-secured enterprise secrets
  - name: Enterprise API Keys
    description: Endpoints for managing B2B API Keys (Requires standard JWT login)
  - name: Enterprise Webhooks
paths:
  /api/v1/enterprise/eudr/polygons:
    get:
      tags:
        - Enterprise Polygons
      summary: List Verified Polygons
      description: >-
        Retrieves a cursor-paginated list of all verified farm boundary polygons
        matching the organization scope.
      operationId: getPolygons
      parameters:
        - name: starting_after
          in: query
          description: Cursor to retrieve the next page of results
          required: false
          schema:
            type: string
          example: uuid-1234
        - name: updated_after
          in: query
          description: Filter for polygons updated after this ISO-8601 timestamp
          required: false
          schema:
            type: string
          example: '2026-01-01T00:00:00Z'
        - name: limit
          in: query
          description: Maximum number of records to return
          required: false
          schema:
            type: integer
            format: int32
            default: 100
          example: 100
        - name: status
          in: query
          description: Filter by compliance status
          required: false
          schema:
            type: string
            enum:
              - PENDING
              - COMPLIANT
              - HIGH_RISK
          example: COMPLIANT
      responses:
        '200':
          description: List of polygons successfully retrieved
          headers:
            X-RateLimit-Limit:
              description: >-
                The maximum number of requests you're permitted to make per
                hour.
              schema:
                type: integer
                format: int32
            X-RateLimit-Remaining:
              description: >-
                The number of requests remaining in the current rate limit
                window.
              schema:
                type: integer
                format: int32
            X-RateLimit-Reset:
              description: >-
                The time at which the current rate limit window resets in UTC
                epoch seconds.
              schema:
                type: integer
                format: int32
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnterprisePolygonCollectionResponse'
        '401':
          description: Unauthorized
          headers:
            X-RateLimit-Limit:
              description: >-
                The maximum number of requests you're permitted to make per
                hour.
              schema:
                type: integer
                format: int32
            X-RateLimit-Remaining:
              description: >-
                The number of requests remaining in the current rate limit
                window.
              schema:
                type: integer
                format: int32
            X-RateLimit-Reset:
              description: >-
                The time at which the current rate limit window resets in UTC
                epoch seconds.
              schema:
                type: integer
                format: int32
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Forbidden
          headers:
            X-RateLimit-Limit:
              description: >-
                The maximum number of requests you're permitted to make per
                hour.
              schema:
                type: integer
                format: int32
            X-RateLimit-Remaining:
              description: >-
                The number of requests remaining in the current rate limit
                window.
              schema:
                type: integer
                format: int32
            X-RateLimit-Reset:
              description: >-
                The time at which the current rate limit window resets in UTC
                epoch seconds.
              schema:
                type: integer
                format: int32
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: Python
          source: >-
            import agribackup

            from agribackup.rest import ApiException


            # Initialize Client

            configuration =
            agribackup.Configuration(host="https://live.agribackup.com/api/v1")

            configuration.api_key['ApiKeyAuth'] = 'sk_live_YOUR_API_KEY'


            with agribackup.ApiClient(configuration) as api_client:
                try:
                    api_instance = agribackup.EnterprisePolygonsApi(api_client)
                    response = api_instance.get_polygons()
                    print(response)
                except ApiException as e:
                    print("Exception when calling API: %s\n" % e)
        - lang: Node.js
          source: |-
            import { AgriBackupClient } from '@agribackup/sdk';

            // Initialize Client
            const client = new AgriBackupClient({
              apiKey: 'sk_live_YOUR_API_KEY',
              baseUrl: 'https://live.agribackup.com/api/v1'
            });

            async function execute() {
              try {
                const response = await client.polygons.getPolygons();
                console.log(response);
              } catch (error) {
                console.error(error);
              }
            }
        - lang: Java
          source: |-
            import com.agribackup.client.*;
            import com.agribackup.client.api.*;
            import com.agribackup.client.model.*;

            public class Example {
                public static void main(String[] args) {
                    ApiClient defaultClient = Configuration.getDefaultApiClient();
                    defaultClient.setBasePath("https://live.agribackup.com/api/v1");
                    defaultClient.setApiKey("sk_live_YOUR_API_KEY");

                    EnterprisePolygonsApi apiInstance = new EnterprisePolygonsApi(defaultClient);
                    try {
                        Object result = apiInstance.getPolygons();
                        System.out.println(result);
                    } catch (ApiException e) {
                        System.err.println("Exception when calling API: " + e.getResponseBody());
                    }
                }
            }
        - lang: C#
          source: |-
            using System;
            using System.Threading.Tasks;
            using AgriBackup.SDK.Api;
            using AgriBackup.SDK.Client;
            using AgriBackup.SDK.Model;

            class Program {
                static async Task Main() {
                    Configuration config = new Configuration();
                    config.BasePath = "https://live.agribackup.com/api/v1";
                    config.AddApiKey("ApiKeyAuth", "sk_live_YOUR_API_KEY");

                    var apiInstance = new EnterprisePolygonsApi(config);
                    try {
                        var result = await apiInstance.GetPolygonsAsync();
                        Console.WriteLine(result);
                    } catch (ApiException e) {
                        Console.WriteLine("Exception when calling API: " + e.Message);
                    }
                }
            }
components:
  schemas:
    EnterprisePolygonCollectionResponse:
      required:
        - data
        - hasMore
      type: object
      properties:
        data:
          type: array
          description: List of verified polygons
          items:
            $ref: '#/components/schemas/PolygonStatusResponse'
        hasMore:
          type: boolean
          description: Indicates if more records are available
        nextCursor:
          type: string
          description: Cursor to retrieve next page (null if no more records)
          nullable: true
      description: Cursor-paginated collection response for enterprise polygons
    ApiError:
      required:
        - code
        - details
        - message
      type: object
      properties:
        code:
          type: string
          description: Error code
          example: VALIDATION_FAILED
        message:
          type: string
          description: Human-readable error message
          example: Invalid polygon coordinates
        details:
          type: array
          description: Detailed list of validation errors, if applicable
          items:
            $ref: '#/components/schemas/ApiErrorDetail'
      description: Standard error format for all Enterprise API failures
    PolygonStatusResponse:
      required:
        - areaHectares
        - commodity
        - eudrStatus
        - polygonId
      type: object
      properties:
        polygonId:
          type: string
          description: Unique Polygon ID
          example: uuid-1234
        commodity:
          type: string
          description: Crop commodity produced on the plot
          example: Coffee
        eudrStatus:
          type: string
          description: EUDR compliance status
          example: COMPLIANT
          enum:
            - PENDING
            - COMPLIANT
            - HIGH_RISK
        areaHectares:
          type: number
          description: Area of the plot in hectares
          format: double
          example: 2.5
        createdAt:
          type: string
          description: Creation timestamp
          format: date-time
      description: Deterministic compliance status of a Polygon
    ApiErrorDetail:
      required:
        - code
        - field
        - issue
      type: object
      properties:
        code:
          type: string
          description: Programmatic error code for automated branch logic
          example: INVALID_COORDINATE_CLOSURE
        field:
          type: string
          description: The field or property that caused the error
          example: features[0].properties.area
        issue:
          type: string
          description: A description of the issue with the field
          example: Area must be specified in hectares and cannot be negative
      description: Detailed error information for a specific field
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      description: Enterprise API Key provided via the AgriBackup developer console.
      name: X-API-Key
      in: header

````