DINUM (Direction interministérielle du numérique) Notifications API

Notifications API

GitHub OpenAPI

Operations 6

GET /notifications/ List all current user pending notifications #
PUT /notifications/follow/ Follow some notifications on a subject, or stop, and get what the current user #
GET /notifications/resolved/ Whether and why the current user hears about notifications on some #
GET /notifications/settings/ List the rules the current user set about their notifications, latest first #
PUT /notifications/settings/ Set a rule about some notifications, or remove it with `enabled: null` #
POST /notifications/{notification}/read/ Read a notification #

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/dinum:dinum-notifications-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

dinum-notifications-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dinum Notifications API
  version: '1.0'
  description: 'Operations tagged notifications across 2 of this provider''s published API definitions: data-gouv-fr-api-v1-swagger.json, dinum-data-gouv-fr-v1-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://www.data.gouv.fr/api/1
tags:
- description: Notifications API
  name: Notifications
paths:
  /notifications/:
    get:
      operationId: list_notifications
      parameters:
      - description: The page to fetch
        in: query
        name: page
        schema:
          type: integer
          default: 1
          exclusiveMinimum: 0
      - description: The page size to fetch
        in: query
        name: page_size
        schema:
          type: integer
          default: 20
          exclusiveMinimum: 0
      - description: The field (and direction) on which sorting apply
        in: query
        name: sort
        schema:
          type: string
          enum:
          - created
          - last_modified
          - handled_at
          - -created
          - -last_modified
          - -handled_at
      - in: query
        name: type
        schema:
          type: string
          enum:
          - discussion.new
          - discussion.comment
          - discussion.closed
          - organization.membership.requested
          - organization.membership.invited
          - organization.membership.accepted
          - organization.membership.refused
          - organization.badge.certified
          - organization.badge.public-service
          - organization.badge.company
          - organization.badge.association
          - organization.badge.local-authority
          - reuse.created
          - dataservice.created
          - transfer.requested
          - harvest.source.pending
          - harvest.source.accepted
          - harvest.source.refused
      - in: query
        name: handled
        schema:
          type: boolean
      - in: query
        name: user
        schema:
          type: string
      - description: An optional fields mask
        in: header
        name: X-Fields
        schema:
          type: string
          format: mask
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationPage'
      summary: List all current user pending notifications
      tags:
      - Notifications
    servers:
    - url: https://www.data.gouv.fr/api/1
  /notifications/follow/:
    put:
      description: 'hears about once done.


        Which rules to write or withdraw depends on how they rank, which is the server''s

        to know: stopping withdraws one''s own follow, and only says no when a role or a

        broader follow still brings the notifications in.'
      operationId: follow_notifications
      parameters:
      - description: An optional fields mask
        in: header
        name: X-Fields
        schema:
          type: string
          format: mask
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationResolved'
        '400':
          description: Unknown subject or event
      summary: Follow some notifications on a subject, or stop, and get what the current user
      tags:
      - Notifications
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NotificationFollow'
        required: true
    servers:
    - url: https://www.data.gouv.fr/api/1
  /notifications/resolved/:
    get:
      description: 'subjects, once their rules and the defaults are applied.


        One answer per subject, so that a page asks once for all of its subjects. Without

        an event, it is about every notification on them.'
      operationId: resolve_notifications
      parameters:
      - description: A subject, as `Class:id`, repeated for up to 100 subjects
        in: query
        name: scope
        required: true
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - description: A notification type or a prefix of some, every notification without one
        in: query
        name: event
        schema:
          type: string
      - description: An optional fields mask
        in: header
        name: X-Fields
        schema:
          type: string
          format: mask
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/NotificationResolved'
                type: array
        '400':
          description: Unknown subject or event, or too many subjects
      summary: Whether and why the current user hears about notifications on some
      tags:
      - Notifications
    servers:
    - url: https://www.data.gouv.fr/api/1
  /notifications/settings/:
    get:
      description: 'Only rules are listed: whatever no rule covers follows the default rules. What

        they add up to is given by `/notifications/resolved/`.


        Paginated: editing or answering follows a subject, so the rules of a busy account

        keep growing, and each one reads its subject back.'
      operationId: list_notification_settings
      parameters:
      - description: The page to fetch
        in: query
        name: page
        schema:
          type: integer
          default: 1
          exclusiveMinimum: 0
      - description: The page size to fetch
        in: query
        name: page_size
        schema:
          type: integer
          default: 20
          exclusiveMinimum: 0
      - description: Only the follows (a subject, yes), or only the other rules
        in: query
        name: followed
        schema:
          type: boolean
      - description: An optional fields mask
        in: header
        name: X-Fields
        schema:
          type: string
          format: mask
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationSettingPage'
      summary: List the rules the current user set about their notifications, latest first
      tags:
      - Notifications
    put:
      description: 'A rule is identified by its subject and event, either of them possibly null:

        setting it again replaces the previous answer. Removing a follow udata made by

        itself (for editing a subject or answering about it) turns it into a "no":

        removed, the next edit or answer would make it again.'
      operationId: set_notification_setting
      responses:
        '204':
          description: 'Rule set or removed: the list says what applies now'
        '400':
          description: Validation error
      summary: 'Set a rule about some notifications, or remove it with `enabled: null`'
      tags:
      - Notifications
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NotificationSetting%20%28write%29'
        required: true
    servers:
    - url: https://www.data.gouv.fr/api/1
  /notifications/{notification}/read/:
    parameters:
    - in: path
      name: notification
      required: true
      schema:
        type: string
    post:
      operationId: read_notification
      parameters:
      - description: An optional fields mask
        in: header
        name: X-Fields
        schema:
          type: string
          format: mask
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Notification%20%28read%29'
        '400':
          description: Validation error
      summary: Read a notification
      tags:
      - Notifications
    servers:
    - url: https://www.data.gouv.fr/api/1
