Pagination

List endpoints in the GovernLayer API return paginated results. By default, responses include up to 50 items. Use the skip and limit query parameters to navigate through results.

Parameters

  • Name
    skip
    Type
    integer
    Description

    Number of items to skip. Defaults to 0.

  • Name
    limit
    Type
    integer
    Description

    Maximum number of items to return. Defaults to 50, maximum 100.

Paginated request

curl -G https://api.governlayer.ai/v1/ledger \
  -H "X-API-Key: gl_your_api_key_here" \
  -d skip=50 \
  -d limit=25

Paginated response

{
  "total": 1847,
  "skip": 50,
  "limit": 25,
  "data": [
    {
      "id": 51,
      "system_name": "pricing-agent",
      "decision": "APPROVE",
      "ledger_hash": "sha256:e5f6a7b8...",
      "timestamp": "2026-04-24T10:15:00Z"
    }
    // ... 24 more items
  ]
}

Was this page helpful?