N1 Nex1on

Page

Integrations: API keys and webhooks

If the site needs to talk to an outside program, such as a warehouse system, accounting or your own bot, there are two channels in System → Integrations.

API keys

System → Integrations → API access keys. A key gives an outside program access to the site on your behalf, but only to what you tick. A key cannot do more than you can: if you lose a permission, the key loses it too.

  1. Click add, give the key a name for yourself (“warehouse”) and tick the permissions.
  2. Copy the key right away: it is shown once, the site stores only its fingerprint and cannot show the key again. If you lose it, issue a new one.
  3. The program sends the key in the header Authorization: Bearer nx_… to addresses under /api/v1.
  4. You can revoke a key at any minute: the program loses access with it immediately.

All the endpoints available to a key are described in an OpenAPI file: the “Download API description” button gives it to you for Postman and client generators. The file contains only the endpoints your permissions cover; the keys themselves are not in it. The program can fetch the same file on its own: GET /api/v1/openapi.json with a key. The /api/v1/me endpoint answers whose key this is, until when it is valid and which permissions it has right now.

Webhooks

System → Integrations → Notifications to other services (webhooks). When something happens on the site, such as an order being paid or an account being created, the site reports it by itself to the address you specify. Messages go through a queue and are repeated if the other end did not answer; next to a webhook you can see the time of the last delivery and the number of failures in a row.

  • The address must be external and complete, with https:// or http://. The site does not call addresses inside the server or the local network; this keeps a webhook from becoming a way into your network.
  • Every message is signed: the X-Nex1on-Signature header is a sha256 signature of the message body, computed with your “signing secret”. The receiving side computes the same signature and so knows the message came from your site.
  • “Issue a new secret” replaces the previous one; the receiving side must be reconfigured afterwards.
  • The list of events depends on the enabled modules: no module, no events from it.

Autoposting of posts

When a post comes out, the site can announce it in social networks by itself.

  • Telegram. The “Telegram” module (Promotion → Telegram; it is part of the free edition). The order is: on the “Connection” tab paste the “Bot token” (given by @BotFather; after saving it is not shown and is stored encrypted), check the bot and switch on “Publish to Telegram”; on the “Recipients” tab add a channel or group (a public channel is @name, a private one or a group is its chat number, which starts with -100; the bot must be an administrator there with the right to publish); on the “Rules” tab choose what goes where: news, films and series, events or shop products, filtered by section, category and language, with your own post template (placeholders {title}, {excerpt}, {url}, {category}, {site}, {language}). Only entries that came out after the rule was created are sent: switching a rule on does not pour the archive into the channel. Any entry can also be sent by hand: its form (news, films and series, events, products) has a “Telegram” block with the state by rules, a link to the post and the button “Publish to Telegram now” (it needs the Telegram right; an entry hidden from visitors is not published). A post is edited or removed together with the entry, a failed send is retried by itself, and the “Log” shows every send with the buttons “Retry” and “Skip”. The token and the recipients (chat and topic) are changed only by the site owner; an administrator manages rules and switches a recipient on. Without a licence key you can have two recipients and five rules. The former “Autoposting” in News moved here: the token, chat and rules were carried over by themselves, and News no longer sends to Telegram.
  • To other networks. Through webhooks: when a post comes out, the site sends the event news.published (fields id, title, excerpt, url, category, image, published_at, site) to the address set in the autoposting settings of News. The receiving side (your bot or a service like Zapier or Make) publishes the post wherever needed.

Importing news from feeds and APIs

