Integrations and API tokens

Use API tokens to read published content from your workspace.

What is in Integrations

Open Settings → Integrations. The area has two tabs: Connectors and API Tokens.

  • Connectors is where direct publishing connectors live. Choose a connector card to open its setup flow: WordPress sites can be connected by approving Narranta inside WordPress or by pasting an Application Password, webhooks can be pointed at an endpoint you control, and a Google account can be connected to import Docs as drafts or send articles to a Google Doc.
  • API Tokens is available now. Use it when another system needs to read your published content over HTTP.

Google Docs

  1. Open Settings → Integrations → Connectors and choose Google Docs.
  2. Choose Connect Google account and approve the requested Drive access.
  3. Choose Choose a Google Doc and pick the document in Google Picker. Narranta imports it as a draft you can edit.
  4. To go the other way, open an article and choose Send next to the Google Docs channel. The first send creates a Google Doc; later sends update the same document. If the Doc was edited in Google Docs, tick Replace the Google Doc… before sending to overwrite it.

The Google connection only requests access to documents you pick or Narranta creates. You can revoke the connection from your Google account, or choose Disconnect in Narranta, at any time.

Zapier

Send published articles to Zapier with the Webhook connector, or read published articles from Zapier with an API token.

  1. In Zapier, add Webhooks by Zapier → Catch Hook and copy the hook URL.
  2. In Narranta, open Settings → Integrations → Connectors → Webhook, paste the URL, save, and turn Auto-push on.
  3. Publish an article. The Zap receives the article title, summary, HTML, published date and public URL.

To read published content in Zapier, create a token under API Tokens and call GET /api/v1/blog/articles with an Authorization: Bearer header.

Create an API token

  1. Open Settings → Integrations → API Tokens.
  2. Enter a descriptive name, for example the system that will use it.
  3. Choose Generate Token.
  4. Copy the token immediately. It is shown only once and cannot be retrieved later.

Send the token with every request:

Authorization: Bearer YOUR_TOKEN

Available endpoints

Endpoint Returns
GET /api/v1/blog/articles Published articles for the workspace.
GET /api/v1/blog/articles/{slug} A single published article.
GET /api/v1/blog/categories The category tree.
GET /api/v1/blog/sitemap Sitemap data for the published site.

Only published articles are returned. Drafts, articles in review, and trashed articles are excluded.

Revoke a token

  1. Find the token in the Active Tokens list.
  2. Choose revoke and confirm.

Revocation takes effect immediately. Any system still using that token starts receiving errors, so update the integration first if it is in production.

Feeds and sitemap

You do not need a token to read the public site. Narranta publishes a sitemap at /sitemap.xml, a robots file at /robots.txt, and an article feed search at /articles/feeds. These follow the same publishing rules as the public pages.

Security: Treat a token like a password. Do not put it in client-side code, a public repository, or screenshots, and revoke tokens you no longer use.

Next steps

Ready to try it in your workspace?

Start free, or contact support if something in this guide does not match what you see.