> ## 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.

# Search for entities matching a query pattern.

> Query Parameters - q: Search query (supports regex patterns) - limit: Maximum number of results (default: 10) Response Returns a list of entities matching the…

**Query Parameters**

* `q`: Search query (supports regex patterns)
* `limit`: Maximum number of results (default: 10)
  **Response**
  Returns a list of entities matching the search criteria.
  Search entities by name/regex.

**Required scope:** `read`

### Query parameters

**q** `string` *required*

Search query (supports regex patterns)

**limit** `integer`

Maximum results (default 10, capped at max\_page\_size)

### Response

`EntityResponse[]` — each element:

**confidence** `number (float)` *required*

Confidence score

**created\_at** `string`

Creation timestamp (RFC3339)

**entity\_type** `string` *required*

Entity type

**has\_embedding** `boolean` *required*

Whether entity has an embedding vector

**id** `string` *required*

Unique entity ID

**name** `string` *required*

Entity name

**properties** `object` *required*

Entity properties

**updated\_at** `string`

Last update timestamp (RFC3339)

### Status codes

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

```bash cURL theme={null}
curl --request GET \
  --url 'https://api.nsr.stateset.com/api/v1/entities/search' \
  --header "X-API-Key: $STATESET_NSR_API_KEY"
```

```json 200 theme={null}
[
  {
    "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"
  }
]
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.