Skip to content

Get started with DSN checks

To check a DSN: create an account, upload the file in the application, read the report, correct in your payroll software, then check again; a new check costs nothing more, as long as the corrected DSN does not declare more individuals. Through the API or DSNLint Connect, a key and a DSN file are enough. This section goes from the account or the key to the verdict.

In the application

  1. Create an account — Create your DSNLint account: it opens the application.
  2. Upload a DSN file — Upload a DSN file, an archive or a folder in the application.
  3. Read the report — The report gives the verdict, pinpoints every anomaly and says what to correct.
  4. Correct in your payroll software — The report says what to correct: do it in your payroll software. DSNLint files nothing: the official filing remains yours.
  5. Check again — Upload the corrected DSN in the application: a new check costs nothing more, as long as the corrected DSN does not declare more individuals.

Create an account

The “Upload” button opens the upload window. With no file at hand, the “Try with a public example” menu loads a published example; nothing is sent until you click “Check”.

From upload to report

Your first check: upload a DSN, read the verdict and open an anomaly to see what to fix.

  • The “Try with a public example” menu unfolded: demonstration DSN files, example DSN files and DSN files with a supporting document

See the “Upload” section of the application page

Through the API or DSNLint Connect

  1. Get a key — Create a test API key or a production API key in your DSNLint workspace; on a dedicated instance, create it in that instance’s interface. A key starts with dsn_test_ or dsn_live_. It is shown only once, when you create it: copy it straight away to a safe place.
  2. Configure DSNLint Connect — DSNLint Connect needs Node.js 24. Download it in the application, Developers › Connect, whatever your plan. Put the address of your API in the environment variable DSNLINT_API_URL (HTTPS is required) and your key in DSNLINT_API_KEY. The key can also come from a private file; it is never passed as a command argument.
  3. Run a first check — Give DSNLint Connect a DSN file and a format. It sends the file to the API, reads the verdict and, on macOS and Linux, writes the report to the output folder, or to the current folder if you give none. On Windows, DSNLint Connect writes no document: use the JSON response of an MCP tool, with no output folder.
  4. Read the verdict — DSNLint Connect displays the verdict, the number of blocking anomalies and the number of warnings. Its exit code is 0 when there is no blocking anomaly, and 1 when there is one.

Here is the command. It checks the published example file, asks for the report in JSON and writes it to the folder rapports.

The example file to download, which the test key accepts: declaration.dsn

Terminal
dsnlint-connect controler declaration.dsn --format json --sortie ./rapports
A test key only checks the published example files: with any other file, the API refuses the request. Calls made with a test key are not billed.

Without DSNLint Connect: the curl try-out with a test key

Here is a real run, on a public example that contains an error: two contracts of the same individual (the person declared) carry the same number. The JSON gives the verdict, the counts and every anomaly.

Non-compliantBlocking anomalies: 2Warnings: 0

Standard P26V01, 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.

First read the statut field of the result: here it is NON_VALIDE. The fields nb_bloquants and nb_avertissements give the counts. The anomalies list details each anomaly, with its line, its field, its value and its message. The API returns 200 with a complete report even when the DSN contains anomalies. An HTTP error status signals a refusal to process the request or a technical problem: it is not the verdict on the DSN.

The same request in curl goes to the route POST /v1/controles. It carries the key in the Authorization header, an idempotency key in the Idempotency-Key header, and the file as it is in the body. For 900 seconds at most, replaying the same completed request with the same idempotency key, the same bytes and the same options, in the same workspace and the same mode (test or production), returns 204 with no document: keep the first response. A request that is still running, or whose content differs, returns 409.

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.

All the DSNLint Connect commands

The API reference: routes, parameters and errors

Read a DSN check report
Next section