components:
  schemas:
    ModelReference:
      properties:
        class:
          description: The model class
          type: string
        id:
          description: The object identifier
          type: string
      required:
      - class
      - id
      type: object
    NotificationSubjectSummary:
      properties:
        organization:
          allOf:
          - $ref: '#/components/schemas/OrganizationReference'
          description: The organization the subject belongs to, null for an organization
        page:
          description: The subject web page
          type: string
        title:
          description: The subject title
          type: string
      type: object
    NotificationResolved:
      properties:
        event:
          description: The event asked about
          type: string
        followed_events:
          description: The narrower events the user still follows on it
          items:
            type: string
          type: array
        heard:
          description: Whether the user hears about it, pause aside
          type: boolean
        heard_types:
          description: The types asked about the user hears on it
          items:
            type: string
          type: array
        muted:
          description: Whether the user said no to this subject and event
          type: boolean
        partial:
          description: Whether the user hears only some of the types that can be about it
          type: boolean
        reasons:
          description: Why the user is concerned
          items:
            type: string
          type: array
        scope:
          allOf:
          - $ref: '#/components/schemas/ModelReference'
          description: The subject asked about
        subject:
          allOf:
          - $ref: '#/components/schemas/NotificationSubjectSummary'
          description: The subject as the user may see it, null when out of reach
      type: object
    NotificationFollow:
      properties:
        event:
          description: A notification type or a prefix of some, every notification without one
          type: string
        followed:
          description: Follow, or stop following
          type: boolean
        scope:
          allOf:
          - $ref: '#/components/schemas/ModelReference'
          description: The subject
      required:
      - followed
      - scope
      type: object
    NotificationPage:
      properties:
        data:
          description: The page data
          items:
            $ref: '#/components/schemas/Notification__read'
          type: array
        next_page:
          description: The next page URL if exists
          type: string
        page:
          description: The current page
          minimum: 1
          type: integer
        page_size:
          description: The page size used for pagination
          minimum: 0
          type: integer
        previous_page:
          description: The previous page URL if exists
          type: string
        total:
          description: The total paginated items
          minimum: 0
          type: integer
      required:
      - page
      - page_size
      - total
      type: object
    NotificationSettingPage:
      properties:
        data:
          description: The page data
          items:
            $ref: '#/components/schemas/NotificationSetting__read'
          type: array
        next_page:
          description: The next page URL if exists
          type: string
        page:
          description: The current page
          minimum: 1
          type: integer
        page_size:
          description: The page size used for pagination
          minimum: 0
          type: integer
        previous_page:
          description: The previous page URL if exists
          type: string
        total:
          description: The total paginated items
          minimum: 0
          type: integer
      required:
      - page
      - page_size
      - total
      type: object
    Badge__read:
      properties:
        kind:
          type: string
      required:
      - kind
      type: object
    Notification__read:
      properties:
        created_at:
          format: date-time
          readOnly: true
          type: string
        details:
          type: object
        handled_at:
          format: date-time
          type: string
        id:
          type: string
        last_modified:
          format: date-time
          readOnly: true
          type: string
        reasons:
          items:
            enum:
            - owner
            - organization.admin
            - organization.editor
            - organization.partial_editor
            - discussion.participant
            - explicit_subscriber
            - contributor
            - discussant
            - requester
            example: owner
            readOnly: true
            type: string
          readOnly: true
          type: array
        requires_action:
          description: Whether the notification is resolved by acting on its subject rather than by reading it
          readOnly: true
          type: boolean
        type:
          enum:
          - discussion.new
          - discussion.comment
          - discussion.closed
          - organization.membership.requested
          - organization.membership.invited
          - organization.membership.accepted
          - organization.membership.refused
          - organization.badge.certified
          - organization.badge.public-service
          - organization.badge.company
          - organization.badge.association
          - organization.badge.local-authority
          - reuse.created
          - dataservice.created
          - transfer.requested
          - harvest.source.pending
          - harvest.source.accepted
          - harvest.source.refused
          example: discussion.new
          readOnly: true
          type: string
        user:
          allOf:
          - $ref: '#/components/schemas/UserReference'
          readOnly: true
      required:
      - created_at
      - id
      - last_modified
      - type
      type: object
    BaseReference:
      discriminator:
        propertyName: class
      properties:
        class:
          description: The object class
          type: string
        id:
          description: The object unique identifier
          type: string
      required:
      - class
      - id
      type: object
    UserReference:
      allOf:
      - $ref: '#/components/schemas/BaseReference'
      - properties:
          avatar:
            description: URL of the image
            readOnly: true
            type: string
          avatar_thumbnail:
            description: URL of the cropped and squared image (500x500)
            readOnly: true
            type: string
          deleted:
            description: The date the account was deleted, null for a live account
            format: date-time
            readOnly: true
            type: string
          first_name:
            maxLength: 255
            type: string
          last_name:
            maxLength: 255
            type: string
          page:
            description: Link to the udata web page for this user
            readOnly: true
            type: string
          slug:
            maxLength: 255
            readOnly: true
            type: string
          uri:
            description: Link to the API endpoint for this user
            readOnly: true
            type: string
        required:
        - first_name
        - last_name
        - slug
        type: object
    OrganizationReference:
      allOf:
      - $ref: '#/components/schemas/BaseReference'
      - properties:
          acronym:
            maxLength: 128
            type: string
          badges:
            items:
              allOf:
              - $ref: '#/components/schemas/Badge__read'
              readOnly: true
            readOnly: true
            type: array
          logo:
            description: URL of the image
            readOnly: true
            type: string
          logo_thumbnail:
            description: URL of the cropped and squared image (100x100)
            readOnly: true
            type: string
          name:
            type: string
          page:
            description: Link to the udata web page for this organization
            readOnly: true
            type: string
          permissions:
            allOf:
            - $ref: '#/components/schemas/OrganizationPermissions'
            readOnly: true
          slug:
            maxLength: 255
            readOnly: true
            type: string
          uri:
            description: Link to the API endpoint for this organization
            readOnly: true
            type: string
        required:
        - name
        - slug
        type: object
    NotificationSetting__read:
      properties:
        enabled:
          type: boolean
        event:
          description: A notification type, or a dotted prefix of some (`discussion` covers `discussion.*`), null for every notification
          type: string
        id:
          readOnly: true
          type: string
        origin:
          description: 'What made the user follow the subject: by hand, by editing it, or by taking part in its discussions'
          enum:
          - followed
          - edited
          - discussed
          example: followed
          readOnly: true
          type: string
        scope:
          allOf:
          - $ref: '#/components/schemas/ModelReference'
          description: The subject the rule is about, null for everywhere
        subject:
          allOf:
          - $ref: '#/components/schemas/NotificationSubjectSummary'
          description: The subject as the user may see it today, null once out of reach
          readOnly: true
      required:
      - enabled
      - id
      type: object
    OrganizationPermissions:
      properties:
        delete:
          type: boolean
        edit:
          type: boolean
        harvest:
          type: boolean
        members:
          type: boolean
        private:
          type: boolean
      type: object
  securitySchemes:
    apikey:
      in: header
      name: X-API-KEY
      type: apiKey
x-refined-from:
- data-gouv-fr-api-v1-swagger.json
- dinum-data-gouv-fr-v1-openapi.yml