DINUM (Direction interministérielle du numérique) Discussions API
Discussion related operations
Discussion related operations
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/dinum:dinum-discussions-api"
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.
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: 3.2.0
info:
title: Dinum Discussions API
version: '1.0'
description: 'Operations tagged discussions across 4 of this provider''s published API definitions: data-gouv-fr-api-v1-swagger.json, data-gouv-fr-api-v2-swagger.json, dinum-data-gouv-fr-v1-openapi.yml, dinum-data-gouv-fr-v2-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://www.data.gouv.fr/api/1
- url: https://www.data.gouv.fr/api/2
tags:
- description: Discussion related operations
name: Discussions
paths:
/discussions/:
get:
operationId: list_discussions
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:
- discussion.posted_on
- title
- created
- closed
- -discussion.posted_on
- -title
- -created
- -closed
default: -created
- description: The search query
in: query
name: q
schema:
type: string
- description: Filters discussions on their closed status if specified
in: query
name: closed
schema:
type: boolean
- description: Filter discussions for a given organization
in: query
name: org
schema:
type: string
- description: Filter discussions created by a user
in: query
name: user
schema:
type: string
- description: Filter discussions for a given subject
in: query
name: for
style: form
explode: true
schema:
type: array
items:
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/DiscussionPage'
summary: List all Discussions
tags:
- Discussions
post:
operationId: create_discussion
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/Discussion%20%28read%29'
summary: Create a new Discussion
tags:
- Discussions
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DiscussionStart'
required: true
servers:
- url: https://www.data.gouv.fr/api/1
/discussions/{id}/:
parameters:
- in: path
name: id
required: true
schema:
type: string
delete:
operationId: delete_discussion
parameters:
- description: Send formal legal notice with appeal information to owner (admin only)
in: query
name: send_legal_notice
schema:
type: boolean
default: false
responses:
'403':
description: Not allowed to delete this discussion
summary: Delete a discussion given its ID
tags:
- Discussions
get:
operationId: get_discussion
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/Discussion%20%28read%29'
summary: Get a discussion given its ID
tags:
- Discussions
post:
operationId: comment_discussion
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/Discussion%20%28read%29'
'403':
description: Not allowed to close this discussion OR can't add comments on a closed discussion
summary: Add comment and optionally close a discussion given its ID
tags:
- Discussions
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DiscussionResponse'
required: true
put:
operationId: update_discussion
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/Discussion%20%28read%29'
'403':
description: Not allowed to update this discussion
summary: Update a discussion given its ID
tags:
- Discussions
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DiscussionEdit'
required: true
servers:
- url: https://www.data.gouv.fr/api/1
/discussions/{id}/comments/{cidx}/:
parameters:
- in: path
name: id
required: true
schema:
type: string
- in: path
name: cidx
required: true
schema:
type: string
delete:
operationId: delete_discussion_comment
parameters:
- description: Send formal legal notice with appeal information to owner (admin only)
in: query
name: send_legal_notice
schema:
type: boolean
default: false
responses:
'403':
description: Not allowed to delete this comment
summary: Delete a comment given its index or UUID
tags:
- Discussions
put:
operationId: edit_discussion_comment
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/Discussion%20%28read%29'
'403':
description: Not allowed to edit this comment
summary: Edit a comment given its index or UUID
tags:
- Discussions
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DiscussionEditComment'
required: true
servers:
- url: https://www.data.gouv.fr/api/1
/discussions/search/:
get:
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/DiscussionPage_2'
summary: List or search all discussions
operationId: search_discussions
parameters:
- name: q
in: query
description: The search query
schema:
type: string
- name: closed
in: query
schema:
type: boolean
- name: last_update_range
in: query
schema:
type: string
enum:
- last_30_days
- last_12_months
- last_3_years
- name: sort
in: query
description: The field (and direction) on which sorting apply
schema:
type: string
enum:
- created
- closed
- -created
- -closed
- name: page
in: query
description: The page to fetch
schema:
type: integer
default: 1
exclusiveMinimum: 0
- name: page_size
in: query
description: The page size to fetch
schema:
type: integer
default: 20
exclusiveMinimum: 0
- name: X-Fields
in: header
description: An optional fields mask
schema:
type: string
format: mask
tags:
- Discussions
servers:
- url: https://www.data.gouv.fr/api/2
components:
schemas:
DiscussionEditComment:
properties:
comment:
description: The new comment
type: string
required:
- comment
type: object
DiscussionStart:
properties:
comment:
description: The content of the initial comment
type: string
extras:
description: Extras attributes as key-value pairs
type: object
organization:
allOf:
- $ref: '#/components/schemas/OrganizationReference'
description: Publish in the name of this organization
subject:
allOf:
- $ref: '#/components/schemas/ModelReference'
description: The discussion target object
title:
description: The title of the discussion to open
type: string
required:
- comment
- subject
- title
type: object
Discussion__read:
properties:
closed:
description: The discussion closing date
format: date-time
readOnly: true
type: string
closed_by:
allOf:
- $ref: '#/components/schemas/UserReference'
description: The user who closed the discussion
readOnly: true
closed_by_organization:
allOf:
- $ref: '#/components/schemas/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: '#/components/schemas/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: '#/components/schemas/OrganizationReference'
description: The organization to publish on behalf of
permissions:
allOf:
- $ref: '#/components/schemas/DiscussionPermissions'
readOnly: true
self_web_url:
description: The discussion web URL
readOnly: true
type: string
subject:
allOf:
- $ref: '#/components/schemas/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: '#/components/schemas/UserReference'
description: The discussion author
readOnly: true
required:
- created
- id
- subject
- title
type: object
ModelReference:
properties:
class:
description: The model class
type: string
id:
description: The object identifier
type: string
required:
- class
- id
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: '#/components/schemas/DiscussionMessagePermissions'
readOnly: true
posted_by:
allOf:
- $ref: '#/components/schemas/UserReference'
description: The message author
readOnly: true
posted_by_organization:
allOf:
- $ref: '#/components/schemas/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
Badge__read:
properties:
kind:
type: string
required:
- kind
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
DiscussionResponse:
properties:
close:
description: Is this a closing response. Only subject owner can close
type: boolean
comment:
description: The comment to submit
type: string
organization:
allOf:
- $ref: '#/components/schemas/OrganizationReference'
description: Publish in the name of this organization
required:
- comment
type: object
DiscussionPage:
properties:
data:
description: The page data
items:
$ref: '#/components/schemas/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
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
DiscussionPermissions:
properties:
close:
type: boolean
delete:
type: boolean
edit:
type: boolean
type: object
DiscussionEdit:
properties:
title:
description: The new title
type: string
required:
- title
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
DiscussionMessagePermissions:
properties:
delete:
type: boolean
edit:
type: boolean
type: object
OrganizationPermissions:
properties:
delete:
type: boolean
edit:
type: boolean
harvest:
type: boolean
members:
type: boolean
private:
type: boolean
type: object
UserReference_2:
required:
- first_name
- last_name
- slug
properties:
slug:
type: string
readOnly: true
maxLength: 255
first_name:
type: string
maxLength: 255
last_name:
type: string
maxLength: 255
avatar:
type: string
description: URL of the image
readOnly: true
avatar_thumbnail:
type: string
description: URL of the cropped and squared image (500x500)
readOnly: true
deleted:
type: string
format: date-time
description: The date the account was deleted, null for a live account
readOnly: true
page:
type: string
description: Link to the udata web page for this user
readOnly: true
uri:
type: string
description: Link to the API endpoint for this user
readOnly: true
type: object
DiscussionPage_2:
required:
- page
- page_size
- total
properties:
data:
type: array
description: The page data
items:
$ref: '#/components/schemas/Discussion__read'
page:
type: integer
description: The current page
minimum: 1
page_size:
type: integer
description: The page size used for pagination
minimum: 0
total:
type: integer
description: The total paginated items
minimum: 0
next_page:
type: string
description: The next page URL if exists
previous_page:
type: string
description: The previous page URL if exists
facets:
type: object
description: Facets/aggregations for filtering
type: object
OrganizationReference_2:
required:
- name
- slug
properties:
badges:
type: array
readOnly: true
items:
readOnly: true
allOf:
- $ref: '#/components/schemas/Badge__read'
name:
type: string
acronym:
type: string
maxLength: 128
slug:
type: string
readOnly: true
maxLength: 255
logo:
type: string
description: URL of the image
readOnly: true
logo_thumbnail:
type: string
description: URL of the cropped and squared image (100x100)
readOnly: true
page:
type: string
description: Link to the udata web page for this organization
readOnly: true
permissions:
readOnly: true
allOf:
- $ref: '#/components/schemas/OrganizationPermissions'
uri:
type: string
description: Link to the API endpoint for this organization
readOnly: true
type: object
UserReference_3:
required:
- first_name
- last_name
- slug
properties:
slug:
type: string
readOnly: true
maxLength: 255
first_name:
type: string
maxLength: 255
last_name:
type: string
maxLength: 255
avatar:
type: string
description: URL of the image
readOnly: true
avatar_thumbnail:
type: string
description: URL of the cropped and squared image (500x500)
readOnly: true
deleted:
type: string
format: date-time
description: The date the account was deleted, null for a live account
readOnly: true
page:
type: string
description: Link to the udata web page for this user
readOnly: true
uri:
type: string
description: Link to the API endpoint for this user
readOnly: true
type: object
DiscussionPage_3:
required:
- page
- page_size
- total
properties:
data:
type: array
description: The page data
items:
$ref: '#/components/schemas/Discussion__read'
page:
type: integer
description: The current page
minimum: 1
page_size:
type: integer
description: The page size used for pagination
minimum: 0
total:
type: integer
description: The total paginated items
minimum: 0
next_page:
type: string
description: The next page URL if exists
previous_page:
type: string
description: The previous page URL if exists
facets:
type: object
description: Facets/aggregations for filtering
type: object
OrganizationReference_3:
required:
- name
- slug
properties:
badges:
type: array
readOnly: true
items:
readOnly: true
allOf:
- $ref: '#/components/schemas/Badge__read'
name:
type: string
acronym:
type: string
maxLength: 128
slug:
type: string
readOnly: true
maxLength: 255
logo:
type: string
description: URL of the image
readOnly: true
logo_thumbnail:
type: string
description: URL of the cropped and squared image (100x100)
readOnly: true
page:
type: string
description: Link to the udata web page for this organization
readOnly: true
permissions:
readOnly: true
allOf:
- $ref: '#/components/schemas/OrganizationPermissions'
uri:
type: string
description: Link to the API endpoint for this organization
readOnly: true
type: object
securitySchemes:
apikey:
in: header
name: X-API-KEY
type: apiKey
x-refined-from:
- data-gouv-fr-api-v1-swagger.json
- data-gouv-fr-api-v2-swagger.json
- dinum-data-gouv-fr-v1-openapi.yml
- dinum-data-gouv-fr-v2-openapi.yml