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

# List all entities in the knowledge base with pagination.

> Query Parameters - limit: Maximum number of results (default: 50) - offset: Number of results to skip (default: 0) Response Returns a paginated list of all…

**Query Parameters**

* `limit`: Maximum number of results (default: 50)
* `offset`: Number of results to skip (default: 0)
  **Response**
  Returns a paginated list of all entities.
  List entities with pagination.

**Required scope:** `read`

### Query parameters

<ParamField query="limit" type="integer">
  Maximum number of items to return (1-1000, default: 50)
</ParamField>

<ParamField query="offset" type="integer">
  Number of items to skip (default: 0)
</ParamField>

<ParamField query="cursor" type="string">
  Cursor for cursor-based pagination (alternative to offset)
</ParamField>

<ParamField query="sort" type="string">
  Sort field with optional direction prefix (- for descending) Examples: 'created\_at', '-name', 'confidence'
</ParamField>

### Response

`PaginatedEntityResponse`

<ResponseField name="items" type="EntityResponse[]" required>
  The items in this page

  <Expandable title="EntityResponse">
    <ResponseField name="confidence" type="number (float)" required>
      Confidence score
    </ResponseField>

    <ResponseField name="created_at" type="string">
      Creation timestamp (RFC3339)
    </ResponseField>

    <ResponseField name="entity_type" type="string" required>
      Entity type
    </ResponseField>

    <ResponseField name="has_embedding" type="boolean" required>
      Whether entity has an embedding vector
    </ResponseField>

    <ResponseField name="id" type="string" required>
      Unique entity ID
    </ResponseField>

    <ResponseField name="name" type="string" required>
      Entity name
    </ResponseField>

    <ResponseField name="properties" type="object" required>
      Entity properties
    </ResponseField>

    <ResponseField name="updated_at" type="string">
      Last update timestamp (RFC3339)
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="pagination" type="PaginationMeta" required>
  <Expandable title="PaginationMeta">
    <ResponseField name="has_more" type="boolean" required>
      Whether there are more items after this page
    </ResponseField>

    <ResponseField name="limit" type="integer" required>
      Current page limit
    </ResponseField>

    <ResponseField name="next_cursor" type="string">
      Cursor for the next page (if using cursor-based pagination)
    </ResponseField>

    <ResponseField name="offset" type="integer" required>
      Current offset
    </ResponseField>

    <ResponseField name="prev_cursor" type="string">
      Cursor for the previous page
    </ResponseField>

    <ResponseField name="total" type="integer">
      Total number of items (if available)
    </ResponseField>
  </Expandable>
</ResponseField>

### Status codes

| Code  | Meaning                                            |
| ----- | -------------------------------------------------- |
| `200` | List of entities                                   |
| `401` | Unauthorized — missing or invalid credentials      |
| `403` | Forbidden — the key/token lacks the required scope |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.nsr.stateset.com/api/v1/entities' \
    --header 'X-API-Key: YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "items": [
      {
        "confidence": 7.5,
        "created_at": "2026-08-31T14:22:05Z",
        "entity_type": "string",
        "has_embedding": true,
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "name": "Two-Person Tent",
        "properties": {},
        "updated_at": "2026-08-31T14:22:05Z"
      }
    ],
    "pagination": {
      "has_more": true,
      "limit": 20,
      "next_cursor": "string",
      "offset": 1,
      "prev_cursor": "string",
      "total": 102
    }
  }
  ```
</ResponseExample>
