> ## Documentation Index
> Fetch the complete documentation index at: https://docs.locusmedical.fr/llms.txt
> Use this file to discover all available pages before exploring further.

# Émettre un jeton de poste — forme historique (AlmaPro)

> Compatibilité avec les postes déjà installés : clé dans `X-Locus-Key`, corps `{"user_id": …}`, réponse `{token, exp, absolute_exp}`. Émet le même jeton que `POST /v2/session-token`, qui est la route à utiliser pour toute intégration neuve.



## OpenAPI

````yaml /openapi.json post /v1/session-token
openapi: 3.1.0
info:
  title: Locus API
  description: >-
    Locus knowledge layer — REST over a clinical knowledge graph.


    Two categories of surface:

    - **query** (read) — `/v2/retrieve` and `/v2/retrieve/stream`
    (knowledge-graph retrieval, MKF 0.1.3), `/v2/drugs/*` (the full text of an
    SmPC section a retrieval truncated) and `/v2/feedback` (a thumb on a traced
    answer);

    - **ops** — `/health`.


    The write plane (PDF → Neo4j graph: ingest, summarize, MKU extraction) is
    NOT exposed over HTTP — it is a batch pipeline driven by the `locus` CLI,
    which runs where the source PDFs are.
  version: 0.5.0
servers:
  - url: https://core.locusmedical.fr
    description: Production
security: []
paths:
  /v1/session-token:
    post:
      tags:
        - b2b
      summary: Émettre un jeton de poste — forme historique (AlmaPro)
      description: >-
        Compatibilité avec les postes déjà installés : clé dans `X-Locus-Key`,
        corps `{"user_id": …}`, réponse `{token, exp, absolute_exp}`. Émet le
        même jeton que `POST /v2/session-token`, qui est la route à utiliser
        pour toute intégration neuve.
      operationId: legacy_session_token_v1_session_token_post
      parameters:
        - name: X-Locus-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Locus-Key
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                title: Response Legacy Session Token V1 Session Token Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      deprecated: true
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.