API Reference

All endpoints of the xander API with fields, types, examples and responses. The page is generated from the platform's OpenAPI description and therefore shows what the API actually speaks. Every endpoint has a Try it form: enter the Client ID and Client Secret of your Service Principal and the portal makes the call server-side; the secret is used for that one request and never stored. How you get credentials is explained in the Onboarding; complete workflows are in the Cookbook.

Connection and token

Base URLprovided by your xander contact
Token endpointhttps://login.microsoftonline.com/<tenant>/oauth2/v2.0/token
Scopeapi://<api-client-id>/.default
Grantclient_credentials with Client ID and Client Secret of your Service Principal
HeadersAuthorization: Bearer <access_token>, for JSON additionally Content-Type: application/json

The token is valid for about 60 minutes and carries the role Api.Use. Without a valid token the API answers 401. JSON property names are written in camelCase; the API also accepts PascalCase. There is no version prefix in the path and a single environment: every call is billed.

Overview

EndpointPurpose
Uploading files
POST /audiostore/upload Upload an audio file
POST /pdfstore/upload Upload a PDF
POST /docstore/upload Upload a Word document
POST /imagestore/upload Upload an image
Transcription
POST /prompt/audioTranscription Transcribe short audio synchronously
POST /prompt/audioTranscription-large Transcribe long audio synchronously
POST /prompt-async/audioTranscription-large Transcribe long audio asynchronously
GET /prompt-async/audioTranscription-large/jobs/{jobId} Poll a transcription job
Information extraction from text
POST /prompt/informationextraction Extract information from text
POST /prompt-async/informationextraction Extract information asynchronously
GET /prompt-async/informationextraction/jobs/{jobId} Poll an extraction job
POST /prompt/informationextraction-structured Extract structured information from text
POST /prompt-async/informationextraction-structured Extract structured information asynchronously
GET /prompt-async/informationextraction-structured/jobs/{jobId} Poll a structured extraction job
Information extraction from documents
POST /prompt/pdf-informationextraction-structured Extract structured information from PDF or Word
POST /prompt/pdf-informationextraction Extract information from PDF or Word
Operations
GET /health Health check

Uploading files

Upload audio, PDF, Word and images once and reference them by ID afterwards. Saves bandwidth and allows several extractions of the same file.


POST /audiostore/upload

Upload an audio file. Uploads an audio file. Use the ID in audioInput.audioId of the transcription endpoints instead of sending the file as base64 in every call.

Request (multipart/form-data)

FieldTypeMeaning
audio file The audio file as a form field (multipart/form-data).

Responses

StatusMeaningBody
200 Success. Body is the file ID as text.
  • The response is the file ID as text. Uploaded files are kept only as long as subsequent calls need them.
Try it

POST /pdfstore/upload

Upload a PDF. Uploads a PDF. Use the ID in pdfInput.pdfId of the document endpoints, especially when you run several extractions on the same document with different schemas.

Request (multipart/form-data)

FieldTypeMeaning
pdf file The PDF file as a form field (multipart/form-data).

Responses

StatusMeaningBody
200 Success. Body is the file ID as text.
  • The response is the file ID as text. Uploaded files are kept only as long as subsequent calls need them.
Try it

POST /docstore/upload

Upload a Word document. Uploads a Word document (.docx). Use the ID in docInput.docId of the document endpoints or as the resourceId of a query parameter prefixed docx_. xander converts the document to PDF and presents it to the model as a PDF or as page images, depending on what the model supports.

Request (multipart/form-data)

FieldTypeMeaning
doc file The Word file (.docx) as a form field (multipart/form-data).

Responses

StatusMeaningBody
200 Success. Body is the file ID as text.
  • The response is the file ID as text. Uploaded files are kept only as long as subsequent calls need them.
Try it

POST /imagestore/upload

Upload an image. Uploads an image (PNG, JPEG, GIF, WebP). xander validates the file signature against the content type and rejects oversized files or too many pixels. Use the ID as the resourceId of a query parameter prefixed image_.

Request (multipart/form-data)

FieldTypeMeaning
image file The image file as a form field (multipart/form-data).

Responses

StatusMeaningBody
200 Success. Body is the file ID as text.
  • The response is the file ID as text. Uploaded files are kept only as long as subsequent calls need them.
Try it

Transcription

Speech to text. Short recordings synchronously, long recordings asynchronously with job polling.


POST /prompt/audioTranscription

Transcribe short audio synchronously. Transcribes short recordings (under 20 MB and under 20 minutes) in one call. For longer recordings use the asynchronous endpoint.

Request (application/json)

Type AudioTranscriptionRequest. Nested objects are listed under Data types.

FieldTypeMeaning
queryParameter list of QueryParameter Additional parameters for the prompt template. Which names the template expects is agreed with your xander contact.
options UserPromptOptions Prompt template, model options and metadata of the call.
audioInput AudioInput The recording: audioId from the upload or audioFile as base64.
transcriptionOptions TranscriptionOptions Language of the recording and target language of the transcript. Omitting it means German.

