> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yolocode.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude OAuth Token

> CORS proxy for Claude OAuth token exchange

Proxies the Claude OAuth token exchange to handle CORS. Forwards the request to `https://console.anthropic.com/v1/oauth/token`.

### Body

Pass the standard OAuth token exchange parameters. The body is forwarded as-is to Anthropic.

**grant\_type** `string` *required*

OAuth grant type (e.g., `authorization_code`).

**code** `string` *required*

Authorization code from Claude OAuth flow.

**redirect\_uri** `string` *required*

The redirect URI used in the authorization request.

### Response

Returns the Claude OAuth token response with CORS headers (`Access-Control-Allow-Origin: *`).

**access\_token** `string`

Claude access token.

**refresh\_token** `string`

Claude refresh token.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.