Cookbook

The API Reference describes every endpoint on its own. The Cookbook shows how the endpoints combine into the workflows our customers run in production. Each recipe walks through the whole sequence: when it fits, what you send, how you process the result and where the pitfalls are.

How to read the recipes

Every recipe has the same structure: the use case in one sentence, a sequence diagram with all calls, then step by step with concrete curl examples and payloads. Where xander makes a deliberate design decision that shapes your integration (for example: xander is stateless and does not know your master data), the recipe explains why and how to deal with it.

Recipes

Conventions used in the recipes

  • Examples use curl with placeholders such as $ACCESS_TOKEN and $XANDER_BASE_URL. The base URL is listed in the API Reference.
  • JSON property names are written in camelCase, as in the reference; the API also accepts PascalCase. Field names in your own output schema are yours to choose, in German, French or Italian too, as long as prompt template and schema agree.
  • The recipes assume you have completed the Onboarding and have a working Service Principal.
  • All examples run against the same production environment as your Service Principal. There is no sandbox; trying the recipes produces real, billed calls.

Prompt templates and your xander contact

Your application sends no prompt text to xander. We set up the prompt templates server-side in your project, your code references them via promptname in options.promptIdentification. This lets us improve prompts without you redeploying.

The promptname values in the recipes are examples. If you want to use a recipe in production, have the matching templates set up by your xander contact first; that is also where you agree on the queryParameter names and the catalogue format.