Example

{
  "audioInput": {
    "audioId": "7d41a0c9e5f24b0d9c1a3f6b2e8d4c01"
  },
  "options": {
    "promptIdentification": {
      "projectId": "your-project-id",
      "promptname": "developerportal/audio_transcription"
    },
    "sessionMetadata": {
      "useCaseName": "field-service-voice-intake",
      "useCaseSessionId": "ticket-2026-04-12-001"
    }
  },
  "transcriptionOptions": {
    "audioLanguage": {
      "languageCodeIso639": "de"
    },
    "targetLanguage": {
      "languageCodeIso639": "de"
    }
  }
}

Responses

StatusMeaningBody
200 Success, result in the body. TranscriptionResponse
  • Set transcriptionOptions.audioLanguage only if you know the language for sure; without it the default is German, with the value auto the provider detects the language itself. A wrong hint degrades every transcript.
  • Set options.sessionMetadata.useCaseSessionId to your own correlation ID and reuse it in every call of the same workflow. It is our correlation key for support requests.
Try it

POST /prompt/audioTranscription-large

Transcribe long audio synchronously. Transcribes long recordings by segmenting them internally. The call can take several minutes and holds the connection open the whole time. For long recordings we recommend the asynchronous endpoint.

Request (application/json)

Type AudioTranscriptionRequestLarge. Nested objects are listed under Data types.

FieldTypeMeaning
queryParameter list of QueryParameter Additional parameters for the prompt template. Which names the template expects is agreed with your xander contact.
options UserPromptOptions Prompt template, model options and metadata of the call.
audioInput AudioInput The recording: audioId from the upload or audioFile as base64.
transcriptionOptions TranscriptionOptions Language of the recording and target language of the transcript. Omitting it means German.
segmentDurationSeconds integer Length of the segments in seconds into which xander splits the recording before transcription. Proven range: 60 to 140.

Example

{
  "audioInput": {
    "audioId": "7d41a0c9e5f24b0d9c1a3f6b2e8d4c01"
  },
  "segmentDurationSeconds": 140,
  "options": {
    "promptIdentification": {
      "projectId": "your-project-id",
      "promptname": "developerportal/audio_transcription"
    },
    "sessionMetadata": {
      "useCaseName": "meeting-helper",
      "useCaseSessionId": "meeting-2026-04-12-001"
    }
  },
  "transcriptionOptions": {
    "audioLanguage": {
      "languageCodeIso639": "de"
    },
    "targetLanguage": {
      "languageCodeIso639": "de"
    }
  }
}

Responses

StatusMeaningBody
200 Success, result in the body. TranscriptionResponse
  • Every component on the network path (proxy, load balancer, your framework) has its own timeout. The asynchronous route avoids them all.
Try it

POST /prompt-async/audioTranscription-large

Transcribe long audio asynchronously. Starts a transcription job for long recordings and returns a job ID immediately. Poll the status endpoint for the result.

Request (application/json)

Type AudioTranscriptionRequestLarge. Nested objects are listed under Data types.

FieldTypeMeaning
queryParameter list of QueryParameter Additional parameters for the prompt template. Which names the template expects is agreed with your xander contact.
options UserPromptOptions Prompt template, model options and metadata of the call.
audioInput AudioInput The recording: audioId from the upload or audioFile as base64.
transcriptionOptions TranscriptionOptions Language of the recording and target language of the transcript. Omitting it means German.
segmentDurationSeconds integer Length of the segments in seconds into which xander splits the recording before transcription. Proven range: 60 to 140.

Example

{
  "audioInput": {
    "audioId": "7d41a0c9e5f24b0d9c1a3f6b2e8d4c01"
  },
  "segmentDurationSeconds": 140,
  "options": {
    "promptIdentification": {
      "projectId": "your-project-id",
      "promptname": "developerportal/audio_transcription"
    },
    "sessionMetadata": {
      "useCaseName": "meeting-helper",
      "useCaseSessionId": "meeting-2026-04-12-001"
    }
  },
  "transcriptionOptions": {
    "audioLanguage": {
      "languageCodeIso639": "de"
    },
    "targetLanguage": {
      "languageCodeIso639": "de"
    }
  }
}

Responses

StatusMeaningBody
202 Job accepted. Body { "jobId" }, Location header points at the status endpoint.
  • Responds 202 Accepted with { "jobId": "..." } and a Location header pointing at the status endpoint. Processing continues server-side even if your process dies.
  • Set options.sessionMetadata.useCaseSessionId to your own correlation ID and reuse it in every call of the same workflow. It is our correlation key for support requests.
Try it

GET /prompt-async/audioTranscription-large/jobs/{jobId}

