Skip to content

One DSN file in, one report out

The v1 API checks your files and produces the documents drawn from them, with the same routes on Cloud and on Dedicated. Here is a real request and its response: a non-compliant public sample, with two blocking anomalies, and the HTTP status is still 200.

A real request and its response

The request

POST /v1/controles
curl -X POST "$DSNLINT_API_URL/v1/controles?format=json&fichier=contrat-duplique.dsn" \
  -H "Authorization: Bearer $DSNLINT_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/octet-stream" \
  --data-binary @contrat-duplique.dsn \
  -o rapport.json
Each example was replayed against the API and returns the same document as the curl command, byte for byte.

A plain HTTP request: your key in the Authorization header, an idempotency key, then the file. If you resend an identical request already processed with the same idempotency key, the API returns 204 for 900 seconds at most: the request is neither recomputed nor counted again.

The response

200 OK13 ms
Non-compliantBlocking anomalies: 2Warnings: 0

146 lines read

  • BlockingS21.G00.40.009/CCH-12Line 60
    Numéro du contrat

    Le numéro de contrat est repris par plusieurs contrats d'un même individu et établissement.

    Value
    CDI-001
  • BlockingS21.G00.40.009/CCH-12Line 85
    Numéro du contrat

    Le numéro de contrat est repris par plusieurs contrats d'un même individu et établissement.

    Value
    CDI-001
Excerpts from a real DSNLint API response, received with DSNLint Connect 1.3.0 on 5 December 2026, for public examples with fictitious data: contrat-duplique.dsn. Engine outputs are in French. The same request sent with curl returns the same document, byte for byte, apart from the response date.

Three steps to a first check

A key, a file, a report. The API address is that of your instance: the shared Cloud service or your dedicated instance.
1. Create a key
A dsn_test_ key only checks the published sample files; a dsn_live_ key checks your own. A key is shown only once, when it is created.
2. Send a file
Send the DSN file with a POST to /v1/controles, with the key in the Authorization header and an idempotency key in Idempotency-Key.
3. Read the report
The response is the report, in the format you asked for. The anomalies in the DSN file are in it: the response is still a 200.
Command
curl -X POST "$DSNLINT_API_URL/v1/controles?format=json&fichier=contrat-duplique.dsn" \  -H "Authorization: Bearer $DSNLINT_API_KEY" \  -H "Idempotency-Key: $(uuidgen)" \  -H "Content-Type: application/octet-stream" \  --data-binary @contrat-duplique.dsn \  -o rapport.json
Excerpt of the JSON response, the first anomaly
{  "code": "S21.G00.40.009/CCH-12",  "gravite": "BLOQUANT",  "libelle": "Numéro du contrat",  "ligne": 60,  "message": "Le numéro de contrat est repris par plusieurs contrats d'un même individu et établissement.",  "rubrique": "S21.G00.40.009",  "valeur": "CDI-001"}
Header of the API response
Server-Timing: traitement;dur=21.300
The time is in milliseconds, from the file fully received to the start of the response. Example value: the median time measured for a DSN of 9,934 lines.
The DSNLint API

How your software sends a DSN and reads its report: three ways to send, the API’s guarantees, its formats and DSNLint Connect, then a test key to try it.

Your keys, in the application

The application’s “Developers” screen shows the start in three steps: create a key, check a DSN with curl or DSNLint Connect, read the response. The “API keys” tab lists the keys of the workspace, test or production, with their creation date and state; the OpenAPI contract downloads from the screen.
  • The API keys of the workspace: the environment (test or production), the creation date and the state of each key

Try it with a test key

A test key, which starts with dsn_test_, accepts only the sample files published with the API documentation: the check of these DSN files, and the requests below, with exactly their function, options and files. It is not billed.

The sample files

Synthetic data, with no real data. The API compares the exact bytes: send the files as they are.

FileSizeSHA-256 fingerprint
declaration.dsn4.5 kBb875a4f1371c5ed0526b6e599a2a4ca6be2d636105e465ceccfcab29fad2e8fb
mois.dsn2.9 kBc2d6fb0d951bcb870e61e7e579be839606e33e57fc886e50b7c4f017cabe92b4
origine.dsn3.1 kB250ddc31d838f7945435d8c8e980ebd859eaf3a48619ce21614bcc9fd4813149
demande.json410 byte8c3afcffd3595b73106b742e1a15054014e7f7a8c1029c2134c81b549de05a9e
cle-fictive.bin35 byte27c7585d23897ac48e56cd1fcf24b0c92ed6af65c9c2364156006f9e9476f8fe
declaration-illisible.dsn362 byte9d2daaaa3d556296bca9d7901a75ccfbe773d0924f0a30b97182ca87e7e0d072

