API Reference

OAuth

Copy page

OAuth authentication endpoints

MCP OAuth authorization callback

GET
/manage/oauth/callback

Authorization

bearerAuth cookieAuth
AuthorizationBearer <token>

Bearer token authentication. Use this for API clients and service-to-service communication. Set the Authorization header to "Bearer ".

In: header

better-auth.session_token<token>

Session-based authentication using HTTP-only cookies. Cookies are automatically sent by browsers. For server-side requests, include cookies with names starting with "better-auth." in the Cookie header.

In: cookie

Query Parameters

code*string
Length1 <= length
state*string
Length1 <= length
error?string
error_description?string

Response Body

text/html

text/html

curl -X GET "https://api.pilot.inkeep.com/manage/oauth/callback?code=string&state=string"
Empty
"string"
"string"

Initiate OAuth login for MCP tool

GET
/manage/oauth/login

Authorization

bearerAuth cookieAuth
AuthorizationBearer <token>

Bearer token authentication. Use this for API clients and service-to-service communication. Set the Authorization header to "Bearer ".

In: header

better-auth.session_token<token>

Session-based authentication using HTTP-only cookies. Cookies are automatically sent by browsers. For server-side requests, include cookies with names starting with "better-auth." in the Cookie header.

In: cookie

Query Parameters

tenantId*string
Length1 <= length
projectId*string
Length1 <= length
toolId*string
Length1 <= length

Response Body

text/html

text/html

text/html

curl -X GET "https://api.pilot.inkeep.com/manage/oauth/login?tenantId=string&projectId=string&toolId=string"
Empty
"string"
"string"
"string"