Poll a transcription job. Returns the state of an asynchronous transcription job.

Responses

StatusMeaningBody
202 Job still running. Body { "jobId", "status" }.
200 Success, result in the body. TranscriptionResponse
404 Unknown job ID.
400 / 422 / 500 Job failed. Body { "error", "message" }.
  • While the job runs you get 202 Accepted with { "jobId", "status" }. Done means 200 OK with the result in the same shape as the synchronous endpoint. A failed job answers 400, 422 or 500 with { "error", "message" }; unknown IDs return 404.
Try it

Information extraction from text

Free text or structured JSON matching your schema, driven by the prompt template of your project.


POST /prompt/informationextraction

Extract information from text. Evaluates a text according to the instructions of the prompt template and returns the answer as free text (for example a summary or a report in Markdown).

Request (application/json)

Type InformationRequest. Nested objects are listed under Data types.

FieldTypeMeaning
queryParameter list of QueryParameter Additional parameters for the prompt template. Which names the template expects is agreed with your xander contact.
options UserPromptOptions Prompt template, model options and metadata of the call.
userQuery UserQuery The input text.

Example

{
  "userQuery": {
    "userQueryText": "Maintenance of HVAC unit completed. Replaced F7 filter, checked refrigerant pressure (4.2 bar), cleaned condenser coils, tightened belt tension on the air handler. No anomalies detected, system back in normal operation."
  },
  "options": {
    "promptIdentification": {
      "projectId": "your-project-id",
      "promptname": "developerportal/service_report"
    },
    "sessionMetadata": {
      "useCaseName": "field-service-voice-intake",
      "useCaseSessionId": "ticket-2026-04-12-001"
    }
  }
}

Responses

StatusMeaningBody
200 Success, result in the body. InformationExtractionResponse
  • xander passes userQuery.userQueryText to the template as the parameter user_query. That name is reserved and must not appear in queryParameter.
  • Set options.sessionMetadata.useCaseSessionId to your own correlation ID and reuse it in every call of the same workflow. It is our correlation key for support requests.
Try it

POST /prompt-async/informationextraction

Extract information asynchronously. Starts the free-text extraction as a job and returns a job ID immediately. Same request as the synchronous endpoint.

Request (application/json)

Type InformationRequest. Nested objects are listed under Data types.

FieldTypeMeaning
queryParameter list of QueryParameter Additional parameters for the prompt template. Which names the template expects is agreed with your xander contact.
options UserPromptOptions Prompt template, model options and metadata of the call.
userQuery UserQuery The input text.

Example

{
  "userQuery": {
    "userQueryText": "Maintenance of HVAC unit completed. Replaced F7 filter, checked refrigerant pressure (4.2 bar), cleaned condenser coils, tightened belt tension on the air handler. No anomalies detected, system back in normal operation."
  },
  "options": {
    "promptIdentification": {
      "projectId": "your-project-id",
      "promptname": "developerportal/service_report"
    },
    "sessionMetadata": {
      "useCaseName": "field-service-voice-intake",
      "useCaseSessionId": "ticket-2026-04-12-001"
    }
  }
}

Responses

StatusMeaningBody
202 Job accepted. Body { "jobId" }, Location header points at the status endpoint.
  • Responds 202 Accepted with { "jobId": "..." } and a Location header pointing at the status endpoint. Processing continues server-side even if your process dies.
Try it

GET /prompt-async/informationextraction/jobs/{jobId}

Poll an extraction job. Returns the state of an asynchronous free-text job.

Responses

StatusMeaningBody
202 Job still running. Body { "jobId", "status" }.
200 Success, result in the body. InformationExtractionResponse
404 Unknown job ID.
400 / 422 / 500 Job failed. Body { "error", "message" }.
  • While the job runs you get 202 Accepted with { "jobId", "status" }. Done means 200 OK with the result in the same shape as the synchronous endpoint. A failed job answers 400, 422 or 500 with { "error", "message" }; unknown IDs return 404.
Try it

POST /prompt/informationextraction-structured

Extract structured information from text. Evaluates a text according to the instructions of the prompt template and returns a JSON object that matches your schema in outputStructure.jsonSchemaDefinition.

Request (application/json)

Type InformationExtractionRequest. Nested objects are listed under Data types.

FieldTypeMeaning
queryParameter list of QueryParameter Additional parameters for the prompt template. Which names the template expects is agreed with your xander contact.
options UserPromptOptions Prompt template, model options and metadata of the call.
userQuery UserQuery The input text.
outputStructure OutputStructureDefinition Your target schema. Required on the structured endpoints.

Example