The accepted requests

A test key accepts any request whose every file is a published file, with the same SHA-256 and size, whatever the function, format, options and names; any other file is refused with 403 (exemple_requis). These requests are examples.

Two real runs

The check of a sample DSN file, then a request from the catalogue, splitting by establishment, sent with a test key.

rapport.txt
Fichier : message.dsn
Norme   : DSN P26V01
Lignes  : 196
Statut  : VALIDE (0 bloquant(s), 0 avertissement(s))
Identités : 661 / 669 (inventaire)
Aucune anomalie détectée par les contrôles portés.
Excerpts from a real DSNLint API response, received with DSNLint Connect 1.3.0 on 5 December 2026, for public examples with fictitious data: declaration.dsn. Engine outputs are in French. The same request sent with curl returns the same document, byte for byte. Captured with a test key.
rapport.zip · 2 files
manifeste.json
morceau-00000001.dsn
manifeste.json · lines 1 to 30 of 83
{
  "$schema": "urn:intek-center:dsnlint:decoupage:manifeste:10",
  "document": "decoupage",
  "fichiers": [
    {
      "id": "f1",
      "nom": "declaration.dsn",
      "origine_empreinte": "disponible",
      "origine_nom": "declaree",
      "raison": null,
      "role": "dsn",
      "sha256": "b875a4f1371c5ed0526b6e599a2a4ca6be2d636105e465ceccfcab29fad2e8fb"
    }
  ],
  "moteur": {
    "nom": "dsnlint",
    "version": "1.3.0"
  },
  "normes": [
    "P26V01"
  ],
  "options": {
    "annee_controle": 2026,
    "fils": 1,
    "masquer_comptes": false,
    "max_decompresse": 2147483648,
    "max_entrees": 100000,
    "par": "etablissement"
  },
  "resultat": {
Excerpts from a real DSNLint API response, received with DSNLint Connect 1.3.0 on 5 December 2026, for public examples with fictitious data: declaration.dsn. Engine outputs are in French. The same request sent with curl returns the same document, byte for byte. Captured with a test key.

14 functions, each with its own route

For each function: its route, the DSNLint Connect command that calls it, the matching MCP tool and the formats it returns.
Scroll the table to see all its columns; with a keyboard, focus the table, then use the arrow keys.
FunctionRoute, Connect command, MCP toolFormats
DSN checkPOST /v1/controlesdsnlint-connect controlercontroler_dsnText, JSON, JSON Lines, CSV, PDF, Excel, XML, Power BI
Check with supporting documentsPOST /v1/controles/avec-piecesdsnlint-connect controler-avec-piecescontroler_avec_piecesText, JSON, JSON Lines (no attached file), CSV, PDF, Excel, XML, Power BI
Comparison of two versionsPOST /v1/controles/avec-piecesdsnlint-connect comparercomparerText, JSON, CSV
Official returnsPOST /v1/retoursdsnlint-connect retoursretoursText, JSON, CSV, PDF, Excel, Power BI
Substitute DSNPOST /v1/substitutionsdsnlint-connect substitutionsubstitutionText, JSON, CSV, PDF, Excel, Power BI
CorrectionsPOST /v1/regularisationsdsnlint-connect regulariserregulariserZIP
Recomputed payrollPOST /v1/paiedsnlint-connect paiepaieText, JSON, CSV, PDF, Excel, Power BI
Direct debitsPOST /v1/prelevementsdsnlint-connect prelevementsprelevementsText, JSON, CSV, PDF, Excel, Power BI
HR statementsPOST /v1/socialdsnlint-connect socialsocialText, JSON, CSV, PDF, Excel, Power BI
Gender equalityPOST /v1/egalitedsnlint-connect egaliteegaliteText, JSON, CSV, PDF, Excel, Power BI, Egapro
Accounting reconciliationPOST /v1/comptadsnlint-connect comptacomptaText, JSON, CSV, PDF, Excel, Power BI, FEC
ExtractionPOST /v1/extractionsdsnlint-connect extraireextraireCSV, JSON, ZIP
SplittingPOST /v1/decoupagesdsnlint-connect decouperdecouperZIP
PseudonymisationPOST /v1/pseudonymisationsdsnlint-connect pseudonymiserpseudonymiserZIP

For your integrations

Parameters and headers of the v1 API for connecting DSNLint to your tools. Each capability names what to send or read, and links to the part of the reference or the documentation that covers it, where there is one.

A report that contains no value read from the DSN

With masquer_valeurs=true, the report shows no value from the DSN file: each individual is identified by their rank (“Individu 3”) and each file by its input rank (“fichier-1.dsn”), with its SHA-256. Each anomaly keeps its code, severity, line, field, title and action. masquer_comptes is a separate option. With DSNLint Connect: --option masquer_valeurs=true.

A JSON Lines stream

With format=jsonl (application/jsonl), the report is a stream: one line per file, then a summary line. Each line is a complete JSON object that validates on its own against its schema. With DSNLint Connect: --format jsonl.

Compare two versions of a set of DSN files

A single POST /v1/controles/avec-pieces request is enough: the manifest’s fonction field is comparer, and the dsn_a and dsn_b roles tell the two sets apart. The code for continuous integration is in the X-DSN-Code-Sortie header: 0 for no regression, 1 for at least one. With DSNLint Connect: the comparer command and the MCP tool of the same name.

The date of each check

The X-DSN-Date-Controle header gives the UTC instant of the check, outside the document; the documents intended for the reader (the report and its documents) carry the calendar date of that instant. To replay a request, give the check year (annee, or annee_controle with supporting documents): otherwise it is the UTC year of the request.

Several workbooks, one ZIP package

When the result is a package of workbooks, the API returns it as application/zip, named rapport.zip; a single workbook keeps its XLSX media type and the name rapport.xlsx. Save a package under a .zip name, never .xlsx.

The document as delivered

Routes with supporting documents return the document file directly, with no envelope and no added line break, under a fixed name announced by the Content-Disposition header (rapport.json, rapport.pdf…). DSNLint Connect writes it byte for byte.

Immediate or deferred response

By default, a direct call returns the report in the response. A deferred response is requested submission by submission, with a standard header.
  • Immediate, the default
    The client sends the file and waits for the response, which contains the report. Left to the software publisher: its waiting screen, its error messages and saving the report on its side.
  • Deferred, on request
    With the standard Prefer header (value respond-async, optionally with wait=N): if the check finishes within N seconds, the response is immediate; otherwise the API answers 202 with the address of the result. The client polls that address, sending back the cookies received; it can also receive the signed completion notice at a registered destination. The report can be read once only, within 5 minutes.
  • Batches
    From 1 to 32 files, processed in the background.
  • No email from DSNLint
    DSNLint sends no email to a software publisher’s customers: the publisher manages its own notifications.

API limits

A submission that exceeds a limit is refused, and no document is ever truncated.
  • A file is one DSN submission in the sense of Net-entreprises: one monthly DSN, which may cover several establishments.
  • Maximum size: 128 MiB (134,217,728 bytes) and 5,000,000 lines per file, which is of the order of 50,000 declared individuals. Beyond that, the file is refused with a clear message: send one file per establishment. For a readable document (PDF, Excel, CSV for Excel), a very large DSN can be refused for lack of memory: ask for JSON or machine CSV instead.
  • Immediate response: 120 seconds at most per exchange; the report is streamed, even a very large one.
  • Deferred response (on request): the report is kept in memory for 300 seconds and can be read once only; 2 MiB per report by default.
  • Batches: from 1 to 32 files.

What the API guarantees

The rules for processing calls: repeated requests, retention, errors, quotas, keys and billing. Batch queries have their own contract.
  • A repeated request is not billed again
    Each request carries an Idempotency-Key header. For 900 seconds at most, an identical completed request receives 204 with no document, computation or count; while running, or with different content, the same key receives 409. Keep your first response: this protection may end earlier, rarely.
  • No file retained
    With an immediate response, the API keeps neither the file nor the report. The bytes received are destroyed once the response has been returned.
  • Stable errors
    A technical error returns a stable JSON object: code, message and request_id. It contains no values from your request.
  • Anomalies are not errors
    The anomalies in a DSN file are in the report, with a 200 response. An HTTP error only signals a technical problem.
  • Service capacity and call limits: a 429
    Each workspace has 3,600 operations per hour, and at most 4 at the same time, on Cloud as on a Dedicated instance: every function draws on them, except the simple check of a DSN file and its batches. Each API key can send 120 calls per UTC minute, as many as its workspace. The workspace protection can also refuse a request beyond 120 calls per sliding minute, 20 per second and 10,000 per day, and, for each key, beyond 60 per minute and 10 per second. A refusal is a 429 response, with the delay to wait in the Retry-After header; it is never billed.
  • Test and production keys
    A dsn_test_ key only checks the published sample files and is not billed. A dsn_live_ key checks your own files.
  • Another format costs nothing more
    Billing counts the maximum number of declared individuals checked per establishment and per declared month: employees, apprentices, interns, corporate officers and other people in the Individual block. Checking the same DSN file again does not raise that maximum.

Version history

What each version introduced in the v1 API and DSNLint Connect, step by step, most recent first.
1 December 2026
Official returns: category and matching
Each anomaly received carries its category, blocking or non-blocking, as the return states it; a general anomaly of the submission is matched to the DSN provided that its declarations designate, or reported as not compared. By additions only: the other contracts keep their version.
28 November 2026
The reading model published
Each fixed text of the reading model publishes its key and its values, each table the kind of its columns; a declared decimal is written the French way. The report, the batch, payroll and the business documents move to their next major version, by additions only: a strict reader picks the announced schema.
28 October 2026
Reports without DSN values, and the JSON Lines stream
A report that reproduces no value read from the DSN file (masquer_valeurs), for the check and for the comparison; and the check as a JSON Lines stream (format=jsonl), one line per file, then a summary line.
28 October 2026
Comparison, check date and ZIP packages
Comparing two versions of a set of DSN files in a single request (the comparer function); the check date in the X-DSN-Date-Controle header; several workbooks delivered as one .zip package; CSV in the excel-fr profile by default, with a notice for Excel.
23 October 2026
Quotas per key and per organisation
Technical quotas per minute, per burst and per day protect the service, for each key and each organisation.
22 October 2026
DSNLint Connect for every function
Commands in French and MCP tools for every processing function of the v1 API and for function batches.
22 October 2026
Transformations and corrections
CSV extraction, splitting by establishment, pseudonymisation and assisted corrections, as direct calls.
22 October 2026
Accounting and direct debits
Reconciliation of declared payroll with the accounts, and the direct debits statement, as direct calls and in function batches.
22 October 2026
Payroll and HR documents
Recomputed payroll, gender equality (with the Egapro sheet in CSV) and HR documents (BDESE, social report, register, portfolio), as direct calls and in function batches.
21 October 2026
DSNLint Connect
A command line and an MCP server that link your local files to the v1 API, with your key.
21 October 2026
Official returns and substitute DSN
Reading official returns and the substitution statement, as direct calls and in function batches, in six formats.
21 October 2026
Check with supporting documents and function batches
The check with supplementary scheme forms, notified rates, Urssaf entry or a profile, in seven formats; function batches.
15 October 2026
Access from the browser
A short-lived token, valid for fifteen minutes at most, lets the application call the API without exposing your key.
8 October 2026
The /v1 contract
Checking a DSN as a direct call, revocable test and production keys, idempotency, and ephemeral batches, whose end event carries no personal data.
The API version
Routes are prefixed with /v1, and the OpenAPI contract version follows DSNLint’s (1.3.0).

Up to 32 checks in one batch

A batch groups submissions for background processing. It is held only in memory: each report is retrieved once, and the batch status says when it is ready.
Create the batch
Specify 1 to 32 files, a retrieval period of 1 to 300 seconds, a pre-registered webhook and your consent to temporary storage in memory.
Submit the files
Submit each file at its index, from 0 to 31, with its own idempotency key. The API answers 202 once the file is fully received in memory.
Close the batch
Closing the batch ends submissions. The batch cannot be closed if any slot is still empty.
Retrieve the reports
When the batch status shows the end, read each report. Reading removes it from the batch: a report can be retrieved only once.
Delete the batch
Deleting destroys the batch and its reports in memory. A batch also expires on its own, and its reports may, rarely, be lost earlier (for example during a service update).

Developer questions

Ready to call the API?

The reference presents the routes, their parameters, bodies and responses; the downloadable OpenAPI contract describes the bodies in full. DSNLint Connect calls the same routes from your terminal.