token_exchange_api_v1_auths_oauth
Exchange an external OAuth provider token for an OpenWebUI JWT to authenticate.
Instructions
Exchange an external OAuth provider token for an OpenWebUI JWT. This endpoint is disabled by default. Set ENABLE_OAUTH_TOKEN_EXCHANGE=True to enable.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"provider": "<provider>",
"token": "<token>"
},
"name": "token_exchange_api_v1_auths_oauth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | Yes | ||
| token | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | |||
| expires_at | No | ||
| id | Yes | ||
| name | Yes | ||
| permissions | No | ||
| profile_image_url | Yes | ||
| role | Yes | ||
| token | Yes | ||
| token_type | Yes |