Description
This endpoint returns a list of recommended items for a given user, optionally using context-based logic to tailor results. It requires an access token that includes theneuronsearchlab-api/read scope.
Request
Endpoint:Request Parameters
Parameters may be supplied either as query parameters or in the JSON body. When both are present, they are merged with body values taking precedence.| Name | Type | Required | Description |
|---|---|---|---|
| user_id | string | yes | Identifier for the end user to personalize for. Falls back to the sub claim from the access token when omitted. |
| context_id | integer | no | Identifier for an optional stored context that provides filters, groupings, and default limits. |
| quantity | int | no | Number of recommendations to return. Defaults to the context configuration when not specified. |
| entity_type | string | no | Overrides the embedding type saved for the entity. Must be User or Item. |
| name | string | no | Overrides the name stored with the embedding. |
| description | string | no | Overrides the description stored with the embedding. |
client_id/sub) and rejects the request if the tenant lookup fails.
Response
200 OKcontext_id includes grouping configuration, the recommendations array contains grouped aggregates with representative metadata and scores. Scores are normalized to the range 0–1 (where higher is better).
Error responses
400 Bad Request– Validation failed (for example, missinguser_idor invalidentity_type).401 Unauthorized– Missing/invalid access token or tenant resolution failed.500 Internal Server Error– Unexpected errors. Transactions are rolled back and connections are closed safely in all cases.

