Lister les clés d'API de l'opérateur

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://tech.covoiturage.beta.gouv.fr/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
"API RPC - Documentation technique MCP server": {
  "url": "https://tech.covoiturage.beta.gouv.fr/mcp"
}
Close
GET /auth/credentials

Vous ne pouvez pas récupérer les valeurs des secrets. Si vous avez perdu un secret_key, vous devez le régénérer à nouveau.

Responses

  • 200 application/json

    La liste des credentials de l'opérateur

    Hide response attributes Show response attributes object
    • operator_id integer

      Identifiant de l'opérateur

    • role string

      Rôle de la clé d'API

      Value is operator.application.

    • token_id string

      Identifiant de la clé d'API

  • 401 application/json

    Non authentifié. Le token applicatif est manquant ou invalide.

  • 403 application/json

    Non autorisé

GET /auth/credentials
curl \
 --request GET 'https://api.covoiturage.beta.gouv.fr/v3.3/auth/credentials' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "operator_id": 42,
    "role": "operator.application",
    "token_id": "cb82956e-3833-4925-9891-47d9b2ba0186"
  }
]
Response examples (401)
{
  "id": 1,
  "jsonrpc": "2.0",
  "error": {
    "data": "Unauthorized application",
    "code": -32501,
    "message": "Unauthorized Error"
  }
}
Response examples (403)
{
  "id": 1,
  "jsonrpc": "2.0",
  "error": {
    "data": "Invalid permissions",
    "code": -32503,
    "message": "Forbidden Error"
  }
}