{
  "userQuery": {
    "userQueryText": "Arrived at customer site Mueller AG in Winterthur for scheduled maintenance of the HVAC rooftop unit, model Carrier 50XC. The facility manager reported intermittent cooling issues over the past two weeks especially during peak afternoon hours. Visual inspection shows the F7 intake filter is heavily clogged with dust and debris. Condenser coils have moderate fouling on the outdoor section. Checked refrigerant pressure reading 4.2 bar on the high side which is within normal range. Belt tension on the air handler is slightly loose measured 12mm deflection instead of the specified 8mm. Replaced the F7 filter with a new unit from stock. Cleaned the condenser coils using compressed air and coil cleaner solution. Adjusted the belt tension to 8mm deflection per manufacturer spec. System restarted and running normally discharge air temperature measured at 14 degrees Celsius which is within target range. Recommend scheduling a follow-up in 3 months for the next regular maintenance cycle. Also recommend replacing the V-belt at the next visit as it shows early signs of wear."
  },
  "options": {
    "promptIdentification": {
      "projectId": "your-project-id",
      "promptname": "developerportal/service_report_structured"
    },
    "sessionMetadata": {
      "useCaseName": "field-service-voice-intake",
      "useCaseSessionId": "ticket-2026-04-12-001"
    }
  },
  "outputStructure": {
    "jsonSchemaDefinition": "{\"type\":\"object\",\"properties\":{\"report\":{\"type\":\"object\",\"properties\":{\"issueDescription\":{\"type\":\"string\",\"description\":\"Summary of the reported issue or reason for the service visit\"},\"taskBackground\":{\"type\":\"string\",\"description\":\"Who requested the service, initial situation, customer and site context\"},\"findings\":{\"type\":\"object\",\"properties\":{\"visualInspection\":{\"type\":\"string\",\"description\":\"Observations from visual inspection of the equipment or site\"},\"measurements\":{\"type\":\"string\",\"description\":\"Technical measurements taken (pressure, temperature, voltage, deflection, etc.)\"}},\"additionalProperties\":false},\"assessment\":{\"type\":\"string\",\"description\":\"Professional assessment of root cause and overall equipment condition\"},\"workPerformed\":{\"type\":\"string\",\"description\":\"All actions taken: parts replaced, adjustments made, cleaning performed\"},\"nextSteps\":{\"type\":\"string\",\"description\":\"Recommended follow-up actions, next scheduled visit, parts to order\"}},\"required\":[\"issueDescription\",\"taskBackground\",\"workPerformed\"],\"additionalProperties\":false},\"accountabilityReport\":{\"type\":\"object\",\"description\":\"Quality checks performed by the AI on its own output\",\"properties\":{\"noHallucination\":{\"type\":\"boolean\",\"description\":\"Was only text from the transcript used in the report?\"},\"completeness\":{\"type\":\"boolean\",\"description\":\"Was the entire transcript accounted for in the report?\"},\"transcriptionCorrections\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"wrong\":{\"type\":\"string\"},\"corrected\":{\"type\":\"string\"}},\"required\":[\"wrong\",\"corrected\"],\"additionalProperties\":false},\"description\":\"List of transcription errors corrected\"},\"productNameCorrections\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"wrong\":{\"type\":\"string\"},\"corrected\":{\"type\":\"string\"}},\"required\":[\"wrong\",\"corrected\"],\"additionalProperties\":false},\"description\":\"Product/model/manufacturer names corrected due to misspelling\"},\"companyNameCorrections\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"wrong\":{\"type\":\"string\"},\"corrected\":{\"type\":\"string\"}},\"required\":[\"wrong\",\"corrected\"],\"additionalProperties\":false},\"description\":\"Company or site names corrected due to misspelling\"}},\"required\":[\"noHallucination\",\"completeness\"],\"additionalProperties\":false},\"reportImprovements\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Suggestions for improving the report technically or linguistically\"}},\"required\":[\"report\",\"accountabilityReport\"],\"additionalProperties\":false}"
  }
}

Responses

StatusMeaningBody
200 Success, result in the body. InformationExtractionStructuredResponse
  • The schema travels as a JSON string, not as an embedded object. additionalProperties: false and a description per field improve accuracy noticeably.
  • Set options.sessionMetadata.useCaseSessionId to your own correlation ID and reuse it in every call of the same workflow. It is our correlation key for support requests.
Try it

POST /prompt-async/informationextraction-structured

Extract structured information asynchronously. Starts the structured extraction as a job and returns a job ID immediately. Same request as the synchronous endpoint.

Request (application/json)

Type InformationExtractionRequest. Nested objects are listed under Data types.

FieldTypeMeaning
queryParameter list of QueryParameter Additional parameters for the prompt template. Which names the template expects is agreed with your xander contact.
options UserPromptOptions Prompt template, model options and metadata of the call.
userQuery UserQuery The input text.
outputStructure OutputStructureDefinition Your target schema. Required on the structured endpoints.

Example

