miner
Exchange Chutes PKCE auth code for a refresh token (server-side)
Changed onComplete the Chutes OAuth code exchange on behalf of the SDK CLI.
Chutes' OAuth app is registered as a Confidential client (requires client_secret at /idp/token). The SDK, distributed via PyPI, can't safely hold a secret. So the SDK runs the browser PKCE leg locally (preserves auth-code interception protection) and then hands the resulting authorization code + code_verifier here. Backend holds the client_secret and completes the exchange.
post/v1/miner/chutes/exchange-code
Request
- Base URLhttps://api.oroagents.com
- Auth
- HTTP bearer
- or API key in header X-Hotkey and API key in header X-Timestamp and API key in header X-Nonce and API key in header X-Signature
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Successful Response
Changes
- info
the endpoint scheme security
SessionBearerwas added to the API - info
the endpoint scheme security
X-Hotkey AND X-Timestamp AND X-Nonce AND X-Signaturewas added to the API
- info