Item templates (brief)
const url = 'https://your-tenant.api.l2nx.app/gamedata/v1/integration/item-templates?page=0&size=50';const options = { method: 'GET', headers: {'Server-Id': 'example', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://your-tenant.api.l2nx.app/gamedata/v1/integration/item-templates?page=0&size=50' \ --header 'Authorization: Bearer <token>' \ --header 'Server-Id: example'Paginated catalog of visible item templates for the scoped server.
Authenticate with the tenant API key as Authorization: Bearer nx_api_...
and send Server-Id; the tenant is the one the key belongs to.
The key needs the gamedata.item-templates:read scope.
Filters:
search— Matches the numeric item id (exact, when the term parses as an int) or a case-insensitive substring of the localized name (ru/en/uk). From 1 character; blank is ignored.id— Exact item-template id, repeatable. Max 200 per request.
Sort: id; default id,ASC
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Matches the numeric item id (exact, when the term parses as an int) or a case-insensitive substring of the localized name (ru/en/uk). From 1 character; blank is ignored.
Exact item-template id, repeatable. Max 200 per request.
Zero-based page index (0..N)
The size of the page to be returned
Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
Header Parameters
Section titled “Header Parameters”Game-server id (UUID) — scopes the data query.
Responses
Section titled “Responses”Item-template page
object
object
Locale code -> text map. Supported keys: ru, en, uk, es; any of them may be absent on a given row.
object
Example
{ "en": "Adena", "es": "Adena", "ru": "Адена", "uk": "Адена"}Locale code -> text map. Supported keys: ru, en, uk, es; any of them may be absent on a given row.
object
Example
{ "en": "Adena", "es": "Adena", "ru": "Адена", "uk": "Адена"}object
Missing scope headers, server id outside the tenant, or too many ids
object
object
Example generated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Missing / invalid API key
object
object
Example generated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Key revoked or expired (API_KEY_REVOKED, API_KEY_EXPIRED), tenant disabled or mismatched, or the key lacks the gamedata.item-templates:read scope (INSUFFICIENT_SCOPE)
object
object
Example generated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Not Found
object
object
Example generated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Conflict
object
object
Example generated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Per-key rate limit exceeded; Retry-After says when to retry
object
object
Example generated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Internal Server Error
object
object
Example generated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}