The NeuronSearchLab Core API is the data-plane surface for catalog ingestion, event ingestion, and recommendation serving.Documentation Index
Fetch the complete documentation index at: https://docs.neuronsearchlab.com/llms.txt
Use this file to discover all available pages before exploring further.
Use this API when your application backend needs to create catalog items, submit user events, or fetch recommendations for your app experience. If you are looking to automate console data, tenant configuration, training, analytics, billing, or other control-plane workflows, use the Platform API instead.
Core API vs Platform API
The Core API belongs behind your own server-side boundary. Do not expose OAuth client credentials, access tokens, or direct Core API calls from a browser or mobile client.Base URLs
Authentication
Protected endpoints require a Bearer token:| Scope | Access |
|---|---|
neuronsearchlab-api/read | Read recommendations, items, and events |
neuronsearchlab-api/write | Create/update/delete items and submit events |
The slash-delimited scope names are the current Cognito-issued values. Client libraries should treat the full string as opaque and split scopes only on spaces.
Object Model
Every resource response includes a read-onlyobject discriminator.
| Object | Example ID | Description |
|---|---|---|
item | itm_7f3a2c9e | Catalog item available for recommendation |
event | evt_12345 | User interaction event |
recommendation | rec_itm_7f3a2c9e | Ranked recommendation result |
list | n/a | Cursor-paginated list envelope |
101, when a recommendation request should use one. The Core API also accepts legacy ctx_ aliases such as ctx_101 and normalizes them in recommendation explanations and served-recommendation telemetry.
Timestamps
Datetime fields are Unix timestamps in integer seconds.- Use
createdfor resource creation time. - Use
<verb>ed_atfor action-derived timestamps such asoccurred_at. - Use future-tense fields such as
expires_atfor future scheduled times. - Do not use
created_atin Core API payloads.
Pagination
List endpoints use cursor-style pagination:limit defaults to 20 and is capped at 100.
Errors
Errors use a consistent JSON envelope:400 for invalid requests, 401 for missing or invalid credentials, 403 for insufficient scope, 404 for missing resources, 409 for create conflicts, 429 for rate limits, and 500 for unexpected server errors.
Endpoints
| Method | Path | Scope |
|---|---|---|
POST | /v1/items | neuronsearchlab-api/write |
GET | /v1/items | neuronsearchlab-api/read |
GET | /v1/items/{item_id} | neuronsearchlab-api/read |
POST | /v1/items/{item_id} | neuronsearchlab-api/write |
PATCH | /v1/items/{item_id} | neuronsearchlab-api/write |
DELETE | /v1/items/{item_id} | neuronsearchlab-api/write |
POST | /v1/events | neuronsearchlab-api/write |
GET | /v1/events | neuronsearchlab-api/read |
GET | /v1/events/{event_id} | neuronsearchlab-api/read |
GET | /v1/recommendations | neuronsearchlab-api/read |
OPTIONS preflight with standard CORS headers.
