api.gouv.fr Privileges API

The Privileges API from api.gouv.fr — 1 operation(s) for privileges.

GitHub OpenAPI

Operations 1

GET /privileges Privileges associés au jeton #

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/api-gouv-fr:api-gouv-fr-privileges-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

api-gouv-fr-privileges-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Entreprise Privileges API
  version: 3.0.0
  description: 'Cette page contient la documentation technique pour accéder à API Entreprise. Les API étant accessible uniquement sous habilitation, l''interaction avec l''environnement de production n''est possible que si vous êtes **en possession d''une clé d''accès (jeton).


    ### Comment tester l''API ?


    Il est possible de tester les API via notre environnement de **staging** qui vous retournera systématiquement des données fictives. Référez vous à la documentation.


    Il est nécessaire d''utiliser un jeton de staging. Plus d''infos ici: https://github.com/datagouv/apistration/tree/develop/mocks/tokens'
  termsOfService: https://entreprise.api.gouv.fr/cgu/
  contact:
    name: Support API Entreprise
    email: support@entreprise.api.gouv.fr
    url: https://entreprise.api.gouv.fr/
servers:
- url: https://entreprise.api.gouv.fr
  description: Environnement de production
- url: https://staging.entreprise.api.gouv.fr
  description: Environnement de staging
tags:
- name: Privileges
paths:
  /privileges:
    get:
      summary: Privileges associés au jeton
      description: Renvoi la liste des droits associé au jeton
      security:
      - jwt_bearer_token: []
      responses:
        '200':
          description: Liste des droits
          x-operationId: api_entreprise_privileges
        '401':
          description: Non autorisé
          content:
            application/json:
              examples:
                invalid_token_error:
                  value:
                    errors:
                    - code: '00101'
                      title: Interdit
                      detail: Votre token n'est pas valide
                      source:
                        parameter: token
                      meta: {}
                  summary: Interdit
                  description: Votre token n'est pas valide
        '403':
          description: Accès interdit
          content:
            application/json:
              examples:
                insufficient_privileges_error:
                  value:
                    errors:
                    - code: '00100'
                      title: Privilèges insuffisants
                      detail: Votre token est valide mais vos privilèges sont insuffisants. Listez vos privilèges sur /v2/privileges
                      source:
                        parameter: token
                      meta: {}
                  summary: Privilèges insuffisants
                  description: Votre token est valide mais vos privilèges sont insuffisants. Listez vos privilèges sur /v2/privileges
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Conflit
          content:
            application/json:
              examples:
                conflict_error:
                  value:
                    errors:
                    - code: '00015'
                      title: Conflit
                      detail: Une requête associé à votre jeton est déjà en cours de traitement pour ces paramètres. Veuillez attendre la fin du traitement avant d'effectuer une nouvelle requête.
                      source: null
                      meta: {}
                  summary: Conflit
                  description: Une requête associé à votre jeton est déjà en cours de traitement pour ces paramètres. Veuillez attendre la fin du traitement avant d'effectuer une nouvelle requête.
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Paramètre(s) invalide(s)
          content:
            application/json:
              examples:
                missing_mandatory_param_error:
                  value:
                    errors:
                    - code: '00203'
                      title: Entité non traitable
                      detail: Le paramètre recipient est obligatoire
                      source:
                        parameter: recipient
                      meta: {}
                  summary: Entité non traitable
                  description: Le paramètre recipient est obligatoire
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Trop de requêtes
          content:
            application/json:
              examples:
                too_many_requests_error:
                  value:
                    errors:
                    - code: 00429
                      title: Trop de requêtes
                      detail: Vous avez effectué trop de requêtes
                      source: null
                      meta: {}
                  summary: Trop de requêtes
                  description: Vous avez effectué trop de requêtes
              schema:
                $ref: '#/components/schemas/Error'
      x-codeSamples:
      - lang: cURL
        label: Ligne de commande
        source: "curl -X GET \\\n  -H \"Authorization: Bearer $token\" \\\n  --url \"https://entreprise.api.gouv.fr/privileges\""
      tags:
      - Privileges
      operationId: getPrivileges
      x-operation-id-source: derived
components:
  schemas:
    Error:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              title:
                type: string
              detail:
                type: string
              code:
                type: string
            required:
            - title
            - detail
            - code
      required:
      - errors
  securitySchemes:
    jwt_bearer_token:
      type: http
      description: "Votre jeton d'authentification doit être placé dans le header 'Authorization: Bearer VOTRE_JWT', sa validité est de 18 mois.\n\n    Exemple cURL :\n\n        curl -X GET \\\n        -H \"Authorization: Bearer $token\" \\\n        --url \"https://entreprise.api.gouv.fr/v3/...\""
      name: Authorization
      in: header
      scheme: bearer
      bearerFormat: JWT