Aller au contenu principal

Enregistrer un client MCP public

POST /oauth/register

L'inscription dure 30 jours. Clients publics uniquement ; redirections HTTPS ou HTTP loopback littéral, sans fragment ni userinfo. Limites de débit et de stockage applicables. Les noms fournis par le client ne sont pas vérifiés.

Authentification​

Cette opération ne nécessite aucune session authentifiée. Les vérifications Origin et les limites de requêtes restent applicables.

[]

Paramètres​

[]

Corps de la requête​

{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"client_name": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"redirect_uris": {
"type": "array",
"minItems": 1,
"maxItems": 5,
"items": {
"type": "string",
"format": "uri"
}
},
"token_endpoint_auth_method": {
"const": "none"
},
"grant_types": {
"type": "array",
"items": {
"const": "authorization_code"
}
},
"response_types": {
"type": "array",
"items": {
"const": "code"
}
}
},
"required": [
"client_name",
"redirect_uris"
]
}
}
}
}

Réponses​

{
"201": {
"description": "Registered public client, no client secret",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"client_id": {
"type": "string"
},
"redirect_uris": {
"type": "array",
"items": {
"type": "string"
}
},
"token_endpoint_auth_method": {
"const": "none"
}
},
"required": [
"client_id",
"redirect_uris",
"token_endpoint_auth_method"
]
}
}
}
},
"400": {
"description": "OAuth error; tokens and request bodies must not be logged",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"error_description": {
"type": "string"
}
},
"required": [
"error"
]
}
}
}
},
"401": {
"description": "OAuth error; tokens and request bodies must not be logged",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"error_description": {
"type": "string"
}
},
"required": [
"error"
]
}
}
}
},
"403": {
"description": "OAuth error; tokens and request bodies must not be logged",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"error_description": {
"type": "string"
}
},
"required": [
"error"
]
}
}
}
},
"413": {
"description": "OAuth error; tokens and request bodies must not be logged",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"error_description": {
"type": "string"
}
},
"required": [
"error"
]
}
}
}
},
"415": {
"description": "OAuth error; tokens and request bodies must not be logged",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"error_description": {
"type": "string"
}
},
"required": [
"error"
]
}
}
}
},
"429": {
"description": "OAuth error; tokens and request bodies must not be logged",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"error_description": {
"type": "string"
}
},
"required": [
"error"
]
}
}
}
},
"503": {
"description": "OAuth error; tokens and request bodies must not be logged",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"error_description": {
"type": "string"
}
},
"required": [
"error"
]
}
}
}
}
}

Les références telles que #/components/schemas/Asset sont résolues dans les schémas partagés. Téléchargez le contrat OpenAPI pour générer des clients. Cette page est générée ; elle décrit l'API de développement implémentée, et non des points de terminaison prévus.