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

User reported objects related operations (beta)

GitHub OpenAPI

Operations 5

GET /reports/ List reports #
POST /reports/ Create report #
GET /reports/reasons/ List reports reasons #
GET /reports/{report}/ Get report #
PATCH /reports/{report}/ Update report #

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-reports-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-reports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dinum Reports API
  version: '1.0'
  description: 'Operations tagged reports 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: User reported objects related operations (beta)
  name: Reports
paths:
  /reports/:
    get:
      operationId: list_reports
      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:
          - reported_at
          - -reported_at
      - in: query
        name: handled
        schema:
          type: boolean
      - in: query
        name: subject_type
        schema:
          type: string
          enum:
          - Dataset
          - Reuse
          - Discussion
          - Organization
          - Dataservice
          - User
      - in: query
        name: subject
        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/ReportPage'
      tags:
      - Reports
      summary: List reports
      x-summary-source: derived
    post:
      operationId: create_report
      parameters:
      - description: An optional fields mask
        in: header
        name: X-Fields
        schema:
          type: string
          format: mask
      responses:
        '201':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Report%20%28read%29'
        '400':
          description: Validation error
      tags:
      - Reports
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Report%20%28write%29'
        required: true
      summary: Create report
      x-summary-source: derived
    servers:
    - url: https://www.data.gouv.fr/api/1
  /reports/reasons/:
    get:
      operationId: list_reports_reasons
      responses:
        '200':
          description: list of available reasons associated with their labels
          content:
            application/json:
              schema:
                type: object
      tags:
      - Reports
      summary: List reports reasons
      x-summary-source: derived
    servers:
    - url: https://www.data.gouv.fr/api/1
  /reports/{report}/:
    parameters:
    - in: path
      name: report
      required: true
      schema:
        type: string
    get:
      operationId: get_report
      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/Report%20%28read%29'
      tags:
      - Reports
      summary: Get report
      x-summary-source: derived
    patch:
      operationId: update_report
      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/Report%20%28read%29'
        '400':
          description: Validation error
      tags:
      - Reports
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Report%20%28write%29'
        required: true
      summary: Update report
      x-summary-source: derived
    servers:
    - url: https://www.data.gouv.fr/api/1
components:
  schemas:
    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
    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
    ReportPage:
      properties:
        data:
          description: The page data
          items:
            $ref: '#/components/schemas/Report__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
    LazyReference:
      properties:
        class:
          type: object
        id:
          type: object
      type: object
    Report__read:
      properties:
        by:
          allOf:
          - $ref: '#/components/schemas/UserReference'
          description: Only set if a user was connected when reporting an element.
          readOnly: true
        callbacks_count:
          description: Number of pending callbacks to execute when dismissed
          readOnly: true
          type: integer
        dismissed_at:
          format: date-time
          type: string
        dismissed_by:
          $ref: '#/components/schemas/UserReference'
        id:
          readOnly: true
          type: string
        message:
          type: string
        reason:
          enum:
          - auto_spam
          - explicit_content
          - illegal_content
          - others
          - personal_data
          - security
          - spam
          example: auto_spam
          type: string
        reported_at:
          format: date-time
          readOnly: true
          type: string
        self_api_url:
          description: Link to the API endpoint for this report
          readOnly: true
          type: string
        subject:
          $ref: '#/components/schemas/LazyReference'
        subject_deleted_at:
          format: date-time
          readOnly: true
          type: string
        subject_deleted_by:
          allOf:
          - $ref: '#/components/schemas/UserReference'
          readOnly: true
        subject_embed_id:
          description: UUID of the embedded document within the subject (e.g., a Message within a Discussion)
          type: string
        subject_label:
          description: Title or slug of the subject, saved at report creation for future reference.
          readOnly: true
          type: string
      required:
      - id
      - reason
      - reported_at
      - subject
      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