Ledga
GET/attribute-definitions

List the tenant's searchable attribute definitions (catalog)

List the tenant's catalog.

Parameters

NameInTypeDescription
limit query integer
default: 25 · max: 100
cursor query string Opaque keyset cursor returned by this endpoint. A malformed or foreign cursor is rejected as 422.

Responses

200Successful operation
{
  "success": true,
  "meta": {
    "pagination": {
      "limit": 25,
      "has_more": true,
      "next_cursor": "eyJpZCI6IjAxOWRjZjg3LTUwN2ItNzE5OS05ZTE1LWZhY2YxNjVlNzRjMSJ9"
    }
  },
  "data": [
    {
      "id": "01997c1e-4d2a-7c3e-9a1b-2f0e8c6d4b5a",
      "key": "customer_id",
      "label": "Customer ID",
      "indexed": true,
      "usage_count": 1200,
      "created_at": "2026-01-15T10:30:00Z",
      "updated_at": "2026-01-15T10:30:00Z"
    }
  ]
}
401Unauthenticated
{
  "success": false,
  "message": "Validation failed",
  "code": "VALIDATION_ERROR"
}
403Forbidden
{
  "success": false,
  "message": "Validation failed",
  "code": "VALIDATION_ERROR"
}

Examples

curl https://ledga.io/api/v1/attribute-definitions \
  -H "Authorization: Bearer sk_xxxxxxxx_your_secret"

← All endpoints