---
title: "API: bring Swiss legal answers into your product"
description: What the Silex API does, how to get your credentials, how credits work and how to make your first request.
---

[Skip to content](https://help.silex.legal/en/knowledge-base/api-bring-swiss-legal-answers-into-your-product-#main-content)

- [English](https://help.silex.legal/en/knowledge-base/api-bring-swiss-legal-answers-into-your-product-)
- [Deutsch](https://help.silex.legal/de/knowledge-base/api-integrieren-sie-antworten-zu-schweizerischem-recht-in-ihr-produkt)
- [Français](https://help.silex.legal/fr/knowledge-base/api-intégrez-des-réponses-juridiques-suisses-à-votre-produit)
- [Italiano](https://help.silex.legal/it/knowledge-base/api-integra-nel-tuo-prodotto-le-risposte-giuridiche-svizzere)

English

Show submenu for translations

[![logo-KB](https://help.silex.legal/hubfs/logo-KB.svg)](https://help.silex.legal/en/knowledge-base?hsLang=en)

Open main navigation

Close main navigation

- - [English](https://help.silex.legal/en/knowledge-base/api-bring-swiss-legal-answers-into-your-product-)
    - [Deutsch](https://help.silex.legal/de/knowledge-base/api-integrieren-sie-antworten-zu-schweizerischem-recht-in-ihr-produkt)
    - [Français](https://help.silex.legal/fr/knowledge-base/api-intégrez-des-réponses-juridiques-suisses-à-votre-produit)
    - [Italiano](https://help.silex.legal/it/knowledge-base/api-integra-nel-tuo-prodotto-le-risposte-giuridiche-svizzere)

  English
  
  Show submenu for translations
- [Contact us](https://silex.legal/en/contact)

[Contact us](https://silex.legal/en/contact)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Knowledge Base Silex](https://help.silex.legal/en/knowledge-base?hsLang=en)
2. [Integrations](https://help.silex.legal/en/knowledge-base/integrations?hsLang=en)

# API: bring Swiss legal answers into your product

## What the Silex API does, how to get your credentials, how credits work and how to make your first request.

### **What is the Silex API?**

#### The Silex API brings Swiss legal answers and sources from Silex into your own product. Partners can also use it to manage their users' Silex accounts.

### **What you can do with the API**

- **Legal answers:** streamed, source-cited answers to Swiss-law questions.
- **Legal sources:** legislation, court decisions, ECHR rulings, circulars and doctrine, with full text and citations.
- **User management:** create accounts for your users, activate their access and keep it in sync with your product. See *Managing your users with the Silex API (partners)*.
- **Credits:** check your balance, your monthly consumption and every credit movement.

### **Data processing in Switzerland**

The restriction to the Silex model (processing in Switzerland only) also applies to requests made through the API.

### **Getting an answer to a question**

Send a Swiss-law question, in any language, and the API returns a complete answer with its sources cited, formatted in Markdown and streamed as it is generated. You can choose:

- **The language of the answer:** French (default), German, Italian or English.
- **The mode:** **speed** (default) or **accurate**, which uses a stronger model and double-checks the sources.
- **The format:** plain text (default) or JSON.
- **The conversation history**, to ask follow-up questions in the context of previous ones.
- **A date range for court decisions.**

### **Finding the sources for a question**

Send a Swiss-law question and the API returns the relevant sources (legislation, court decisions, ECHR rulings, circulars and doctrine), each with its full text, citation and URL. You can choose:

- **The language of the question:** French (default), German or Italian.
- **The mode:** **speed** (default) or **accurate**, which keeps only the best-matching sources.
- **A date range for court decisions.**

If no source matches the question, the API returns a message saying there is no data to return.

### **Getting access**

Silex issues your credentials when your partnership is set up. To request them, contact the Silex support Team. There are three types of credentials:

- **API key** (starts with `slx_`): identifies your partnership for billing. It is used for answers, sources and credits.
- **Partnership key:** identifies your partnership for user management.
- **Access token:** identifies one signed-in user. You get it, together with a refresh token, when the user signs in with their email and password. It is short-lived: use the refresh token to get a new one before it expires.

**Keep your API key safe:** it is shown only once, when it is created. Store it in a secret manager and never expose it in a browser or mobile app.

**Credits and consumption (pay-as-you-go)**  
Every request for answers or sources is billed in credits. With the API you can:

- **Check your credit balance.** Your available credits are your balance minus the credits reserved for requests still in progress. Each new request is checked against your available credits.
- **See your automatic recharge settings:** whether it is enabled, the threshold that triggers it, the credit pack added, the monthly cap and how many credits have been recharged this month.
- **See your monthly consumption**, broken down by operation, for up to the last 36 months (12 by default). Figures for the current month can be up to one day behind.
- **List every credit movement:** purchases, automatic recharges, consumption, adjustments and refunds, newest first. You can filter them by month or by type. Each consumption entry can be matched to the billed request using its request ID.

These requests use your API key: your partnership is identified from the key, so no other identifier is needed. To buy credits or change your automatic recharge, contact **\[CONTATTO\]**.

### **Usage limits**

- **Per partnership:** API key requests are limited per partnership.
- **Per user:** each user has a daily question limit.
- In both cases the API returns an HTTP 429 error and tells you how many seconds to wait before trying again.
- **No credit left or monthly allowance used up:** the question is refused with an HTTP 402 error.

### **How to get started**

1. Request your credentials from Silex.
2. Call `POST /v1/chat/get-sources` to check that your API key works (this request uses credits).
3. Browse the API reference for the details of each endpoint.

All requests use HTTPS and JSON, with the base URL `https://api.silex.legal`.

### **Developer documentation**

All technical details are in our developer documentation, available in English, French, German and Italian: [https://developers.silex.legal/](https://developers.silex.legal/)

- [General](https://help.silex.legal/en/knowledge-base/general?hsLang=en#main-content)

    - [Silo Functionnality](https://help.silex.legal/en/knowledge-base/general?hsLang=en#silo-functionnality)
    - [Translator Agent](https://help.silex.legal/en/knowledge-base/general?hsLang=en#translator-agent)
    - [Anonymizer Agent](https://help.silex.legal/en/knowledge-base/general?hsLang=en#anonymizer-agent)
    - [Document Comparison Agent](https://help.silex.legal/en/knowledge-base/general?hsLang=en#document-comparison-agent)
    - [Meeting Minutes Agent](https://help.silex.legal/en/knowledge-base/general?hsLang=en#meeting-minutes-agent)
    - [Silex Chat](https://help.silex.legal/en/knowledge-base/general?hsLang=en#silex-chat)
    - [Account, Organisation & Billing](https://help.silex.legal/en/knowledge-base/general?hsLang=en#account-organisation-billing)
- [Getting started](https://help.silex.legal/en/knowledge-base/getting-started?hsLang=en#main-content)

    - [Silo Functionnality](https://help.silex.legal/en/knowledge-base/getting-started?hsLang=en#silo-functionnality)
    - [Translator Agent](https://help.silex.legal/en/knowledge-base/getting-started?hsLang=en#translator-agent)
    - [Anonymizer Agent](https://help.silex.legal/en/knowledge-base/getting-started?hsLang=en#anonymizer-agent)
    - [Document Comparison Agent](https://help.silex.legal/en/knowledge-base/getting-started?hsLang=en#document-comparison-agent)
    - [Meeting Minutes Agent](https://help.silex.legal/en/knowledge-base/getting-started?hsLang=en#meeting-minutes-agent)
    - [Silex Chat](https://help.silex.legal/en/knowledge-base/getting-started?hsLang=en#silex-chat)
    - [Account, Organisation & Billing](https://help.silex.legal/en/knowledge-base/getting-started?hsLang=en#account-organisation-billing)
- [Integrations](https://help.silex.legal/en/knowledge-base/integrations?hsLang=en#main-content)

    - [Silo Functionnality](https://help.silex.legal/en/knowledge-base/integrations?hsLang=en#silo-functionnality)
    - [Silex Chat](https://help.silex.legal/en/knowledge-base/integrations?hsLang=en#silex-chat)
    - [Account, Organisation & Billing](https://help.silex.legal/en/knowledge-base/integrations?hsLang=en#account-organisation-billing)
- [Plans & Billing](https://help.silex.legal/en/knowledge-base/plans-billing?hsLang=en#main-content)

    - [Translator Agent](https://help.silex.legal/en/knowledge-base/plans-billing?hsLang=en#translator-agent)
    - [Anonymizer Agent](https://help.silex.legal/en/knowledge-base/plans-billing?hsLang=en#anonymizer-agent)
    - [Document Comparison Agent](https://help.silex.legal/en/knowledge-base/plans-billing?hsLang=en#document-comparison-agent)
    - [Meeting Minutes Agent](https://help.silex.legal/en/knowledge-base/plans-billing?hsLang=en#meeting-minutes-agent)
    - [Silex Chat](https://help.silex.legal/en/knowledge-base/plans-billing?hsLang=en#silex-chat)
    - [Account, Organisation & Billing](https://help.silex.legal/en/knowledge-base/plans-billing?hsLang=en#account-organisation-billing)
- [Security & privacy](https://help.silex.legal/en/knowledge-base/security-privacy?hsLang=en#main-content)

    - [Silo Functionnality](https://help.silex.legal/en/knowledge-base/security-privacy?hsLang=en#silo-functionnality)
    - [Translator Agent](https://help.silex.legal/en/knowledge-base/security-privacy?hsLang=en#translator-agent)
    - [Document Comparison Agent](https://help.silex.legal/en/knowledge-base/security-privacy?hsLang=en#document-comparison-agent)
    - [Meeting Minutes Agent](https://help.silex.legal/en/knowledge-base/security-privacy?hsLang=en#meeting-minutes-agent)
    - [Silex Chat](https://help.silex.legal/en/knowledge-base/security-privacy?hsLang=en#silex-chat)
    - [Account, Organisation & Billing](https://help.silex.legal/en/knowledge-base/security-privacy?hsLang=en#account-organisation-billing)
- [Troubleshooting](https://help.silex.legal/en/knowledge-base/troubleshooting?hsLang=en#main-content)

    - [Silo Functionnality](https://help.silex.legal/en/knowledge-base/troubleshooting?hsLang=en#silo-functionnality)
    - [Translator Agent](https://help.silex.legal/en/knowledge-base/troubleshooting?hsLang=en#translator-agent)
    - [Anonymizer Agent](https://help.silex.legal/en/knowledge-base/troubleshooting?hsLang=en#anonymizer-agent)
    - [Document Comparison Agent](https://help.silex.legal/en/knowledge-base/troubleshooting?hsLang=en#document-comparison-agent)
    - [Meeting Minutes Agent](https://help.silex.legal/en/knowledge-base/troubleshooting?hsLang=en#meeting-minutes-agent)
    - [Silex Chat](https://help.silex.legal/en/knowledge-base/troubleshooting?hsLang=en#silex-chat)
    - [Account, Organisation & Billing](https://help.silex.legal/en/knowledge-base/troubleshooting?hsLang=en#account-organisation-billing)

[![logo-KB](https://help.silex.legal/hubfs/logo-KB.svg "logo-KB")](https://help.silex.legal/en/knowledge-base?hsLang=en)

 support@silex.legal

<https://www.linkedin.com/company/silex-by-ex-nunc-intelligence/>

Copyright © 2026, Silex - Ex Nunc Intelligence SA