{
  "userQuery": {
    "userQueryText": "Arrived at customer site Mueller AG in Winterthur for scheduled maintenance of the HVAC rooftop unit, model Carrier 50XC. The facility manager reported intermittent cooling issues over the past two weeks especially during peak afternoon hours. Visual inspection shows the F7 intake filter is heavily clogged with dust and debris. Condenser coils have moderate fouling on the outdoor section. Checked refrigerant pressure reading 4.2 bar on the high side which is within normal range. Belt tension on the air handler is slightly loose measured 12mm deflection instead of the specified 8mm. Replaced the F7 filter with a new unit from stock. Cleaned the condenser coils using compressed air and coil cleaner solution. Adjusted the belt tension to 8mm deflection per manufacturer spec. System restarted and running normally discharge air temperature measured at 14 degrees Celsius which is within target range. Recommend scheduling a follow-up in 3 months for the next regular maintenance cycle. Also recommend replacing the V-belt at the next visit as it shows early signs of wear."
  },
  "options": {
    "promptIdentification": {
      "projectId": "your-project-id",
      "promptname": "developerportal/service_report_structured"
    },
    "sessionMetadata": {
      "useCaseName": "field-service-voice-intake",
      "useCaseSessionId": "ticket-2026-04-12-001"
    }
  },
  "outputStructure": {
    "jsonSchemaDefinition": "{\"type\":\"object\",\"properties\":{\"report\":{\"type\":\"object\",\"properties\":{\"issueDescription\":{\"type\":\"string\",\"description\":\"Summary of the reported issue or reason for the service visit\"},\"taskBackground\":{\"type\":\"string\",\"description\":\"Who requested the service, initial situation, customer and site context\"},\"findings\":{\"type\":\"object\",\"properties\":{\"visualInspection\":{\"type\":\"string\",\"description\":\"Observations from visual inspection of the equipment or site\"},\"measurements\":{\"type\":\"string\",\"description\":\"Technical measurements taken (pressure, temperature, voltage, deflection, etc.)\"}},\"additionalProperties\":false},\"assessment\":{\"type\":\"string\",\"description\":\"Professional assessment of root cause and overall equipment condition\"},\"workPerformed\":{\"type\":\"string\",\"description\":\"All actions taken: parts replaced, adjustments made, cleaning performed\"},\"nextSteps\":{\"type\":\"string\",\"description\":\"Recommended follow-up actions, next scheduled visit, parts to order\"}},\"required\":[\"issueDescription\",\"taskBackground\",\"workPerformed\"],\"additionalProperties\":false},\"accountabilityReport\":{\"type\":\"object\",\"description\":\"Quality checks performed by the AI on its own output\",\"properties\":{\"noHallucination\":{\"type\":\"boolean\",\"description\":\"Was only text from the transcript used in the report?\"},\"completeness\":{\"type\":\"boolean\",\"description\":\"Was the entire transcript accounted for in the report?\"},\"transcriptionCorrections\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"wrong\":{\"type\":\"string\"},\"corrected\":{\"type\":\"string\"}},\"required\":[\"wrong\",\"corrected\"],\"additionalProperties\":false},\"description\":\"List of transcription errors corrected\"},\"productNameCorrections\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"wrong\":{\"type\":\"string\"},\"corrected\":{\"type\":\"string\"}},\"required\":[\"wrong\",\"corrected\"],\"additionalProperties\":false},\"description\":\"Product/model/manufacturer names corrected due to misspelling\"},\"companyNameCorrections\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"wrong\":{\"type\":\"string\"},\"corrected\":{\"type\":\"string\"}},\"required\":[\"wrong\",\"corrected\"],\"additionalProperties\":false},\"description\":\"Company or site names corrected due to misspelling\"}},\"required\":[\"noHallucination\",\"completeness\"],\"additionalProperties\":false},\"reportImprovements\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Suggestions for improving the report technically or linguistically\"}},\"required\":[\"report\",\"accountabilityReport\"],\"additionalProperties\":false}"
  }
}

Responses

StatusMeaningBody
202 Job accepted. Body { "jobId" }, Location header points at the status endpoint.
  • Responds 202 Accepted with { "jobId": "..." } and a Location header pointing at the status endpoint. Processing continues server-side even if your process dies.
Try it

GET /prompt-async/informationextraction-structured/jobs/{jobId}

Poll a structured extraction job. Returns the state of an asynchronous structured job.

Responses

StatusMeaningBody
202 Job still running. Body { "jobId", "status" }.
200 Success, result in the body. InformationExtractionStructuredResponse
404 Unknown job ID.
400 / 422 / 500 Job failed. Body { "error", "message" }.
  • While the job runs you get 202 Accepted with { "jobId", "status" }. Done means 200 OK with the result in the same shape as the synchronous endpoint. A failed job answers 400, 422 or 500 with { "error", "message" }; unknown IDs return 404.
Try it

Information extraction from documents

The same extraction for PDF and Word documents, inline as base64 or by ID from the upload.


POST /prompt/pdf-informationextraction-structured

