Call OAuth provider API
Changed onMake an authenticated request to an OAuth provider's API on behalf of the user. The user's stored access token is automatically used and refreshed if needed.
The request is always sent to the provider's fixed API base URL joined with the caller-supplied endpoint. endpoint must be a relative path beginning with / (optionally with a query string); it cannot change the target host. Absolute URLs, protocol-relative //host values, or userinfo (@host) are rejected with 400 so the request can never be redirected to another host.
Examples of endpoint:
- Google userinfo: /oauth2/v1/userinfo
- GitHub repositories: /user/repos
- Microsoft Graph profile: /me
The response wraps the provider's raw JSON value with request metadata. An empty provider body is represented as data: null; the envelope preserves the provider's HTTP status in status_code, including errors. Provider response bodies are limited to 8 MiB after decompression. Transport failures, invalid JSON (including invalid UTF-8), and oversized bodies return 502. Provider redirects to another origin are blocked and return 400.
Request
- Base URLhttps://api.volcano.dev
- AuthHTTP bearer
Path parameters
Request body
Relative path on the provider's API, beginning with /. It is joined with the provider's fixed base URL; it must not contain a scheme, host, userinfo, or a leading //.
HTTP method to use
Request body for POST requests
Example request
{
"endpoint": "/user/repos"
}Response
Provider API response
OAuth provider API response envelope
Changes
- breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status
12 more changes in this revision
- breaking