Onboarding
You want to call the xander API from your own application. This page explains which credentials you need, how you get them, what the first call looks like and whom to contact when something does not work.
Two credentials, two purposes
Working with xander involves two independent identities.
| Credential | What it is | What you use it for |
|---|---|---|
| Your portal login | Your work e-mail address, enabled by us for the xander Portal. You sign in with your Microsoft account or request a one-time login link by e-mail. | In the browser: trying the use cases we set up for you and viewing results. The API Reference and its Try-it forms work without login. |
| A Service Principal (Client ID and Client Secret) | A machine identity in our Entra ID tenant with the role Api.Use on the xander API. |
From your backend: obtaining a token (client credentials flow) and calling the xander API endpoints with it. |
The Service Principal belongs to your organisation, not to you personally. It is also the billing key: every call made with it is attributed to your organisation. If you need separate credentials for several applications, talk to your xander contact.
How you receive your credentials
We enable the portal login for your e-mail address. Then you sign in at Login with your Microsoft account; if that is not yet enabled for your account, request a one-time login link there.
Client ID and Client Secret are handed over personally and separately by your xander contact at XWare Pulse, on a channel that works for you (encrypted message, vault link, video call). Treat the Client Secret like a production password from day one: into your secret manager, never into source control.
Your Service Principal points at our production environment. There is no separate sandbox or test environment because the API is stateless: every call, including testing and experimentation, is a real call and is billed normally. Be careful with loops, especially for transcription and document extraction, those are the most expensive calls.
First steps with your credentials
-
Get a token. Base URL, token endpoint and scope are listed in the
API Reference. The call against Entra ID looks like this:
The response containscurl -X POST "https://login.microsoftonline.com/$TENANT_ID/oauth2/v2.0/token" \ -d "grant_type=client_credentials" \ -d "client_id=$CLIENT_ID" \ -d "client_secret=$CLIENT_SECRET" \ -d "scope=api://$API_CLIENT_ID/.default"access_tokenandexpires_in(about 60 minutes). Cache the token and fetch a new one shortly before it expires. -
Check the connection.
GET /healthwith the token in theAuthorizationheader. A200confirms token, role and network path in one step. -
First real call.
POST /prompt/informationextractionwith a short text is the cheapest entry point. Which prompt template (promptname) and which project (projectId) you use is part of your onboarding package. - Try it in the reference. Every endpoint in the API Reference has a Try-it form: enter Client ID and Client Secret and send the request straight from the browser. The call runs server-side, the secret is not stored.
- Read the workflows. The Cookbook shows the workflows our customers run in production: voice note to report with catalogue reduction, document extraction, long recordings asynchronously.
-
Know the limits. Limits & Quotas
explains how the API tells you about rate limit and quota, and how your client should react to
429.
Prompt templates: your code does not send prompts
A point that surprises many developers: your application does not send prompt text to xander.
We maintain the prompt templates server-side in your project, your code only references them via
options.promptIdentification with projectId and promptname.
This lets us improve prompts without you having to redeploy, and keeps provider, model and
fallback a concern of the platform.
Client Secret: lifetime and rotation
A Client Secret is valid for 365 days. Rotation runs through your xander contact:
you receive a new secret in good time, switch your application over and discard the old one.
After the expiry date the API answers 401 until the new secret is in use.
What if my secret is compromised?
Contact your xander contact or xander@xwr.ch immediately. We revoke the affected secret and issue a new one. Do not wait for the regular rotation.
Getting help
For anything not covered here (contractual questions, compliance documentation, additional developers from your organisation, additional Service Principals, higher limits), your xander contact at XWare Pulse is the right address. If you do not have one to hand, xander@xwr.ch reaches our central inbox and we route you to the right person.