api.gouv.fr · Schema

DiscussionPage

CompanyGovernmentOpen DataFrancePublic SectorAPI CatalogDigital Government

Properties

Name Type Description
data array The page data
next_page string The next page URL if exists
page integer The current page
page_size integer The page size used for pagination
previous_page string The previous page URL if exists
total integer The total paginated items
View JSON Schema on GitHub

JSON Schema

api-gouv-fr-discussion-page-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-gouv-fr/json-schema/api-gouv-fr-discussion-page-schema.json",
  "title": "DiscussionPage",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-gouv-fr-discussions-api-openapi.yml#/components/schemas/DiscussionPage",
  "properties": {
    "data": {
      "description": "The page data",
      "items": {
        "$ref": "#/$defs/Discussion__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",
  "$defs": {
    "Badge__read": {
      "properties": {
        "kind": {
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    },
    "BaseReference": {
      "properties": {
        "class": {
          "description": "The object class",
          "type": "string"
        },
        "id": {
          "description": "The object unique identifier",
          "type": "string"
        }
      },
      "required": [
        "class",
        "id"
      ],
      "type": "object"
    },
    "DiscussionMessagePermissions": {
      "properties": {
        "delete": {
          "type": "boolean"
        },
        "edit": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "DiscussionPermissions": {
      "properties": {
        "close": {
          "type": "boolean"
        },
        "delete": {
          "type": "boolean"
        },
        "edit": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "Discussion__read": {
      "properties": {
        "closed": {
          "description": "The discussion closing date",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "closed_by": {
          "allOf": [
            {
              "$ref": "#/$defs/UserReference"
            }
          ],
          "description": "The user who closed the discussion",
          "readOnly": true
        },
        "closed_by_organization": {
          "allOf": [
            {
              "$ref": "#/$defs/OrganizationReference"
            }
          ],
          "description": "The organization who closed the discussion",
          "readOnly": true
        },
        "created": {
          "description": "The discussion creation date",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "discussion": {
          "description": "The list of messages in the discussion",
          "items": {
            "allOf": [
              {
                "$ref": "#/$defs/Message__read"
              }
            ],
            "description": "The list of messages in the discussion",
            "readOnly": true
          },
          "readOnly": true,
          "type": "array"
        },
        "extras": {
          "description": "Extra attributes as key-value pairs",
          "type": "object"
        },
        "id": {
          "readOnly": true,
          "type": "string"
        },
        "organization": {
          "allOf": [
            {
              "$ref": "#/$defs/OrganizationReference"
            }
          ],
          "description": "The organization to publish on behalf of"
        },
        "permissions": {
          "allOf": [
            {
              "$ref": "#/$defs/DiscussionPermissions"
            }
          ],
          "readOnly": true
        },
        "self_web_url": {
          "description": "The discussion web URL",
          "readOnly": true,
          "type": "string"
        },
        "subject": {
          "allOf": [
            {
              "$ref": "#/$defs/ModelReference"
            }
          ],
          "description": "The discussion target object"
        },
        "title": {
          "description": "The discussion title",
          "type": "string"
        },
        "url": {
          "description": "The discussion API URI",
          "readOnly": true,
          "type": "string"
        },
        "user": {
          "allOf": [
            {
              "$ref": "#/$defs/UserReference"
            }
          ],
          "description": "The discussion author",
          "readOnly": true
        }
      },
      "required": [
        "created",
        "id",
        "subject",
        "title"
      ],
      "type": "object"
    },
    "Message__read": {
      "properties": {
        "content": {
          "description": "The message body",
          "maxLength": 50000,
          "type": "string"
        },
        "id": {
          "description": "The message identifier",
          "readOnly": true,
          "type": "string"
        },
        "last_modified_at": {
          "description": "The message last edit date",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "permissions": {
          "allOf": [
            {
              "$ref": "#/$defs/DiscussionMessagePermissions"
            }
          ],
          "readOnly": true
        },
        "posted_by": {
          "allOf": [
            {
              "$ref": "#/$defs/UserReference"
            }
          ],
          "description": "The message author",
          "readOnly": true
        },
        "posted_by_organization": {
          "allOf": [
            {
              "$ref": "#/$defs/OrganizationReference"
            }
          ],
          "description": "The organization to show to users",
          "readOnly": true
        },
        "posted_on": {
          "description": "The message posting date",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        }
      },
      "required": [
        "content",
        "posted_on"
      ],
      "type": "object"
    },
    "ModelReference": {
      "properties": {
        "class": {
          "description": "The model class",
          "type": "string"
        },
        "id": {
          "description": "The object identifier",
          "type": "string"
        }
      },
      "required": [
        "class",
        "id"
      ],
      "type": "object"
    },
    "OrganizationPermissions": {
      "properties": {
        "delete": {
          "type": "boolean"
        },
        "edit": {
          "type": "boolean"
        },
        "harvest": {
          "type": "boolean"
        },
        "members": {
          "type": "boolean"
        },
        "private": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "OrganizationReference": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseReference"
        },
        {
          "properties": {
            "acronym": {
              "maxLength": 128,
              "type": "string"
            },
            "badges": {
              "items": {
                "allOf": [
                  {
                    "$ref": "#/$defs/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": "#/$defs/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"
        }
      ]
    },
    "UserReference": {
      "allOf": [
        {
          "$ref": "#/$defs/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"
        }
      ]
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/api-gouv-fr-discussion-page"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.