Begin an OAuth handshake (login or handle claim)
POST/api/auth/oauth/{provider}/start
startOauth
Creates a state row and returns the provider's authorize URL. Intent is one of `login` or `claim_handle`. Use the separate `/link` endpoint for `link`.
Authentication is not described for this operation in the spec — that does not mean it is public. Check tokens and scopes.
curl
curl -X POST 'https://neosource.dev/api/auth/oauth/PROVIDER/start' \
-H 'Content-Type: application/json' \
-d '{"intent":"string"}'fetch
fetch("https://neosource.dev/api/auth/oauth/PROVIDER/start", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({"intent":"string"}),
});Path parameters
providerrequiredOne of: `github`. Extend as more providers come online.
Request bodyrequired
application/json
Responses
200Redirect URL
application/json
Standard errors
Bodies documented once for the whole API — see standard errors.
- 400Bad Request — one of: invalid_input
- 403Forbidden — one of: forbidden
- 429Rate limited — retry after the `Retry-After` header
- 500Internal server error
- 502Bad Gateway — one of: upstream
- 503Service temporarily unavailable / at capacity — retry after the `Retry-After` header
- 504Gateway timeout — the request exceeded the server's handling budget