EddytorDocs & API
Authentication

Start a backend-mediated OAuth link flow.

Persists a one-time state + PKCE verifier keyed to the authenticated user, then returns the IdP authorize URL the client should navigate to. The IdP will redirect the browser back to `${server.public_url}/api/v1/auth/providers/:provider/callback` (or the `server.oauth_redirect_base` override) after the user consents. Use this for any client that can open a browser: frontend popup, CLI (via system browser), MCP client (via user's browser), Python SDK.

POST
/v1/auth/providers/{provider}/authorize

Authorization

BearerAuth
AuthorizationBearer <token>

Security scheme for OpenAPI endpoints. Validates both JWT tokens and API keys.

In: header

Path Parameters

provider*string

Value in

  • "azure"
  • "gitHub"
  • "google"

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Request body for POST /v1/auth/providers/:provider/authorize.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/auth/providers/azure/authorize" \  -H "Content-Type: application/json" \  -d '{}'
{  "authorizeUrl": "string",  "state": "string"}
Empty
Empty
{  "code": "string",  "message": "string",  "request_id": "string",  "details": [    {      "field": "string",      "message": "string"    }  ]}
{  "code": "string",  "message": "string",  "request_id": "string",  "details": [    {      "field": "string",      "message": "string"    }  ]}
{  "code": "string",  "message": "string",  "request_id": "string",  "details": [    {      "field": "string",      "message": "string"    }  ]}
{  "code": "string",  "message": "string",  "request_id": "string",  "details": [    {      "field": "string",      "message": "string"    }  ]}
{  "code": "string",  "message": "string",  "request_id": "string",  "details": [    {      "field": "string",      "message": "string"    }  ]}
{  "code": "string",  "message": "string",  "request_id": "string",  "details": [    {      "field": "string",      "message": "string"    }  ]}
{  "code": "string",  "message": "string",  "request_id": "string",  "details": [    {      "field": "string",      "message": "string"    }  ]}
{  "code": "string",  "message": "string",  "request_id": "string",  "details": [    {      "field": "string",      "message": "string"    }  ]}
{  "code": "string",  "message": "string",  "request_id": "string",  "details": [    {      "field": "string",      "message": "string"    }  ]}