Extract structured information from PDF or Word. Evaluates a PDF or Word document according to the prompt template and returns a JSON object matching your schema. The document comes inline as base64 (pdfInput.pdfFile, docInput.docFile) or by ID from the upload (pdfInput.pdfId, docInput.docId).

Request (application/json)

Type PdfExtractionRequest. Nested objects are listed under Data types.

FieldTypeMeaning
queryParameter list of QueryParameter Additional parameters for the prompt template. Which names the template expects is agreed with your xander contact.
options UserPromptOptions Prompt template, model options and metadata of the call.
pdfInput PdfInput The PDF: pdfId from the upload or pdfFile as base64.
docInput DocInput The Word document: docId from the upload or docFile as base64.
outputStructure OutputStructureDefinition Your target schema. Required on the structured endpoints.

Example

{
  "pdfInput": {
    "pdfFile": {
      "base64Content": "JVBERi0xLjAKMSAwIG9iajw8L1R5cGUvQ2F0YWxvZy9QYWdlcyAyIDAgUj4+ZW5kb2JqIDIgMCBvYmo8PC9UeXBlL1BhZ2VzL0tpZHNbMyAwIFJdL0NvdW50IDE+PmVuZG9iaiAzIDAgb2JqPDwvVHlwZS9QYWdlL01lZGlhQm94WzAgMCAzIDNdPj5lbmRvYmoKeHJlZgowIDQKMDAwMDAwMDAwMCA2NTUzNSBmCjAwMDAwMDAwMTAgMDAwMDAgbgowMDAwMDAwMDUzIDAwMDAwIG4KMDAwMDAwMDEwMSAwMDAwMCBuCnRyYWlsZXI8PC9TaXplIDQvUm9vdCAxIDAgUj4+CnN0YXJ0eHJlZgoxNDkKJUVPRg==",
      "fileName": "delivery-note.pdf"
    }
  },
  "queryParameter": [
    {
      "name": "UserInformationRequest",
      "value": "Extract supplier name, recipient name, delivery date, delivery note number, and all line items with article number, description, quantity and unit."
    }
  ],
  "outputStructure": {
    "jsonSchemaDefinition": "{\"type\":\"object\",\"properties\":{\"supplier\":{\"type\":\"string\"},\"recipient\":{\"type\":\"string\"},\"deliveryDate\":{\"type\":\"string\",\"format\":\"date\"},\"deliveryNoteNumber\":{\"type\":\"string\"},\"lineItems\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"articleNumber\":{\"type\":\"string\"},\"description\":{\"type\":\"string\"},\"quantity\":{\"type\":\"number\"},\"unit\":{\"type\":\"string\"}},\"required\":[\"description\",\"quantity\",\"unit\"]}}},\"required\":[\"supplier\",\"recipient\",\"deliveryDate\",\"lineItems\"]}"
  },
  "options": {
    "promptIdentification": {
      "projectId": "your-project-id",
      "promptname": "document-extraction/delivery_note"
    },
    "sessionMetadata": {
      "useCaseName": "pdf-document-extraction",
      "useCaseSessionId": "doc-2026-04-12-001"
    }
  }
}

Responses

StatusMeaningBody
200 Success, result in the body. InformationExtractionStructuredResponse
  • A schema with few, well-described fields yields better results than one with fifty. Evaluate long documents section by section in several calls.
  • Set options.sessionMetadata.useCaseSessionId to your own correlation ID and reuse it in every call of the same workflow. It is our correlation key for support requests.
Try it

POST /prompt/pdf-informationextraction

Extract information from PDF or Word. Like the structured document endpoint, but without a schema: the template's answer comes back as free text. Same inputs, same template.

Request (application/json)

Type PdfInformationRequest. Nested objects are listed under Data types.

FieldTypeMeaning
queryParameter list of QueryParameter Additional parameters for the prompt template. Which names the template expects is agreed with your xander contact.
options UserPromptOptions Prompt template, model options and metadata of the call.
pdfInput PdfInput The PDF: pdfId from the upload or pdfFile as base64.
docInput DocInput The Word document: docId from the upload or docFile as base64.

Example

{
  "queryParameter": [
    {
      "name": "…",
      "value": "…",
      "resourceId": "…",
      "fileName": "…"
    }
  ],
  "options": {
    "promptIdentification": {
      "projectId": null,
      "promptname": null,
      "tag": null
    },
    "gptOptions": {
      "model": null,
      "gptService": null,
      "gptProvider": null,
      "gptProviderConfigId": null
    },
    "sessionMetadata": {
      "useCaseSessionId": null,
      "useCaseName": null,
      "project": null,
      "customer": null,
      "runOrigin": null
    }
  },
  "pdfInput": {
    "pdfFile": {
      "base64Content": null,
      "fileName": null
    },
    "pdfId": "…"
  },
  "docInput": {
    "docFile": {
      "base64Content": null,
      "fileName": null,
      "contentType": null
    },
    "docId": "…"
  }
}

