Skip to content
Syntakk
Platform Digital Product Passport QR code Pricing About
DA Contact us Check if you are covered
Syntakk
  • Platform
  • Digital Product Passport
  • QR code
  • Pricing
  • About
  • Dansk
  • Contact us
  • Check if you are covered

On this page

Search API (/ask) MCP server Text for agents Agent skill Limits Versioning Terms Platform API

Developers

Developers

Syntakk has no public platform API, but the content of the site can be searched and read by machines: a search API, an MCP server, llms.txt and a markdown version of every page. Everything is read-only, free and needs no login.

Search API: /ask

/ask answers questions about the EU Battery Regulation and digital battery passports by finding the best matching pages on syntakk.dk. It follows the NLWeb convention: a question goes in, a ranked list of pages with schema.org objects comes out. The OpenAPI 3.1 description is at /openapi.json.

ParameterDescription
queryRequired. Question or search words, Danish or English, at most 500 characters.
siteOptional filter: da, en, articles, pages, legal, optionally combined with a comma (en,articles). Default: everything.
prevEarlier questions in the conversation, comma-separated or a JSON array (at most 10). Echoed back unchanged.
limitNumber of results, 1 to 25. Default 10. Higher values are lowered to 25. num_results works as an alias.
streamingtrue answers with a text/event-stream. When omitted, the Accept header decides.
modeOnly list is implemented. summarize and generate are accepted but answered as list.
query_idYour own id, echoed back in the response. A deterministic one is made from the question when omitted.

Example: GET

curl "https://syntakk.dk/ask?query=when+is+the+battery+passport+mandatory&site=en&limit=3"

Example: POST

The body can be JSON or application/x-www-form-urlencoded. Parameters in the URL apply to fields missing from the body.

curl -X POST https://syntakk.dk/ask \
  -H "Content-Type: application/json" \
  -d '{"query": "when is the battery passport mandatory", "site": "en", "limit": 3}'

Response

200 with JSON. No matches gives result_count: 0 and an empty list, not an error. Append .md to a result's url to read the page as markdown.

{
  "query_id": "q_1b538d4b",
  "query": "when is the battery passport mandatory",
  "site": "en",
  "prev": [],
  "mode": "list",
  "filters": { "lang": "en", "type": null },
  "result_count": 1,
  "results": [
    {
      "url": "https://syntakk.dk/en/digital-battery-passport-2027",
      "name": "Digital battery passport 2027: is your company ready?",
      "site": "syntakk.dk",
      "score": 100,
      "description": "Mandatory data points in the battery passport ...",
      "lang": "en",
      "type": "article",
      "schema_object": { "@context": "https://schema.org", "@type": "Article", "...": "..." }
    }
  ]
}

Streaming

With streaming=true or Accept: text/event-stream the answer comes as server-sent events: one or more result messages with up to 5 results each, then one complete.

data: {"message_type":"result","query_id":"q_7c7607a6","content":[{"url":"https://syntakk.dk/qr-kode-til-batterier", ...}]}

data: {"message_type":"complete","query_id":"q_7c7607a6","query":"qr","result_count":1}

Errors

Errors are always JSON shaped like {"error": {"code", "message"}}. 400: missing_query, invalid_body, invalid_limit, invalid_mode, query_too_long, unsupported_version. 405: method_not_allowed (with Allow). 429: rate_limited (with Retry-After). Responses have open CORS, so the API can be called from a browser.

{ "error": { "code": "missing_query", "message": "The query parameter is required, e.g. /ask?query=what+are+importers+obligations" } }

MCP server: /mcp

The server at https://syntakk.dk/mcp speaks MCP over Streamable HTTP (JSON-RPC), is read-only and needs no login. Its tools are ask_site (the same search as /ask), search_docs and get_page, which fetches a page as markdown. The server card is at /.well-known/mcp/server-card.json.

Claude Code

claude mcp add --transport http syntakk https://syntakk.dk/mcp

Other clients

Most clients accept a configuration of this shape:

{
  "mcpServers": {
    "syntakk": {
      "type": "http",
      "url": "https://syntakk.dk/mcp"
    }
  }
}

Text for agents

  • /llms.txt: an overview of the site and when Syntakk is the answer. /llms-full.txt collects all page text in one file.
  • Markdown versions: add .md to a page URL (/platform.md, /en/platform.md), or send Accept: text/markdown. /content-index.json lists every page with title, language and last update.
  • /agents.md: a guide for AI agents, with forms, WebMCP tools and search.
  • /.well-known/api-catalog: API catalog following RFC 9727. /.well-known/ard.json: ARD manifest of the agent resources.

Agent skill

The syntakk-batteripas skill tells an agent when battery passports are relevant and when Syntakk can help. It is also published as a GitHub repository, WackyStudio/syntakk-agent-plugin, and installs with the skills tool:

npx skills add WackyStudio/syntakk-agent-plugin

Limits

AddressLimitWhen exceeded
/ask60 requests per minute per IP address429 with Retry-After: 60 and a JSON body
/mcp120 requests per minute per IP address429 with Retry-After: 60 and a JSON-RPC error

Every response from /ask (and /mcp) has rate limit headers following the IETF draft RateLimit header fields for HTTP: RateLimit-Policy: "default";q=60;w=60 (quota and window in seconds) and RateLimit: "default";r=59;t=60 (remaining requests and seconds until the window resets). The older, widely used RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset are sent too, and X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset carry the same values. Browsers can read the headers (Access-Control-Expose-Headers).

The numbers come from a counter in the function instance that answers, so they are approximate: several instances count separately. Netlify's own limit, which blocks at 60 requests, does not say how much of the window is left. When it answers 429, RateLimit-Remaining is 0, and Retry-After and RateLimit-Reset are the whole window (60 seconds). If you need all the content, use llms-full.txt or content-index.json instead of many single requests.

Versioning

The search API is at version 1, and info.version in the OpenAPI description follows semantic versioning. The URLs carry no version path. To pin a version, send the optional request header API-Version: 1. Without the header you get the current version, exactly as before. If the version is unknown, /ask answers 400 with the code unsupported_version. Every response has an API-Version header with the version that answered.

New optional parameters, new response fields and new error codes for new situations are not breaking changes. We announce a breaking change at least 6 months ahead, on this page and with the Deprecation (RFC 9745) and Sunset (RFC 8594) headers on responses for as long as the old version works.

Terms

The search API, the MCP server and the text files are free to use within the limits above. The content belongs to Syntakk ApS; credit the source with a link to the page you use. The content is guidance, not legal advice, and we do not guarantee that the services are available. Abuse may be blocked.

Platform API

The Syntakk platform itself has no publicly documented API. If you need to integrate with ERP, PIM or PLM systems, we are glad to talk it through: contact us.

Syntakk

The compliance platform for the EU Battery Regulation.

Platform Platform Digital Product Passport QR code Pricing
Resources Blog Are you covered? Battery check FAQ About API & developers
Company Contact Privacy policy Cookie policy Legal
© 2026 Syntakk ApS. All rights reserved. Denmark

Cookies

This website uses cookies

We use cookies to improve the user experience. Choose which cookies you want to allow. You can read more in our cookie policy here.