Skip to documentation

SYNDERESIS / API START

Hosted customer API · Contract reviewed 7 November 2026

Build with Synderesis

On this page

Synderesis is an open-weight model retrained to align with Catholic values. Bring a clear Catholic purpose to the applications you build, with an explicit API contract and control over how you integrate.

This guide covers the hosted customer API: answers, chat completions, source search, model discovery, usage and profile reads. Product aliases identify an API service; their serving configuration can vary. See Models and serving when your application requires a particular retrained checkpoint.

Start here

Your task Use
Ask a question with official-source retrieval Answers
Keep a conversation or implement function calling Chat completions with synderesis-spark
Find source passages for your own application Source search
Parse a streamed chat response Streaming and tools
Estimate usage and plan capacity Limits and billing
Move an existing integration Migration and FAQs

API base URL: https://www.synderesis.eu/v1

Requests and responses use JSON unless a documented chat request enables server-sent events. Use HTTPS from your backend. Keep the API key there. Browser cross-origin requests are not enabled.

Building a product for your own users? See API and white-label partners.

Before your first request

  1. Create an account and sign in.
  2. In Account, open the API keys section and create a customer key.
  3. Copy the key immediately. Its full value is shown once.
  4. Put it in your server's secret manager or a local environment variable.
  5. Check your account's free allocation or subscription and credit before sending production traffic.

All keys on the account share allowance and usage. A separate key gives attribution and revocation control; it does not create additional quota.

Set your environment

These examples use SYNDERESIS_API_KEY as a client-side environment-variable convention. It is not a request parameter.

macOS or Linux:

printf "Synderesis API key: "
read -rs SYNDERESIS_API_KEY
export SYNDERESIS_API_KEY
printf '\n'

PowerShell 7:

$env:SYNDERESIS_API_KEY = Read-Host -MaskInput "Synderesis API key"

For automation, inject the variable through your deployment's secret manager. Avoid typing a real key directly into commands that enter shell history.

Make your first answer request

curl --fail-with-body https://www.synderesis.eu/v1/answers \
  -H "Authorization: Bearer $SYNDERESIS_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{"model":"spark","question":"Explain human dignity in two sentences.","grounding":true,"max_tokens":1024}'

Read the answer field. The endpoint returns source and usage metadata alongside it. Generated text and retrieved passages vary between requests.

A minimal schematic result is:

{
  "object": "catholic_ai.answer",
  "model": "spark",
  "customer_id": "example-account",
  "answer": "Illustrative answer text.",
  "structured_answer": null,
  "structured_answer_validation": "unvalidated_native_gateway",
  "grounding_status": "retrieved_sources_only",
  "source_refs": [],
  "retrieved_sources": [],
  "usage": {
    "prompt_tokens": 120,
    "completion_tokens": 30,
    "total_tokens": 150,
    "usage_event_id": 123
  },
  "retrieval_selection": {"status": "off"}
}

This is a schema illustration, not a captured production generation. The reference explains which fields vary. Retrieved sources are supporting material, not a guarantee that every sentence is validated against them.

Try a conversational request

Use the explicit synderesis-spark alias for the transcript-preserving chat interface:

curl --fail-with-body https://www.synderesis.eu/v1/chat/completions \
  -H "Authorization: Bearer $SYNDERESIS_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{"model":"synderesis-spark","messages":[{"role":"user","content":"Explain human dignity in two sentences."}],"max_completion_tokens":1024}'

Read choices[0].message.content. To continue, send the relevant conversation messages again; this endpoint does not create a stored server conversation.

The aliases spark and synderesis-spark select different chat handling paths. Check the alias table before migrating.

How requests are routed

Omitting model, or sending synderesis-auto or auto, selects automatic routing on POST /v1/answers and POST /v1/chat/completions. The response model is synderesis-auto, with a routing object: mode is spark or pro, status is selected or fallback, and effort is the effort used. Only a selected Spark or Pro decision is followed. If routing is off, times out, or returns anything else, including a Labora choice, the request is served as Spark at low effort. Router tokens are included in usage when a router call runs. Explicit synderesis-spark, spark, synderesis-pro and pro keep their own routes and do not call the router; synderesis-pro is the same choice as pro.

POST /v1/answers takes a question of at most 16000 characters. max_tokens defaults to 1024 and is clamped to 1–4096. The request body limit is 65536 bytes. structured_answer is null, and retrieved passages are source_refs and retrieved_sources. POST /v1/answers ignores stream and tools.

POST /v1/chat/completions has a body limit of 921600 bytes. A request takes the tool path when model is synderesis-spark, with or without tools, or when model is spark, pro or synderesis-pro and the request carries tools or a tool transcript. Every other chat completion, including automatic selection, takes the answer path. On the answer path, omitting max_tokens uses 4096, values clamp to 1–4096, and stream set to true is HTTP 400 unsupported_parameter. Automatic selection rejects tools and tool results with HTTP 400 unsupported_parameter. Any other model id sent with tools, for example labora, is HTTP 400 unsupported_model.

On the tool path, stream: true returns the finished answer as server-sent events after validation and usage recording. That is buffered delivery, not live token streaming. The tool path allows up to 128 function definitions, 255 messages, and 1–32768 completion tokens (8192 if neither max_completion_tokens nor max_tokens is sent). A completion limit outside that range is HTTP 400 invalid_request.

Check your connection

curl --fail-with-body https://www.synderesis.eu/v1/models \
  -H "Authorization: Bearer $SYNDERESIS_API_KEY"

Model discovery requires authentication. For a credential-free readiness check, use GET https://www.synderesis.eu/health. A healthy response is {"status":"ok","service":"synderesis-api"}; this does not prove that your account can generate an answer.

If the first call fails

A 401 response means authentication failed. Check that the variable is available to the process and that you send exactly one key header. A 400 can indicate a request or model problem. A 402 can identify an exhausted free allocation or insufficient account credit. A 429 quota response requires an account/plan remedy.

See Errors and retries for the complete recovery table. Start with the language examples when integrating into an application.

Documentation scope

The reference describes the native hosted implementation reviewed on 6 November 2026 and updated against the source on 7 November 2026. Authenticated production checks confirmed model discovery, account usage, answers, chat, buffered SSE, function proposals/continuation, Pro transcript chat and source search on the matching deployed build. Selected SDK methods were additionally checked against the real handlers with synthetic dependencies. These checks verify the exercised integration contract, not a general model-quality or throughput guarantee. Automatic selection, the synderesis-pro id and shared inference-only keys were added later on 6 November 2026, after those checks; their description here was reviewed against the source code, not confirmed by a live call.

Account/session, browser workspace, device, desktop, Code and MCP surfaces have separate authentication and application contracts. They are not automatically interchangeable with the customer endpoints documented here.

Quick reference

The answer body limit is 65536 bytes; the limit is 921600 bytes for chat completions. Use the exact endpoint, method and model selector from the reference.

  • 400 unsupported_parameter: on chat completions, remove tools from an automatic-selection request or stream from an answer-path request.
  • 404 not_found: check the path.
  • 405 method_not_allowed: check the HTTP method; browser OPTIONS requests are not supported.
  • 401 unauthorized: check the customer key and send exactly one credential header.

Read this guide as Markdown