Start a connection of an assistant to one project
const url = 'https://beta-api.plune.ai/oauth/authorize?response_type=code&client_id=example&redirect_uri=example&code_challenge=example&code_challenge_method=S256&resource=example&scope=read';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://beta-api.plune.ai/oauth/authorize?response_type=code&client_id=example&redirect_uri=example&code_challenge=example&code_challenge_method=S256&resource=example&scope=read'The authorization request of OAuth 2.1 with PKCE. Checks the client (a registered id, or the HTTPS address of a client metadata document, which is read from public addresses only), the exact redirect_uri (an http one on localhost, 127.0.0.1 or [::1] with any port), code_challenge_method=S256 and resource (the address of the MCP endpoint), keeps the request for 10 minutes and redirects (302) to the consent page of the web app with ?request=<id>, where the signed-in person picks one project and a right. Every refusal is a 400 answered here, never a redirect to the client. scope is read or write (write includes read); without it everything on offer is asked for, and the person narrows it. 60 requests in 15 minutes from one client address. Mounted only where the remote MCP server is switched on (MCP_PUBLIC_URL); elsewhere 404.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Responses
Section titled “ Responses ”To the consent page of the web app
Headers
Section titled “Headers ”invalid_request, invalid_client, invalid_target, invalid_scope or unsupported_response_type
object
Example
{ "error": "invalid_request", "error_description": "PKCE is required: code_challenge with code_challenge_method=S256"}Rate-limited: the per-route throttle, or the per-minute request limit of the plan an API token counts by (#1442; the body names the plan, #2092). Retry-After carries the seconds until the window rolls over.
object
Example generated
{ "error": "example"}Headers
Section titled “Headers ”Seconds until the window rolls over