La Suite Authentication API

Application authentication and token generation

GitHub OpenAPI

Operations 1

POST /application/token/ Generate JWT token #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/la-suite:la-suite-authentication-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

la-suite-authentication-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: La Suite Authentication API
  version: 1.0.0
  contact:
    name: API Support
    email: antoine.lebaud@mail.numerique.gouv.fr
  description: 'Operations tagged Authentication across 2 of this provider''s published API definitions: visio-openapi.yaml, la-suite-visio-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://visio-sandbox.beta.numerique.gouv.fr/external-api/v1.0
  description: Sandbox server
tags:
- name: Authentication
  description: Application authentication and token generation
paths:
  /application/token/:
    post:
      tags:
      - Authentication
      summary: Generate JWT token
      description: 'Exchange application credentials for a scoped JWT token that allows the application

        to act on behalf of a specific user.


        The application must be authorized for the user''s email domain.

        The returned token expires after a configured duration and must be refreshed by calling this endpoint again.


        Request parameters may be sent either as "application/x-www-form-urlencoded"

        (as specified by RFC 6749 for OAuth 2.0 token endpoints) or as "application/json".'
      operationId: generateToken
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/TokenRequest'
            examples:
              tokenRequest:
                summary: Request token for user delegation
                value:
                  client_id: 550e8400-e29b-41d4-a716-446655440000
                  client_secret: 1234567890abcdefghijklmnopqrstuvwxyz
                  grant_type: client_credentials
                  scope: user@example.com
          application/json:
            schema:
              $ref: '#/components/schemas/TokenRequest'
            examples:
              tokenRequest:
                summary: Request token for user delegation
                value:
                  client_id: 550e8400-e29b-41d4-a716-446655440000
                  client_secret: 1234567890abcdefghijklmnopqrstuvwxyz
                  grant_type: client_credentials
                  scope: user@example.com
      responses:
        '200':
          description: Token generated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenResponse'
              examples:
                tokenResponse:
                  summary: Successful token generation
                  value:
                    access_token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
                    token_type: Bearer
                    expires_in: 3600
                    scope: rooms:list rooms:retrieve rooms:create
        '401':
          description: Authentication failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                invalidCredentials:
                  summary: Invalid credentials
                  value:
                    detail: Invalid credentials
                inactiveApplication:
                  summary: Application is inactive
                  value:
                    detail: Application is inactive
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthError'
              examples:
                invalidScope:
                  summary: Scope is not an email address
                  value:
                    error: Scope should be a valid email address.
        '403':
          description: Access denied - cannot delegate user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthError'
              examples:
                delegationDenied:
                  summary: Domain not authorized
                  value:
                    error: This application is not authorized for this email domain.
        '404':
          description: No user has that email, and Meet may not create one
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                userNotFound:
                  summary: User not found
                  value:
                    detail: User not found.
        '415':
          description: 'Unsupported media type. The request body must be sent as

            "application/x-www-form-urlencoded" or "application/json".

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unsupportedMediaType:
                  summary: Unsupported request content type
                  value:
                    detail: Unsupported media type "text/plain" in request.
    servers:
    - url: https://visio-sandbox.beta.numerique.gouv.fr/external-api/v1.0
      description: Sandbox server
components:
  schemas:
    TokenRequest:
      type: object
      required:
      - client_id
      - client_secret
      - grant_type
      - scope
      properties:
        client_id:
          type: string
          description: Application client identifier
          example: 550e8400-e29b-41d4-a716-446655440000
        client_secret:
          type: string
          format: password
          writeOnly: true
          description: Application secret key
          example: 1234567890abcdefghijklmnopqrstuvwxyz
        grant_type:
          type: string
          enum:
          - client_credentials
          description: OAuth2 grant type (must be 'client_credentials')
          example: client_credentials
        scope:
          type: string
          format: email
          description: 'Email address of the user to delegate.

            The application will act on behalf of this user.

            Note: This parameter is named ''scope'' to align with OAuth2 conventions,

            but accepts an email address to identify the user. This design allows

            for future extensibility.

            '
          example: user@example.com
    Error:
      type: object
      properties:
        detail:
          type: string
          description: Error message
          example: Invalid token.
    TokenResponse:
      type: object
      properties:
        access_token:
          type: string
          description: JWT access token
          example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJtZWV0LWFwaSIsImF1ZCI6Im1lZXQtY2xpZW50cyIsImlhdCI6MTcwOTQ5MTIwMCwiZXhwIjoxNzA5NDk0ODAwLCJjbGllbnRfaWQiOiI1NTBlODQwMC1lMjliLTQxZDQtYTcxNi00NDY2NTU0NDAwMDAiLCJzY29wZSI6InJvb21zOmxpc3Qgcm9vbXM6cmV0cmlldmUgcm9vbXM6Y3JlYXRlIiwidXNlcl9pZCI6IjdiOGQ5YzQwLTNhMmItNGVkZi04NzFjLTJmM2Q0ZTVmNmE3YiIsImRlbGVnYXRlZCI6dHJ1ZX0.signature
        token_type:
          type: string
          description: Token type (always 'Bearer')
          example: Bearer
        expires_in:
          type: integer
          description: Token lifetime in seconds
          example: 3600
        scope:
          type: string
          description: Space-separated list of granted permission scopes
          example: rooms:list rooms:retrieve rooms:create
    OAuthError:
      type: object
      description: OAuth2-compliant error response
      properties:
        error:
          type: string
          description: Human-readable error description
          example: Invalid credentials
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'JWT token obtained from the `/application/token/` endpoint.

        Include in requests as: `Authorization: Bearer <token>`

        '
x-refined-from:
- visio-openapi.yaml
- la-suite-visio-openapi.yml