News → Import. The site asks the sources by itself — an RSS or Atom feed, an API (JSON) or an ordinary website page — and brings new entries as drafts: nothing is published on its own, you open the draft in “All news”, check it and publish. The draft has cleaned text without pictures or markup and a link to the source at the end. Rules are written one per line (skip, add a tag, pick a category), the “Check: what will arrive” button shows the entries before anything is saved, and “Log” shows how each run ended. A website page is read only if its robots.txt allows it, and the full text is taken only on your confirmation of the rights.

  • A source. “Kind of source”: “RSS or Atom feed” or “API (JSON)”. For a feed you need the address (public sites only, http or https), a name, a category and a language for the new entries, “How often to ask, minutes” and “New items to take at a time” (1–30). For an API you also give the paths to the fields, separated by dots (data.items.0.title): where the list of entries is, the title, the link (both required), the text, the date and the entry number; if an “API key” is needed, it goes in a header whose name you set, is stored encrypted and is not shown after saving.
  • Rules. In the “Rules” field, one rule per line, no regular expressions: skip if title has: casino, bets (skip), tag News if text has: elections (add a tag), category sport if title has: football (a category — its address or number). Conditions: title, text or url with has, has all, lacks; text shorter than N and longer than N; older than N days; domain is; up to three conditions joined by and. Everything after # is a note.
  • “Check: what would arrive”. Shows the first entries of the source and what the rules will do with them (comes as a draft, skipped, already taken) — saving nothing. The API key typed in the form is used for this one request only.
  • The source “Log”: when it was visited, the result, how many were seen, brought and skipped, with a clear reason for a failure. After three identical failures in a row the source pauses itself; fix the settings and turn it on again (“Turn on”).
  • Buttons of a source: “Ask now”, “Change”, “Pause” or “Turn on”, “Remove” (drafts already brought stay).

News: “Reading now”, descriptions with AI, report by authors

  • “Reading now”. Under the post title — how many people are reading it right now (only the number, no names). It is turned on by the setting “Show Reading now” in the news settings; in a tag theme there is the tag {news_presence}.
  • Descriptions with AI. News → Descriptions with AI lists the posts and categories that have no description for search engines. “Suggest” (or “Suggest for all rows”) asks the assistant for a short text; nothing is saved until you press “Accept”, and “Reject” throws the suggestion away. Only the title and the beginning of the text are sent, and only of what a guest can see. If the assistant is off, the page has the link “Open the AI settings”.
  • Author report. News → Overview → Full author report: for the chosen dates (no more than 366 days), per author — posts, views, the average per post, approved comments and the average reader rating; “Download CSV” saves the table. It needs the right to edit news.
  • Quick view. The setting “Quick view” (off): a post from a list opens in a window without reloading the page, the address bar shows the post address, “Back” and Esc close the window.
  • A button in the text. In text written by staff, the line [button=address]Caption[/button] is drawn as a button (the address works like a link’s); in a letter it stays an ordinary link.
  • Post presets. The “Write” button in news offers “What to write?”: a “Blank entry” or one of the presets. A preset is a frame: a sample title, text, category, tags, extra fields and options; the “Use” button opens the form already filled in from it, and the entry appears only when you save it. Make your own preset from any entry with the “Save as preset” button under the form.
  • AI assistant: tone and length of the answer. The AI settings have “Reply length limit, tokens” (0 means as set for each assistant command) and “Reply style, 0–100”: a low number is plainer and more exact (editing, translation), a high one is freer; usually 40.

Sign-in for other sites

Integrations → Sign in with this site (off by default) makes your site a “sign-in provider” (OpenID Connect): a person signs in with their account on another of your sites without a new password. You need the site address with https://, the site key and the openssl extension; turning it on asks for the password once more. A connected site is added with the “Add a client” button with exact return addresses; client_secret is shown once, if you lose it — “New secret”. The other site gets not a password but a signed confirmation and (only with the person’s consent) the name, nickname, language, picture and confirmed email. A person withdraws the permission in their account (“Connected sites”), you do it for a particular site (“Withdraw from everyone”). Accounts with panel access are not let in by default. The full description of the flow is on the documentation page “Sign-in for other sites (OpenID Connect)”. Before turning it on, add a paragraph about the data transfer to the privacy policy.

Updated 17.11.2026

Share: Telegram WhatsApp