Responses

StatusMeaningBody
200 Success, result in the body. InformationExtractionResponse
  • Set options.sessionMetadata.useCaseSessionId to your own correlation ID and reuse it in every call of the same workflow. It is our correlation key for support requests.
Try it

Operations

Availability of the API and its dependencies.


GET /health

Health check. State of the API and its dependencies plus the current utilisation of the processing pool. Use it to verify your connection and as the first call after obtaining a token.

Responses

StatusMeaningBody
200 Success, result in the body. OverallHealth
Try it

Error responses

Errors come as JSON with error and message. The most important cases:

StatusCauseWhat to do
400Request incomplete or invalid, for example neither audioId nor audioFile set, GET with body, multipart without boundary.Fix the request. Do not retry, the answer stays the same.
401Token missing, expired or without the role Api.Use.Get a new token, check Client ID and secret.
404Unknown file or job ID.Check the ID; uploaded files are not kept indefinitely.
415POST without application/json or multipart/form-data.Set the Content-Type.
422Input not processable, for example an audio without a recognisable format.Check and convert the file.
429Rate limit or concurrency exceeded.Wait for Retry-After, then retry. See Limits & Quotas.
500Processing error.Report it to your xander contact with the time and the useCaseSessionId.

Data types

All objects referenced by requests and responses. Fields are optional unless the endpoint says otherwise.


AudioTranscriptionRequest

Request of the synchronous transcription of short recordings.

FieldTypeMeaning
queryParameter list of QueryParameter Additional parameters for the prompt template. Which names the template expects is agreed with your xander contact.
options UserPromptOptions Prompt template, model options and metadata of the call.
audioInput AudioInput The recording: audioId from the upload or audioFile as base64.
transcriptionOptions TranscriptionOptions Language of the recording and target language of the transcript. Omitting it means German.

QueryParameter

A named parameter for the prompt template: text in the value field, or an uploaded file via resourceId.

FieldTypeMeaning
name string Name of the parameter as the template expects it as {{name}}. The prefixes pdf_, image_ and docx_ mark file parameters.
value string Text value of the parameter.
resourceId string ID of an uploaded file when the parameter carries a file instead of text.
fileName string File name for the file reference, optional.

UserPromptOptions

Which prompt template runs and how the call shows up in reports.

FieldTypeMeaning
promptIdentification PromptIdentification Which prompt template runs.
gptOptions GptOptions Normally omit. The template defines provider, model and fallback.
sessionMetadata SessionMetadata Correlation ID and use-case name for support and reporting.

AudioInput

The audio file, either by ID from the upload or inline as base64. Set exactly one of the two fields.

FieldTypeMeaning
audioFile Base64File Inline audio as base64. For short recordings.
audioId string ID from POST /audiostore/upload.

TranscriptionOptions

Language hints for the transcription.

FieldTypeMeaning
audioLanguage LanguageOptions Spoken language. Set only if known for sure; auto lets the provider detect it.
targetLanguage LanguageOptions Language of the transcript.

TranscriptionResponse

Response of the transcription endpoints.

FieldTypeMeaning
transcription string The transcript.
gptResult GptResult Raw answer of the model.
metaInformation PromptExecutionMetaInformation Execution details: retries and the model used.
originalTranscript string The transcript before any post-processing by the template.

AudioTranscriptionRequestLarge

Request of the transcription of long recordings (synchronous and asynchronous).

FieldTypeMeaning
queryParameter list of QueryParameter Additional parameters for the prompt template. Which names the template expects is agreed with your xander contact.
options UserPromptOptions Prompt template, model options and metadata of the call.
audioInput AudioInput The recording: audioId from the upload or audioFile as base64.
transcriptionOptions TranscriptionOptions Language of the recording and target language of the transcript. Omitting it means German.
segmentDurationSeconds integer Length of the segments in seconds into which xander splits the recording before transcription. Proven range: 60 to 140.

InformationRequest

FieldTypeMeaning
queryParameter list of QueryParameter Additional parameters for the prompt template. Which names the template expects is agreed with your xander contact.
options UserPromptOptions Prompt template, model options and metadata of the call.
userQuery UserQuery The input text.

UserQuery

The input text, alternatively an audio that xander transcribes first.

FieldTypeMeaning
userQueryText string The text the template evaluates. xander passes it as the parameter user_query.
userQueryAudio AudioInput Alternatively a recording that xander transcribes first and then uses as input text.

InformationExtractionResponse

Response of the free-text extraction.

FieldTypeMeaning
result string Answer as text.
gptResult GptResult Raw answer of the model.
metaInformation PromptExecutionMetaInformation Execution details: retries and the model used.

InformationExtractionRequest

Request of the text extraction (free and structured).

FieldTypeMeaning
queryParameter list of QueryParameter Additional parameters for the prompt template. Which names the template expects is agreed with your xander contact.
options UserPromptOptions Prompt template, model options and metadata of the call.
userQuery UserQuery The input text.
outputStructure OutputStructureDefinition Your target schema. Required on the structured endpoints.

OutputStructureDefinition

Your target schema for structured answers.

FieldTypeMeaning
jsonSchemaDefinition string JSON schema as a string (not as an object). The answer conforms to this schema.

InformationExtractionStructuredResponse

Response of the structured extraction.

FieldTypeMeaning
result object Answer as a JSON object matching your schema.
gptResult GptResult Raw answer of the model.
metaInformation PromptExecutionMetaInformation Execution details: retries and the model used.

PdfExtractionRequest

Request of the document extraction. Set exactly one document source: pdfInput or docInput.

FieldTypeMeaning
queryParameter list of QueryParameter Additional parameters for the prompt template. Which names the template expects is agreed with your xander contact.
options UserPromptOptions Prompt template, model options and metadata of the call.
pdfInput PdfInput The PDF: pdfId from the upload or pdfFile as base64.
docInput DocInput The Word document: docId from the upload or docFile as base64.
outputStructure OutputStructureDefinition Your target schema. Required on the structured endpoints.

PdfInput

A PDF, by ID or inline as base64.

FieldTypeMeaning
pdfFile Base64PdfFile Inline PDF as base64. For small documents.
pdfId string ID from POST /pdfstore/upload.

DocInput

A Word document, by ID or inline as base64.

FieldTypeMeaning
docFile Base64DocFile Inline Word document as base64.
docId string ID from POST /docstore/upload.


PdfInformationRequest

FieldTypeMeaning
queryParameter list of QueryParameter Additional parameters for the prompt template. Which names the template expects is agreed with your xander contact.
options UserPromptOptions Prompt template, model options and metadata of the call.
pdfInput PdfInput The PDF: pdfId from the upload or pdfFile as base64.
docInput DocInput The Word document: docId from the upload or docFile as base64.

PromptIdentification

Address of the prompt template in your project.

FieldTypeMeaning
projectId string Your project in xander. You receive the name with your credentials.
promptname string Name of the prompt template, for example service-report/transcription. Templates are set up by your xander contact.
tag string Label of the template version. Without it, production applies.

GptOptions

Overrides model and provider of the template. Normally leave empty: provider choice, fallback and timeouts belong to the template, not to your code.

FieldTypeMeaning
model string Only by agreement. Forces a model instead of the template configuration.
gptService string Only by agreement.
gptProvider string Only by agreement.
gptProviderConfigId string Only by agreement.

SessionMetadata

Metadata for traceability and reporting.

FieldTypeMeaning
useCaseSessionId string Your correlation ID (ticket, order, visit), the same for all calls of one workflow. No personal data.
useCaseName string Name of your use case, for example service-report. Shows up in reports.
project string For internal attribution, leave empty.
customer string For internal attribution, leave empty.
runOrigin string For internal attribution, leave empty.

Base64File

Inline audio file.

FieldTypeMeaning
base64AudioFile string The audio data as a base64 string.
fileName string File name, with extension.
audioType string MIME type of the recording, for example audio/mpeg or audio/mp4.

LanguageOptions

A language as ISO 639-1 code.

FieldTypeMeaning
languageCodeIso639 string Language code per ISO 639-1, for example de, fr, it, en, or auto.

GptResult

Raw answer of the model.

FieldTypeMeaning
plainResponse string Answer of the model as text.

PromptExecutionMetaInformation

Execution details of the call.

FieldTypeMeaning
retries integer Number of retries until the answer.
appliedModel string Model that produced the answer.
transparency string Notes on the execution, if any.

Base64PdfFile

Inline PDF.

FieldTypeMeaning
base64Content string The file as a base64 string.
fileName string File name, with extension.

Base64DocFile

Inline Word document.

FieldTypeMeaning
base64Content string The file as a base64 string.
fileName string File name, with extension.
contentType string MIME type of the file.

HealthState

State as a number: 0 healthy, 1 degraded, 2 unhealthy.


DependencyHealth

State of a single dependency.

FieldTypeMeaning
name string Name of the parameter as the template expects it as {{name}}. The prefixes pdf_, image_ and docx_ mark file parameters.
state HealthState (number) State of this dependency.
latencyMs integer Response time of the last check in milliseconds.
lastCheckedUtc string Time of the last check (UTC).
error string Error message if the check failed.

ScopedWorkStats

Utilisation of the processing pool.

FieldTypeMeaning
maxConcurrency integer Maximum parallel executions.
inUse integer Executions currently in use.
available integer Executions currently free.

Next

  • Onboarding: credentials, first token, first call.
  • Cookbook: complete workflows from voice note to report.
  • Limits & Quotas: rate limit, quota, concurrency and the right behaviour on 429.